* Fix links * Add action to apply updates in /docs to /versioned_docs/version-XYZ * 600 Configuration of the Cluster agent and Fleet agent for scheduling * Add version-2.7 docs * Update config * Update links * Remove dummy file and redirects to simulate 2.7 URLs * Apply 9f65c72d..ae741d3b to version-2.7 docs * Test increasing heap size to fix JS memory error * Fix links * rewording, note about other rules you shouldn't touch * Fix links * Sync files * Add case where versioned_docs is modified * Apply suggestions from code review Co-authored-by: Marty Hernandez Avedon <martyavedon@gmail.com> * Remove manual TOC * Add 2.6.13 and 2.7.4 entries to versions table * Sync version-2.7 with PR #649 changes (broken links) * Increase memory (likec9270568) on deploy action too. * Use versioned URL for 2.7 docs link * Update test-deploy.yml (#8) * Revert "Update test-deploy.yml (#8)" (#10) This reverts commit566ae4e405. * canonicized configure-active-directory + made title consistent across versions * canonicized 2.7/configure-active-directory * canonicized configure-azure-ad + made titles consistent * canonicized 2.7/configure-azure-ad * canonicized configure-freeipa * canonicized 2.7/configure-freeipa * canonicized configure-github * canonicized 2.7/configure-github * added trailing slash to close tag * canonicized configure-keycloak-oidc * canonicized 2.7/configure-keycloak-oidc * canonicized configure-keycloak-saml * canonicized 2.7/configure-keycloak-saml * canonicized configure-okta-saml * canonicized 2.7/configure-okta-saml * canonicized configure-pingidentity * canonicized 2.7/configure-pingidentity * added trailing slash to close tag * canonicized configure-google-auth * canonicized 2.7/configure-google-auth * added trailing slash to google-oauth canonical refs * canonicized create-local-users * canonicized 2.7/create-local-users * canonicized manage-users-and-groups * canonicized 2.7/manage-users-and-groups * canonicized configure-ms-adfs-for-rancher * canonicized 2.7/configure-ms-adfs-for-rancher * canonicized configure-rancher-for-ms-adfs * canonicized 2.7/create-local users (updated) * canonicized 2.7/configure-rancher-for-ms-adfs * added trailing slash to close tag * canonicized global-permissions * canonicized locked-roles * canonicized create-pod-security-policies * canonicized custom-branding also reworded the first few sections * canonicized 2.7/custom-branding * canonicized 2.7/create-pod-security-policies * canonicized 2.7/locked-roles * canonicized 2.7/global-permissions * added trailing slash to close tag * canonicized global-default-private-registry * canonicized pod-security-standards there's no corresponding pages in versioned docs * canonicized psa-config-templates there's no corresponding pages in versioned docs * canonicized 2.7/psa-config-templates * canonicized 2.7/pod-security-standards * canonicized 2.7/global-default-private-registry * added trailing slash to close tag * Revert "Add action to apply updates in /docs to /versioned_docs/version-XYZ" * Update permissions table on create-credentials.md Update required vSphere permissions to cover vSphere versions 7.0.3+ & 8.0 * fix typo * Add Helm settings for ingress-nginx for AKS cluster running Rancher * Pin the Node version in the Docker example * Apply2d408a82(Update required vSphere permissions) to version-2.6 and version-2.7 * Update ZH docs * Update ZH sidebars * Fix broken links in ZH docs * Fix broken links in EN docs * update based on review suggestions * updated based on review * fixing trailing slash syntax * Apply suggestions from code review Co-authored-by: Billy Tat <btat@suse.com> * [SEO] Use www in link * Update config.json * updated gitignore for ease of algolia index updating * corresponding updates to versioned pages --------- Co-authored-by: Billy Tat <btat@suse.com> Co-authored-by: Frank Murphy <frank.murphy@suse.com> Co-authored-by: vickyhella <vickyhella@hotmail.com> Co-authored-by: Max Sokolovsky <genexpr@protonmail.com>
Edit The Docs
To get started, fork and clone the rancher-docs repository.
Our repository doesn't allow you to make changes directly to the main branch. Create a working branch and make pull requests from your fork to rancher/rancher-docs.
Style & Formatting
The docs are written in Markdown. We refer to the Microsoft style guide and generally use standard American English. Many pages are also available in Simplified Chinese.
Every docs page contain metadata in the first few lines:
---
title: Some Title
---
The title is rendered as the page's headline. The site renderer wraps the title value in H1 tags, which are equivalent to # in Markdown syntax. This means that all subsequent headers on the page should be second level (##) or more.
Docs Website
The Rancher Docs website is built with Docusaurus 2, a modern static website generator.
You can run the site on your local machine, to preview how pages on your working branch will look live.
First, install Docusaurus 2:
- If you haven't already, install Node and Yarn.
- Go into your local rancher-docs folder.
- The Rancher Docs repository already contains a yarn.lock file, which contains the dependencies you need to build the website. Run
yarnto install Docusaurus and associated dependencies.
Start Site
yarn start
This command starts a local development server for Docusaurus 2, and opens up a browser window. Most changes are reflected live without having to restart the server.
Note: The yarn start command won't include some important static site features. For example, switching between languages from the site's dropdown menu is not available. If you need these features, use yarn build.
Build Site
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Launch With Docker
You can also use Docker to launch the website.
The below command can be used to install the dependencies and run the site inside a container:
docker run --rm -it -v $PWD:$PWD -w $PWD -p 3000:3000 node:18 /bin/sh -c "yarn install && yarn start -h 0.0.0.0"
Subsequent executions will check for updated dependencies, if there are none, it will skip the updates and quickly start the server.
License
Copyright (c) 2014-2023 Rancher Labs, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.