1
0
mirror of https://github.com/prometheus/docs.git synced 2026-02-07 03:44:55 +01:00

5 Commits

Author SHA1 Message Date
Tobias Schmidt
be89b5c5fe Improve robustness of git working tree checkout (#1764)
For unknown reasons the netlify pipeline ends up in a state where a git
worktree is not created after a fresh clone of the repository. The
previous implementation checked for the actual checked out working tree
and assumed the administrative git worktree files have to exist as well
in that case. This change explicitly verifies the existence of both path
structures and handles more cases of inconsistencies gracefully.

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
2020-10-15 11:02:30 +02:00
Tobias Schmidt
ef4e611471 Automate repository docs inclusion (#1762)
So far every prometheus/alertmanater/... release branch had to be
manually configured in the nanoc.yaml config file. With this change the
most recent release branches will be checked out automatically if a
corresponding semver tag exists.

As the Prometheus git repository includes several hundreds of megabytes
of vendored assets, the repository is cloned bare and all blobs are
filtered by default. Each version is then checked out in an individual
working tree and git's spare-chekcout feature is used to reduce the
checkout to the `docs/` folder. The git data is cached in
`tmp/repo_docs/` and will be recreated automatically if removed.

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
2020-10-14 20:04:54 +02:00
Ben Kochie
1c4d72e0a6 Upgrade to Nanoc 4.0
* Update Ruby gems.
* Remove nanoc-cachebuster due to incompatibility.
* Add README item about GitHub auth to improve build reliability.
* Fix various required config changes for 4.0

Signed-off-by: Ben Kochie <superq@gmail.com>
2018-08-18 10:52:15 +02:00
Tobias Schmidt
708415ff13 Add basic version picker 2017-11-07 18:41:36 +01:00
Tobias Schmidt
bd570947a5 Add repository documentation data source
With this commit it becomes possible to define additional data sources
for content pages. The content will be cloned from the specified
repository. Links in these pages will be normalized to work inside the
docs project. It's assumed the documentation pages include the standard
nanoc config options and set :title and optionall :sort_rank.
2017-10-26 14:03:59 +02:00