Skip to content

Commit

Permalink
在线文档配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
y2-Whyto committed Jul 8, 2022
1 parent fd4c40f commit ffe5dd7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions pre_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ls >list.txt
mkdir docs
while IFS= read -r line; do
cp -R $line docs
done <list.txt
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jinja2==3.0.3
mkdocs-material

0 comments on commit ffe5dd7

Please sign in to comment.