Skip to content

Commit

Permalink
Update docs for 2.19 (#1671)
Browse files Browse the repository at this point in the history
Signed-off-by: Ganesh Vernekar <[email protected]>
  • Loading branch information
codesome authored Jun 12, 2020
1 parent 53675ce commit d4073d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
apiKey: '48ac0b7924908a1fd40b1cb18b402ba1',
indexName: 'prometheus',
inputSelector: '.searchbox',
// Search all pages that either are the latest (2.18) or are not part of the versioned Prometheus docs subtree.
// Search all pages that either are the latest (2.19) or are not part of the versioned Prometheus docs subtree.
// TODO: This requires updating for every new Prometheus version. Switch to the more general "include:true|false"
// attribute instead, once it's indexed by Algolia.
algoliaOptions: { 'facetFilters': [["prometheus-version:2.18", "prometheus-version:none"]] },
algoliaOptions: { 'facetFilters': [["prometheus-version:2.19", "prometheus-version:none"]] },
debug: false // Set debug to true if you want to inspect the dropdown
});
</script>
Expand Down
15 changes: 13 additions & 2 deletions nanoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,19 @@ data_sources:
identifier_type: legacy
items_root: /docs/prometheus/latest/
config:
name: 'latest (2.18)' # NOTE! Update the "prometheus-version:2.18" filter in footer.html when changing this.
name: 'latest (2.19)' # NOTE! Update the "prometheus-version:2.19" filter in footer.html when changing this.
repository: https://github.com/prometheus/prometheus.git
refspec: release-2.18
refspec: release-2.19
-
type: repo_docs
encoding: utf-8
items_root: /docs/prometheus/2.19/
identifier_type: legacy
config:
name: '2.19'
repository: https://github.com/prometheus/prometheus.git
refspec: release-2.19
canonical: /docs/prometheus/latest/
-
type: repo_docs
encoding: utf-8
Expand All @@ -87,6 +97,7 @@ data_sources:
repository: https://github.com/prometheus/prometheus.git
refspec: release-2.18
canonical: /docs/prometheus/latest/
outdated: /docs/prometheus/latest/
-
type: repo_docs
encoding: utf-8
Expand Down

0 comments on commit d4073d3

Please sign in to comment.