Go to file
lvekee ccefad5ad9
Refactor the directory structure of the official website (#438)
* refactor docs/zh-cn

* update seo

* refactor en-us

* fix error in the metrics doc

* fix

* fix
2022-04-22 22:31:16 +08:00
.github/workflows Update deploy.yml 2021-05-26 13:13:14 +08:00
blog Refactor the directory structure of the official website (#438) 2022-04-22 22:31:16 +08:00
build update navigator 2021-08-17 14:35:04 +08:00
docs Refactor the directory structure of the official website (#438) 2022-04-22 22:31:16 +08:00
img Seata Isolation for AT mode (#377) 2021-10-16 15:05:50 +08:00
saga_designer optimize: optimize saga_designer/index.html (#427) 2022-02-18 15:10:41 +08:00
schema Update seata.xsd 2021-05-26 13:02:36 +08:00
site_config Refactor the directory structure of the official website (#438) 2022-04-22 22:31:16 +08:00
src update navigator 2021-08-17 14:23:30 +08:00
utils feat: 初始提交 2019-03-01 18:42:01 +08:00
.babelrc feat: 初始提交 2019-03-01 18:42:01 +08:00
.docsite feat: 初始提交 2019-03-01 18:42:01 +08:00
.eslintrc feat: 初始提交 2019-03-01 18:42:01 +08:00
.gitignore Revert "Regenerate htmls (#140)" (#142) 2019-12-15 21:15:05 +08:00
.htaccess Create .htaccess 2019-12-27 22:15:57 +08:00
.nojekyll feat: 初始提交 2019-03-01 18:42:01 +08:00
404.html feat: 初始提交 2019-03-01 18:42:01 +08:00
CNAME Update CNAME 2019-04-08 14:01:48 +08:00
README.md feature: saga statemachine designer online demo (#130) 2019-12-11 17:31:42 +08:00
docsite.config.yml update global setting (#117) 2019-12-06 15:28:46 +08:00
gulpfile.js feat: 初始提交 2019-03-01 18:42:01 +08:00
package-lock.json update navigator 2021-08-17 14:23:30 +08:00
package.json fixes #118 go search bug (#139) 2019-12-15 20:40:41 +08:00
redirect.ejs feat: 初始提交 2019-03-01 18:42:01 +08:00
server add go import 2019-06-10 11:18:57 +08:00
site.txt add new page of transaction group and ha (#302) 2021-02-19 11:38:20 +08:00
sitemap.xml add website map (#326) 2021-05-26 17:51:52 +08:00
template.ejs add UV PV statistics (#113) 2019-12-05 18:13:19 +08:00
webpack.config.js feat: 初始提交 2019-03-01 18:42:01 +08:00

README.md

Seata Official Website

CI Status

All website material of https://seata.io

Prerequisite

seata.github.io is powered by docsite.please read https://docsite.js.org If your version of docsite is less than 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.

Build instruction

  1. Run npm install docsite -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 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

Make sure npm and docsite are configured in the environmet configuration of os . eg: /etc/profile or .bash_profile of Macos

Then you are all set to run and build the website. Follow the build instruction above for the details.

How To Write Documents

Add a new doc

  1. Add new .md file under docs/en-us or docs/zh-cn. Corresponding to Chinese file and English file , and the Chinese and English file names should be consistent.
  2. Update site_config/docs.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 doc.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.

Add a new blog

  1. Add new .md file under blog/en-us or blog/zh-cn. Corresponding to Chinese file and English file , and the Chinese and English file names should be consistent.
  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.
  5. SEO config is required.

notice : Blog documents will be automatically sorted by time, without menu configuration
Set 'hidden' to 'true' for documents you don't want to display temporarily`

SEO

the type is :

---
hidden: false
title: title
keywords: keywords1,keywords2
description: some description
author: author name
date: 2018-12-29
---

Others