tree: 4c56062afe3a7cd42cdc9f6024facf13a9fe8a30 [path history] [tgz]
  1. blog/
  2. community/
  3. document/
  4. .gitignore
  5. build-with-docker.sh
  6. build.sh
  7. LICENSE
  8. README.md
docs/README.md

ShardingSphere Documents

HOW to build ShardingSphere website?

To build ShardingSphere website by means of hugo and hugo theme learn.

Follow the steps below to deploy ShardingSphere website,

  1. Execute docs/build.sh to generate html files at the directory of docs/target/.
  2. Clone shardingsphere-doc.
  3. Checkout to asf-site branch.
  4. Overwrite document/current with docs/target/document/current, community with docs/target/community and blog with docs/target/blog.
  5. Commit changes and raise a PR for shardingsphere-doc.

Note:

  1. If you modify docs/build.sh, please test it locally.

shardingsphere-doc support docker hugo to build the website, you can use the following command to build:

  1. Go to the root directory of shardingsphere-doc
  2. Execute docker build command docker build .github/docker/ -t docker-hugo:latest
  3. Execute build-with-docker.sh like build.sh
  4. If test it locally, go to the directory container config.toml and execute command docker run --rm -it -p1313:1313 --volume $(pwd):/opt/input docker-hugo:latest server --bind 0.0.0.0

HOW to insert a video of Bilibili or YouTube?

  1. First please make sure you get the correct url of the video you want to add.

  2. Use the shortcodes at wherever you want to place:

    • {{< bilibili BV1aE411X7kQ >}}

    • {{< youtube 2MsN8gpT6jY >}}