-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #559 from trawler/readme_docs_website
Forward users to docs main site for k0s instructions
- Loading branch information
Showing
5 changed files
with
70 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Publishing Docs | ||
|
||
We use [mkdocs](https://www.mkdocs.org) and [mike](https://github.com/jimporter/mike) for publishing docs to [docs.k0sproject.io](https://docs.k0sproject.io). | ||
This guide will provide a simple how-to on how to configure and deploy newly added docs to our website. | ||
|
||
## Requirements | ||
Install mike: https://github.com/jimporter/mike#installation | ||
|
||
## Adding A New link to the Navigation | ||
- All docs must live under the `docs` directory (I.E., changes to the main `README.md` are not reflected in the website). | ||
- Add a new link under `nav` in the main [mkdocs.yml](https://github.com/k0sproject/k0s/blob/main/mkdocs.yml) file: | ||
``` | ||
nav: | ||
- Overview: README.md | ||
- Creating A Cluster: | ||
- Quick Start Guide: create-cluster.md | ||
- Run in Docker: k0s-in-docker.md | ||
- Single node set-up: k0s-single-node.md | ||
- Configuration Reference: | ||
- Architecture: architecture.md | ||
- Networking: networking.md | ||
- Configuration Options: configuration.md | ||
- Configuring Containerd: containerd_config.md | ||
- Using A Custom CRI: custom-cri-runtime.md | ||
- Using Cloud Providers: cloud-providers.md | ||
- Running k0s with Traefik: examples/traefik-ingress.md | ||
- Running k0s as a service: install.md | ||
- k0s CLI Help Pages: cli/k0s.md | ||
- Deploying Manifests: manifests.md | ||
- FAQ: FAQ.md | ||
- Troubleshooting: troubleshooting.md | ||
- Contributing: | ||
- Overview: contributors/overview.md | ||
- Workflow: contributors/github_workflow.md | ||
- Testing: contributors/testing.md | ||
``` | ||
- Test your deployment locally, using `mike`: | ||
``` | ||
version="v0.9.0" # example | ||
mike deploy ${version} | ||
``` | ||
``` | ||
mike set-default ${version} | ||
``` | ||
``` | ||
mike serve | ||
``` | ||
Your local version should be served under: http://localhost:8000. | ||
- Once your changes are pushed to `main`, the "Publish Docs" jos will start running: https://github.com/k0sproject/k0s/actions?query=workflow%3A%22Publish+docs+via+GitHub+Pages%22 | ||
- You should see the deployment outcome in the `gh-pages` deployment page: https://github.com/k0sproject/k0s/deployments/activity_log?environment=github-pages |
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