KubeEdge website and documentation repo:
Go to file
KubeEdge Bot a450f7a684
Merge pull request #703 from fujitatomoya/cilium-official-support
Cilium Official Suport Documentation.
2025-06-10 19:25:19 +08:00
.devcontainer move Dockerfile to top, and some cosmetic fixes. 2025-04-14 11:17:54 -07:00
.github Update PULL_REQUEST_TEMPLATE.md 2024-06-25 11:22:47 +00:00
blog Cilium Official Suport Documentation. 2025-05-20 16:40:26 -07:00
docs Cilium Official Suport Documentation. 2025-05-20 16:40:26 -07:00
functions add v1.20.0 release blog 2025-02-24 22:17:59 +08:00
hack add script for cherry-pick 2024-08-19 15:08:26 +08:00
i18n/zh Merge pull request #661 from fujitatomoya/remove-redundant-debug-description 2025-03-03 14:45:44 +08:00
src Merge pull request #659 from 1Shubham7/zcitc 2025-04-28 20:52:37 +08:00
static Cilium Official Suport Documentation. 2025-05-20 16:40:26 -07:00
.gitignore feat: refact website v1.12 2023-07-12 19:55:16 +08:00
CODE_OF_CONDUCT.md update CoC 2023-09-05 21:14:03 +08:00
CONTRIBUTING.md Add Supplemental Developer Contribution Guidelines 2024-08-02 00:23:19 +08:00
Dockerfile move Dockerfile to top, and some cosmetic fixes. 2025-04-14 11:17:54 -07:00
LICENSE Initial commit 2018-10-29 16:56:16 +08:00
OWNERS add Shelley as reviewers and approvers 2023-07-17 17:21:50 +08:00
README.md move Dockerfile to top, and some cosmetic fixes. 2025-04-14 11:17:54 -07:00
README_zh.md Fixed Ordering of List Numbers 2023-07-29 14:20:14 +05:30
babel.config.js feat: refact website v1.12 2023-07-12 19:55:16 +08:00
docusaurus.config.js update kubeedge project level 2024-10-18 16:13:32 +08:00
netlify.toml redirect /en 2023-07-14 19:00:50 +08:00
package.json update dependency 2023-08-19 11:48:15 +03:00
sidebars.js feat: refact website v1.12 2023-07-12 19:55:16 +08:00
versionsArchived.json update docs version 2025-02-21 16:17:58 +08:00
yarn.lock Bump postcss from 8.4.21 to 8.4.31 2023-10-07 17:03:45 +00:00

README.md

Creating and updating the KubeEdge docs

Welcome to the GitHub repository for KubeEdge's public website. The docs are hosted at https://kubeedge.io.

We use Docusaurus to format and generate our website, and Netlify to manage the deployment of the site. Docusaurus is an open-source static site generator that provides us with templates, content organisation in a standard directory structure, and a website generation engine. You write the pages in Markdown, and Docusaurus wraps them up into a website.

Quick start

Here's a quick guide to updating the docs. It assumes you're familiar with the GitHub workflow and you're happy to use the automated preview of your doc updates:

  1. Fork the [KubeEdge/website repo][kubeEdge-website-repo] on GitHub.
  2. Make your changes and send a pull request (PR).
  3. If you're not yet ready for a review, add a comment to the PR saying it's a work in progress or add [WIP] in your PRs title. You can also add /hold in a comment to mark the PR as not ready for merge.
  4. Wait for the automated PR workflow to do some checks. When it's ready, you should see a comment like this: deploy/netlify — Deploy preview ready!
  5. Click Details to the right of "Deploy preview ready" to see a preview of your updates.
  6. Continue updating your doc until you're happy with it.
  7. When you're ready for a review, add a comment to the PR and assign a reviewer/approver. See the [Kubeedge contributor guide][kubeedge-contributor-guide].

Previewing your changes on a local website server

If you'd like to preview your doc updates as you work, you can install Node.js and run a local server. This section shows you how.

Install Node.js

Node.js version 16.14 or above required, please see more details for Node.js official supported version.

[!NOTE] Aligned with official download, using nvm and npm installation is recommended.

  • using nvm with npm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install 22
node -v

If you want to install apt package on Ubuntu.

  • apt
curl -sL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
node -v

Install yarn

  • npm
npm install -g yarn
  • apt
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install -y yarn

Install dependencies

cd website
yarn

Local Development

yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Your website is at http://localhost:3000/. (You can also use --host option to bind the IP address instead of localhost.)

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Using Container

Docker

docker build -t kubeedge:website -f Dockerfile .
docker run -it --network host --rm -v $(pwd):/tmp/doc_repository kubeedge:website /bin/bash
yarn start

Devcontainer

Once you open the vscode with devcontainer, you can see the following terminal.

Running the postCreateCommand from devcontainer.json...

[12035 ms] Start: Run in container: /bin/sh -c yarn install
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.24s.
Running the postStartCommand from devcontainer.json...

[14333 ms] Start: Run in container: /bin/sh -c /bin/bash
kubeedge@be52334d349c:/tmp/doc_repository$

Versioning

For each stable release, we should create a new branch for the relevant documentation. For example, the documentation for the v0.1 stable release are maintained in the v0.1-branch. Each branch has a corresponding netlify website that automatically syncs each merged PR.

Going forward, the versioned sites should follow this convention:

  • https://kubeedge.netlify.com/ always points to the current master branch
  • https://master.kubeedge.netlify.com/ always points to Github head
  • https://vXXX-YYY.kubeedge.netlify.com/ points to the release at vXXX.YYY-branch