mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-24 02:25:42 +08:00
Added 2.5 to the list of Teleport versions in the docs
This commit is contained in:
@@ -11,6 +11,7 @@ Look at `build.sh` script to see how it works.
|
||||
* Update [index.html](index.html) to redirect to the latest version automatically.
|
||||
* Update theme/base.html to add a new version to the Javascript arrray of versions
|
||||
* Create a new YAML file, like `5.5.1.yaml` if you are releasing version 5.5.1
|
||||
* Update `TELEPORT_DOCS_LATEST_VERSION` variable in `gravitational/web/Makefile`
|
||||
|
||||
## Deploying
|
||||
|
||||
|
||||
+10
-1
@@ -11,8 +11,12 @@ rm -f latest.yaml
|
||||
# build css files
|
||||
sass -C --precision 9 --sourcemap=none theme/src/index.scss:theme/css/teleport-bundle.css
|
||||
|
||||
# will be set to the latest version after the loop below
|
||||
doc_ver=""
|
||||
|
||||
for conf_file in $(ls *.yaml | sort); do
|
||||
echo "Building docs version --> $conf_file"
|
||||
doc_ver=${conf_file%.yaml}
|
||||
echo "Building docs version --> $doc_ver"
|
||||
mkdocs build --config-file $conf_file || exit $?
|
||||
done
|
||||
|
||||
@@ -24,3 +28,8 @@ ln -fs $conf_file latest.yaml
|
||||
# copy the index file which serves /docs requests and redirects
|
||||
# visitors to the latest verion of QuickStart
|
||||
cp index.html ../build/docs/index.html
|
||||
|
||||
# create a symlink to the latest
|
||||
cd ../build/docs
|
||||
rm -f latest
|
||||
ln -s $doc_ver latest
|
||||
|
||||
+2
-2
@@ -6,10 +6,10 @@
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Refresh" content="0; url=2.5/quickstart" />
|
||||
<meta http-equiv="Refresh" content="0; url=quickstart" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<a href="2.5/quickstart">Teleport QuickStart Guide</a>
|
||||
<a href="quickstart">Teleport QuickStart Guide</a>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Vendored
+1
-1
@@ -41,7 +41,7 @@
|
||||
|
||||
// configure UI components
|
||||
window.grvConfig = window.grvConfig || {
|
||||
docVersions: ["1.3", "2.0", "2.3", "2.4"],
|
||||
docVersions: ["1.3", "2.0", "2.3", "2.4", "2.5"],
|
||||
docCurrentVer: "{{ config.extra.version }}"
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user