-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to support documentation versioning (#528)
* Changes references in preparation for versioning - use named references, bundled at the bottom of each page * Move docs to docs/main - move all folders under `docs` directory to `docs/main`. This will allow addition of `docs/v0.1.0` etc afterwards - fix links to `docs` and sub-topics in landing page * Added v0.1.0 documentation - based on v0.1.0 tag * set frontmatter for main doc collection * set toplevel docs as collection * enabled version selector and versions * make shortcodes and links version aware - modify shortcodes to accept @Version@ in parameters and replace with latest_stable_version - use `{{ site.Params.latest_stable_version }}` in HTML (e.g., shortcodes with known links) - use `{{< param latest_stable_version >}}` in markdown * enable foldable sidebar links * change in link syntax - replaced links to markdown files with {{< relref >}} (sidenote: no longer linkable in IDE or GH...) - replaced page section targets with section name (foo/_index.md => foo/). Using relref/ref to Section pages is not supported: https://discourse.gohugo.io/t/how-to-link-to-section-pages-with-ref-relref-shortcodes/5952/10 - use of relative path is required for pages not in current directory (i.e., `{{< relref "foo/bar" >}}` => `{{< relref "../foo/bar" >}}` --------- Signed-off-by: Etai Lev Ran <[email protected]>
- Loading branch information
Showing
35 changed files
with
1,393 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
title: Documentation | ||
linkTitle: Docs | ||
menu: {main: {weight: 10, pre: "<i class='fa-solid fa-book'></i>" }} | ||
title: Documentation Versions | ||
linkTitle: Versions | ||
simple_list: true | ||
--- | ||
|
||
Welcome to the ClusterLink docs! The following doc versions are available: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: main (DRAFT) | ||
cascade: | ||
version: main | ||
versName: &name main (DRAFT) | ||
git_version_tag: main | ||
exclude_search: false | ||
linkTitle: *name | ||
simple_list: true | ||
weight: -9999 # Weight for doc version vX.Y should be -(100*X + Y)0 | ||
# For example: v0.2.x => -20 v3.6.7 => -3060. `main` is arbitrarily set to -9999 | ||
--- |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: Getting Started | ||
description: Getting started guides for users and developers | ||
weight: 20 | ||
--- | ||
|
||
The following provide quick start guides for [users][user-getting-started] and | ||
[developers][dev-getting-started]. | ||
|
||
If you're a content author, wishing to contribute additional documentation or guides, | ||
please refer to the [contribution guidelines][doc-contribution]. | ||
|
||
[user-getting-started]: {{< relref "users" >}} | ||
[dev-getting-started]: {{< relref "developers" >}} | ||
[doc-contribution]: ../doc-contribution/ |
File renamed without changes.
Oops, something went wrong.