Code Monkey home page Code Monkey logo

kubeedge's Introduction

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 (which can be checked by running node -v). You can use nvm for managing multiple Node versions on a single machine installed.

Install yarn

npm install -g 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/

Build

$ yarn build

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

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

kubeedge's People

Contributors

anvithks avatar arcanique avatar arhell avatar bitvijays avatar bluefriday avatar chendave avatar chuanhaojin avatar daixiang0 avatar dingyin avatar edisonxiang avatar fisherxu avatar gy95 avatar joedborg avatar jxs1211 avatar kadisi avatar kevin-wangzefeng avatar kubeedge-bot avatar kuramal avatar ls889 avatar luogangyi avatar nilisha-jais avatar qizha avatar rajatgupta24 avatar rohitsardesai83 avatar shelley-baoyue avatar sids-b avatar sujithsimon22 avatar wackxu avatar wangjiezhang avatar xjangel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.