Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
722667f4
Commit
722667f4
authored
Jun 14, 2018
by
lucperkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create vendored Ruby setup
Signed-off-by:
lucperkins
<
lucperkins@gmail.com
>
parent
d45b735f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
10 deletions
+26
-10
.gitignore
.gitignore
+6
-2
Makefile
Makefile
+14
-2
README.md
README.md
+6
-6
No files found.
.gitignore
View file @
722667f4
...
...
@@ -11,7 +11,11 @@ tmp/
# Crash Log
crash.log
#
OS X file
static/
.DS_Store
#
macOS artifacts
.DS_Store
prometheus_rsa
# Ruby artifacts
.bundle/
vendor/
Makefile
View file @
722667f4
NANOC
=
bundle
exec
nanoc
GUARD
=
bundle
exec
guard
DOWNLOADS
:=
prometheus alertmanager blackbox_exporter consul_exporter graphite_exporter haproxy_exporter memcached_exporter mysqld_exporter node_exporter pushgateway statsd_exporter
build
:
clean downloads compile
bundle
:
bundle config build.nokogiri
--use-system-libraries
bundle
install
--path
vendor
clean
:
rm
-rf
output downloads repositories
compile
:
bundle
exec
nanoc
$(NANOC)
downloads
:
$(DOWNLOADS:%=downloads/%/repo.json) $(DOWNLOADS:%=downloads/%/releases.json)
...
...
@@ -20,4 +26,10 @@ downloads/%/releases.json:
@
echo
"curl -sf -H 'Accept: application/vnd.github.v3+json' <GITHUB_AUTHENTICATION> https://api.github.com/repos/prometheus/
$*
/releases >
$@
"
@
curl
-sf
-H
'Accept: application/vnd.github.v3+json'
$(GITHUB_AUTHENTICATION)
https://api.github.com/repos/prometheus/
$*
/releases
>
$@
.PHONY
:
build compile deploy
guard
:
$(GUARD)
serve
:
$(NANOC)
view
.PHONY
:
build bundle clean compile downloads serve
README.md
View file @
722667f4
...
...
@@ -15,12 +15,12 @@ As a guideline, please keep the documentation generally applicable and avoid use
## Prerequisites
You need to have a working Ruby environment set up
and then install the
necessary gems:
You need to have a working Ruby environment set up
(including
[
bundler
](
https://bundler.io/
)
)
and then install the
necessary gems:
```
bash
cd
docs
bundle
make
bundle
```
## Building
...
...
@@ -39,9 +39,9 @@ To run a local server that displays the generated site, run:
```
bash
# Rebuild the site whenever relevant files change:
bundle
exec
guard
# Start the local development server:
bundle
exec
nanoc view
make
guard
# Start the local development server
in a separate shell
:
make serve
```
You should now be able to view the generated site at
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment