1
0
mirror of https://github.com/prometheus/docs.git synced 2026-02-06 18:44:55 +01:00
Commit Graph

49 Commits

Author SHA1 Message Date
SuperQ
92c3baeb99 Update Nanoc 4.13
Update Nanoc and Ruby.
* Update to the latest supported Ruby version.
* Bump bundler.
* Bump stringio.
* Update to Nanoc 4.13.
* Increase open PR limit.
* Fixup `exists?` deprecation.

Signed-off-by: SuperQ <superq@gmail.com>
2025-03-11 10:20:15 +01:00
Jeremy Rickards
b801babcb1 Fix header anchor CSS (#2575)
* Fix header anchor CSS

This is a leftover from 60899b37d2, where
Font Awesome was removed. The missing font causes the link icon to show as
a tofu. Tabler, the new library that was introduced as a replacement has a
link icon CSS class we can use instead. I also adjusted the left pad.

Signed-off-by: Jeremy Rickards <jeremy.rickards@sap.com>

* Address PR comment

Signed-off-by: Jeremy Rickards <jeremy.rickards@sap.com>

---------

Signed-off-by: Jeremy Rickards <jeremy.rickards@sap.com>
2025-02-24 18:03:01 +01:00
Julien
60899b37d2 Update icons to use Tabler and apply the new Twitter logo. (#2527)
* Update icons to use Tabler and apply the new Twitter logo.

Switch to Tabler because Prometheus 3.0 uses it, and Font Awesome's
latest open-source version doesn't include all necessary icons.

Signed-off-by: Julien <roidelapluie@o11y.eu>

* Remove twitter

Signed-off-by: Julien <roidelapluie@o11y.eu>

---------

Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-10-08 16:09:21 +02:00
Julien
9e2fdfaf4e Merge pull request #2523 from roidelapluie/fix255
Add download for prometheus 2.55
2024-09-30 16:19:25 +02:00
Julius Volz
cfc543aa28 Only consider non-draft releases for downloads page (#2517)
Currently the Makefile uses authenticated GitHub accesses to download a
JSON containing *all* releases (since we're authenticated), including draft
ones.

The script that then assembles the downloads page tries to also download
the checksums for those draft releases, which fails with a 404 if you are
not authenticated (and we probably don't want to show these anyway).

Interestingly the build works on Netlify anyway. Probably the GitHub API
token used there doesn't actually have the rights to see draft releases on the
Prometheus org. But it still produces build errors for people building the
site locally with their own GitHub access token.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-09-30 15:09:31 +02:00
Julien
a0ad75591c Add download for prometheus 2.55
Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-09-30 15:04:33 +02:00
Julien
5407c6fb4a Document last 10 releases, with at least 1 per major release
Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-09-30 14:42:52 +02:00
Julius Volz
143249276a Only select branches with released stable versions for version dropdown (#2516)
Fixes https://github.com/prometheus/docs/issues/2514

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-09-21 23:37:54 +02:00
Julien Pivotto
af671274a3 fix: exclude versions with build metadata from downloads
This change ensures that only versions without build metadata are
included in the list of available downloads on prometheus.io to prevent
non-stable releases from being published on the main download page. For
example, Prometheus 2.43.0-rc.1+stringlabels is excluded from the list
of available downloads.

Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-03-20 10:33:44 +01:00
Julien Pivotto
03227dc348 Fix warning: Passing a Node as the second parameter to Node.new is deprecated (#2159)
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2022-07-05 15:10:28 +02:00
Julien Pivotto
498d281f36 Add support for LTS releases (#2158)
* Add support for LTS releases

- Mark version as 2.37 (LTS) in dropdown.
- Keep LTS releases in Downloads and mark them with a badge.
- Do not show version warning in docs for LTS

Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2022-06-16 21:21:06 +02:00
Julien Pivotto
c1de03a743 Exclude Web UI from the downloads (#2123)
Prometheus now provides web UI tarballs to better integrate with
downstream distributions.

We need to explictly exclude them from our downloads.

Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2022-04-14 21:32:41 +02:00
Tobias Schmidt
17b04945e7 Show .zip archive only for Windows (#1775)
If a release archive is available in both .tar.gz and .zip format, only
show the .zip archive in the download list.

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
2020-10-29 18:26:25 +01:00
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
Tobias Schmidt
2ddbb4a19b Refactor download release selection (#1701)
* Add test
* Use Ruby's comparable module to implement sort behavior

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
2020-07-26 22:56:39 +02:00
Julien Pivotto
bed817c52d Sort releases (#1700)
2.19.3 was released after 2.20.0 but 2.20.0 should be the one displayed
on th website

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-07-25 13:24:39 +02:00
Julien Pivotto
bb54990aba Add 2.20 pre-release docs (#1693)
* Add 2.20 pre-release docs

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-07-17 11:40:24 +02:00
Josh Soref
2fc7fb2aaf Spelling (#1691)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-07-10 10:01:29 +01:00
Julien Pivotto
53675ce404 Version Alertmanager (#1657)
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-06-11 16:51:14 +02:00
Julien Pivotto
7a82f0a0e7 Reduce build time (#1662)
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-06-09 17:09:32 +02:00
Marco Pracucci
04068894c5 Fixed anchor links in Configuration pages (#1382)
The generation of "Configuration" pages runs the config_linker.rb filter to add anchors to <placeholder> in code blocks. The generation of these anchors doesn't "slugify" the placeholder text, thus leading to anchors like <tls_config>. This is conflicting with the default anchors generated by the markdown compiler for the HTML headers, as well as the extra anchors injected by add_anchors.rb.

In this PR I'm uniforming the way anchors are generated, to always "slugify" the text, and have links within the configuration code blocks working correctly. After this change, the id in the TOC also matches with the one of non-"Configuration" pages, which is currently different due to side effects introduced by the current logic.

Fixes #1304 and #833.

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco.pracucci@spreaker.com>
2019-07-04 12:26:10 +02:00
Tobias Schmidt
0fbc0cbac3 Fix absolute links to markdown pages in repo docs
Absolute links to markdown pages should not be rendered relative.

Fixes prometheus/prometheus#4627

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
2018-09-21 09:38:48 +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
Luc Perkins
aabd1cc2e2 Add admonition type to text content (#1089)
Signed-off-by: lucperkins <lucperkins@gmail.com>
2018-07-02 21:43:13 +02:00
Tobias Schmidt
75db8b6906 Fix nil comparision 2017-11-08 08:58:01 +01:00
Tobias Schmidt
ae9d74811b Handle embedded images in repository docs 2017-11-07 22:23:41 +01:00
Tobias Schmidt
4c74a86178 ADd warning for outdated versioned content 2017-11-07 21:07:45 +01:00
Tobias Schmidt
708415ff13 Add basic version picker 2017-11-07 18:41:36 +01:00
Tobias Schmidt
ab04bb6f2d Add support for subsections 2017-10-26 23:16:21 +02:00
Tobias Schmidt
8d8e494e87 Fix relative links in repo docs
Relative links always need to point to one level below the current path,
as nanoc path end on a trailing slash.
2017-10-26 23:08:18 +02: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
Tobias Schmidt
e8611aec41 Render tarball sha256 checksum if available for release 2017-04-15 09:14:33 -03:00
Tobias Schmidt
f9bca64885 Create links to placeholder definitions in config
This will create local links of all placeholders in config blocks to
their respective definitions.
2017-03-04 18:58:28 -04:00
Tobias Schmidt
3df23e45e8 Fix beta release asset name parsing 2016-10-07 18:03:29 +02:00
Tobias Schmidt
ed12a65c95 Default arch download default to amd64
Remove the popular option as it only included a single item.
2016-04-16 22:50:23 -04:00
Tobias Schmidt
d68a07b025 Fix asset download URL 2016-04-16 13:53:56 -04:00
Tobias Schmidt
ffbdada173 Add download section
This adds a new download section to the page with list for all available
precompiled versions for officially maintained components. The release
information are fetched via the Github API and rendered as static list.

Currently only the latest release and the newest pre-release (if
available) are show. This could be extended later. In order to keep the
list usable besides the massive list of prebuilt binaries, a javascript
os/arch filter has been added, defaulting to popular versions.

The following changes have been made on the way:

* Ensure all pages have a footer.
* Remove duplicated jquery inclusion.
* Use CSS to define text case of jumbotron buttons.
* Add Download section to the header.
* Reduce Github link to just the logo to save space.
* Update Getting Started and Installing sections.
2016-04-16 12:02:48 -04:00
Julius Volz
c9e87cb563 Abridge blog posts in index view. 2016-04-15 20:55:47 +02:00
Julius Volz
e40149e39f Add cachebusting fingerprints to asset files.
This is using http://avdgaag.github.io/nanoc-cachebuster/.

docs.css had to be moved out of /static because the static datasource
treats all files as binary, and thus no textual filters can be applied
(necessary for rewriting the jumbotron background image URL).

Fixes https://github.com/prometheus/docs/issues/369
2016-04-09 00:16:33 +02:00
Tobias Schmidt
26063c1d0c Collapse inactive navigation menus
Use javascript to hide all inactive menu items and only show one active
menu item at a time.
2016-04-02 13:08:25 -04:00
Tobias Schmidt
ce7b754f52 Clean up navigation helper 2016-03-29 21:03:43 -04:00
Tobias Schmidt
4110cb88ac Add table of contents filter 2016-01-20 10:59:14 -05:00
Tobias Schmidt
ccc3d97491 Rename navigation helper function to nav() 2016-01-19 22:15:18 -05:00
Julius Volz
a9e17ba774 Sanitize and uniquify in-page anchors properly.
Things like question marks or parentheses don't play nicely in URLs in
many contexts. Replace all special characters with dashes, and also
ensure that anchors are unique within a page if there are headers with
identical texts.
2015-05-28 15:04:50 +02:00
Julius Volz
8ab96295aa Add initial blog code.
This is based roughly on

  http://clarkdave.net/2012/02/building-a-static-blog-with-nanoc/

with a lot of small modifications to make it fit the existing docs site.

Blog posts should be added as:

    content/blog/YYYY-MM-DD-post-title.md

They need to state the title, kind, created_at, and author in the
frontmatter, e.g.:

    ---
    title: "This is a blog post title"
    created_at: 2015-04-22
    kind: article
    author: Julius Volz
    ---
2015-04-22 15:52:16 +02:00
Julius Volz
aab315f4da Improve alert styling. 2014-12-26 00:28:07 +01:00
Julius Volz
2ac7105c4c Complete site redesign and added non-doc pages. 2014-12-22 03:37:54 +01:00
Julius Volz
426fab7c20 Initial commit of the Prometheus docs site. 2014-12-19 16:09:50 +01:00