diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..d46844f5 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,23 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-20.04 + tools: + python: "3.7" + jobs: + pre_build: + - bash ./pre_build.sh + +mkdocs: + configuration: mkdocs.yml + +# Optionally declare the Python requirements required to build your docs +python: + install: + - requirements: requirements.txt diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 00000000..ed01cf20 --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,9 @@ +site_name: Fuchsia中文文档测试 +repo_url: https://github.com/y2-Whyto/FuchsiaOS-docs-zh_CN +docs_dir: docs +site_dir: site +theme: + name: material + language: zh + features: + - navigation.top diff --git a/pre_build.sh b/pre_build.sh new file mode 100644 index 00000000..14b01430 --- /dev/null +++ b/pre_build.sh @@ -0,0 +1,5 @@ +ls >list.txt +mkdir docs +while IFS= read -r line; do + cp -R $line docs +done