# nacos-group.github.io **Repository Path**: nacos-group/nacos-group.github.io ## Basic Information - **Project Name**: nacos-group.github.io - **Description**: Nacos documents - **Primary Language**: HTML - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://nacos.io - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-07-18 - **Last Updated**: 2021-05-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Nacos Official WebSite This project keeps all sources used for building up [Nacos](https://github.com/alibaba/nacos) official website which's served at http://nacos.io. ## Prerequisite Nacos website is powered by [docsite](https://github.com/txd-team/docsite). If your version of docsite is less then `1.3.3`, please upgrade to `1.3.3`. Please also make sure your node version is 8.x, versions higher than 8.x is not supported by docsite yet. If you have already a npm with another version installed, run the folling two commands to change the version to 8.x: 1. npm install -g n 2. sudo n 8.0 ## Build instruction 1. Run `npm install docsite@1.3.3 -g` to install the dev tool. 2. Run `npm i` in the root directory to install the dependencies. 3. Run `docsite start` in the root directory to start a local server, you will see the website in 'http://127.0.0.1:8080'. 4. Run `docsite build` to build source code. 5. 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. 1. Follow the [instructions](http://nvm.sh) to install nvm 2. Run `nvm install v8.16.0` to install node v8 3. Run `nvm use v8.16.0` to switch the working environment to node v8 4. Run `npm install docsite -g` ## How to Contribute 1. Create an issue first to description the issue 2. Do not use `git add .` to commit all the changes. 3. Just push your changed files, such as: * `*.md` * blog.js or docs.js or site.js 4. Send a PR to `master` branch. ## SEO Make sure each .md starts with the following texts: ``` --- title: title keywords: keywords1,keywords2,keywords3 description: some description --- ``` Refer to [this blog](/blog/zh-cn/nacos.md) ## Guide for adding new document ### Add a new blog 1. Add new .md file under `blog/en-us` or `blog/zh-cn`. 2. Update `site_config/blog.js`, add a new entry to the blog in either en-us or zh-cn. 3. Run docsite start locally to verify the blog can be displayed correctly. 4. Send the pull request contains the .md and blog.js only. ### Add a new article for developers 1. Add new .md file under `docs/en-us/developers` or `docs/zh-cn/developers`, the file name should end up with _dev.md. Note that the suffix _dev is necessary. 2. Update `site_config/develop.js`, add a new entry in either en-us or zh-cn. 3. Run docsite start locally to verify the article can be displayed correctly. 4. Send the pull request contains the *_dev.md and develop.js only.