To build ShardingSphere website by means of hugo and hugo theme learn.
Follow the steps below to deploy ShardingSphere website,
docs/build.sh
to generate html
files at the directory of docs/target/
.asf-site
branch.document/current
with docs/target/document/current
, community
with docs/target/community
and blog
with docs/target/blog
.docs/build.sh
, please test it locally.shardingsphere-doc support docker hugo to build the website, you can use the following command to build:
- Go to the root directory of
shardingsphere-doc
- Execute docker build command
docker build .github/docker/ -t docker-hugo:latest
- Execute
build-with-docker.sh
likebuild.sh
- 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
First please make sure you get the correct url of the video you want to add.
DO REMEMBER use the bvid argument
of bilibili url:
for example : https://www.bilibili.com/video/BV1aE411X7kQ?from=search&seid=5978719442257399675 ( bvid argument means BV1aE411X7kQ
, or you can simply recognize the argument with Capital Letter
)
YouTube url is much easier to recognize : https://www.youtube.com/watch?v=2MsN8gpT6jY , the argument you needed is 2MsN8gpT6jY
at the end of the url.
Use the shortcodes at wherever you want to place:
{{< bilibili BV1aE411X7kQ >}}
{{< youtube 2MsN8gpT6jY >}}