From ffe5dd7d0bbafbf04b7a2d8b1ed38765ad5608f3 Mon Sep 17 00:00:00 2001 From: y2-Whyto Date: Fri, 8 Jul 2022 20:20:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E6=96=87=E6=A1=A3=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .readthedocs.yaml | 23 +++++++++++++++++++++++ mkdocs.yml | 9 +++++++++ pre_build.sh | 5 +++++ requirements.txt | 2 ++ 4 files changed, 39 insertions(+) create mode 100644 .readthedocs.yaml create mode 100644 mkdocs.yml create mode 100644 pre_build.sh create mode 100644 requirements.txt 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