This project includes official documents and blogs of Dubbo-go to guide users to use Dubbo go correctly.
Dubbo-go website is powered by docsite.
please use docsite version at 1.3.9
.
Please also make sure your node version is 8.x, versions higher than 8.x is not supported by docsite yet.
- Run
npm install docsite@1.3.9 -g
to install the dev tool. - Run
npm i
in the root directory to install the dependencies. - Run
docsite build
to build source code. - Verify your change locally:
python -m SimpleHTTPServer 8000
, when your python version is 3 use :python3 -m http.server 8000
instead.
If you have higher version of node installed, you may consider nvm
to allow different versions of node
coexisting on your machine.
- Follow the instructions to install nvm
- Run
nvm install v8.16.0
to install node v8 - Run
nvm use v8.16.0
to switch the working environment to node v8 - Run
npm install docsite@1.3.9 -g
Then you are all set to run and build the website. Follow the build instruction above for the details.
- Do not use
git add .
to commit all the changes. - Just push your changed files, such as:
*.md
- blog.js or docs.js or site.js
- Send a PR to master branch.
Make sure each .md starts with the following texts:
---
title: title
keywords: keywords1,keywords2,keywords3
description: some description
---
- Add new .md file under docs/en-us or docs/zh-cn.
- Update site_config/docs.js, add a new entry to the docs in either en-us or zh-cn.
- Run docsite start locally to verify the blog can be displayed correctly.
- Send the pull request contains the .md and docs.js only.
- Add new .md file under blog/en-us or blog/zh-cn.
- Update site_config/blog.js, add a new entry to the blog in either en-us or zh-cn.
- Run docsite start locally to verify the blog can be displayed correctly.
- Send the pull request contains the .md and blog.js only.