teleport/docs
Ben Arent 7b054c97df
Teleport Application Access Docs issues (#5280)
* Fixes https://github.com/gravitational/teleport/issues/5278
* Apply suggestions from code review

Co-authored-by: Gus Luxton <gus@gravitational.com>
2021-01-14 17:50:06 -08:00
..
3.1 Fix wrongly formatted headers 2021-01-07 00:57:55 -08:00
3.2 Fix wrongly formatted headers 2021-01-07 00:57:55 -08:00
4.0 Fix wrongly formatted headers 2021-01-07 00:57:55 -08:00
4.1 Fix wrongly formatted headers 2021-01-07 00:57:55 -08:00
4.2 Fix wrongly formatted headers 2021-01-07 00:57:55 -08:00
4.3 Added --with-secrets parameter to backup instructions in admin guide (#5199) 2021-01-04 14:47:26 -05:00
4.4 Added --with-secrets parameter to backup instructions in admin guide (#5199) 2021-01-04 14:47:26 -05:00
5.0 Teleport Application Access Docs issues (#5280) 2021-01-14 17:50:06 -08:00
theme Replace google tracker with Fathom privacy analytics. 2020-12-28 12:12:19 -08:00
3.1.yaml Update canonical URL and titles 2020-12-28 15:58:08 -08:00
3.2.yaml Update canonical URL and titles 2020-12-28 15:58:08 -08:00
4.0.yaml Update canonical URL and titles 2020-12-28 15:58:08 -08:00
4.1.yaml Update canonical URL and titles 2020-12-28 15:58:08 -08:00
4.2.yaml Update canonical URL and titles 2020-12-28 15:58:08 -08:00
4.3.yaml Update canonical URL and titles 2020-12-28 15:58:08 -08:00
4.4.yaml Update canonical URL and titles 2020-12-28 15:58:08 -08:00
5.0.yaml Update canonical URL and titles 2020-12-28 15:58:08 -08:00
build.sh Revert "Fix shellcheck quotation warnings" (#4477) 2020-10-07 14:00:02 -03:00
get-pip.py Update docs for 4.0 and local setup 2019-05-29 11:56:52 -07:00
index.html Added 2.5 to the list of Teleport versions in the docs 2018-03-11 19:42:38 -07:00
postrelease.md Update support matrix in FAQ docs for 5.0 (#5131) 2020-12-16 10:58:53 -04:00
preflight.md Add post-release checklist (#4620) 2020-10-22 16:45:38 -03:00
prerelease.md Add post-release checklist (#4620) 2020-10-22 16:45:38 -03:00
README.md Updates Teleport Video links (#4165) 2020-08-10 07:57:36 -07:00
run.sh Revert "Fix shellcheck quotation warnings" (#4477) 2020-10-07 14:00:02 -03:00
testplan.md Add AccessRequest access to userACL (#4984) 2020-12-31 13:41:08 -05:00

Teleport Docs

Teleport docs are built using mkdocs and hosted as a bunch of static files in S3.

Look at build.sh script to see how it works.

To Publish New Version

  • Update build.sh.
  • Update theme/scripts.html to add a new version to the docVersions array of versions
  • Create a new YAML file, like 4.3 if you are releasing version 4.3.

Deploying

Teleport docs are published using a private web repository. See web/README.md for more info.

Running Locally

We recommend using Docker to run and build the docs.

make run-docs will run the docs and setup a livereload server for easy previewing of changes.

make docs will build the docs, so they are ready to ship to production.

Tools used to build the Docs

Teleport Docs are made with MkDocs and a few markdown extensions, First time users will need to install MkDocs https://www.mkdocs.org/#installation.

To run the latest version of the docs on http://127.0.0.1:8000:

$ ./run.sh

To run a specific version of the docs:

$ mkdocs serve --config-file 4.3.yaml

Install milv (Markdown Internal Link Validator) using go get -u -v github.com/magicmatatjahu/milv.

Change to the appropriate base directory, then run milv and make sure it reports no errors:

$ cd docs/4.1`
$ milv
NO ISSUES :-)

milv will validate all internal and external links by default. The external link checking can take 30 seconds or so to run. You can run milv -v to see all outgoing requests if you think it's taking too long. You can also skip external link checking altogether with milv --ignore-external - this can be useful if you're rapidly trying to fix internal links.

Make sure that you fix any broken links or errors before committing your changes!

If there is a genuine false positive or case where milv is failing to parse a link correctly but it does work (and you have validated this using make run-docs or mkdocs serve) then you can add a whitelist under the appropriate section in milv.config.yaml and commit this back to the repo.