diff --git a/.github/workflows/compileandrelease.yml b/.github/workflows/compileandrelease.yml
index 55482cd..c3dcd66 100644
--- a/.github/workflows/compileandrelease.yml
+++ b/.github/workflows/compileandrelease.yml
@@ -27,3 +27,28 @@ jobs:
files: PFC.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+
+ - name: Copy to deploy directory
+ run: |
+ cp PFC.pdf docs/PFC.pdf
+
+
+ - name: Build
+ uses: OpenHUTB/actions-mkdocs@main
+ with:
+ mkdocs_version: 'latest' # option
+ #mkdocs_version: '1.1' # option
+ # 安装行内公式渲染的依赖(python-markdown-math)
+ requirements: 'requirements.txt' # option
+ configfile: 'mkdocs.yml' # option
+ # 报错:remote: Permission to donghaiwang/neuro.git denied to github-actions[bot].
+ # 解决:启用 Settings -> Actions -> General -> Workflow permissions 中的 "Read and write permissions"
+
+
+ - name: Deploy
+ if: ${{ github.event_name == 'push' }}
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./site
diff --git a/docs/index.md b/docs/index.md
new file mode 100644
index 0000000..b481dca
--- /dev/null
+++ b/docs/index.md
@@ -0,0 +1,5 @@
+title: 主页
+
+# [前额叶皮层](https://github.com/OpenHUTB/PFC)
+
+前额叶皮层.pdf
\ No newline at end of file
diff --git a/mkdocs.yml b/mkdocs.yml
new file mode 100644
index 0000000..5c37478
--- /dev/null
+++ b/mkdocs.yml
@@ -0,0 +1,57 @@
+site_name: 前额叶皮层
+
+#repo_url: https://github.com/carla-simulator/carla
+#docs_dir: Docs
+#edit_uri: 'edit/master/Docs/'
+
+
+# 设置编译页面的链接的前缀
+repo_url: https://github.com/OpenHUTB/PFC
+
+# 页面右上角添加直接编辑页面的按钮
+edit_uri: edit/main/docs
+
+theme:
+ name: readthedocs
+ sticky_navigation: True
+ navigation_depth: 3
+extra_css: [extra.css]
+
+
+
+# mathjax用于单独公式展示
+extra_javascript:
+ - extra.js
+ - https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML
+
+plugins:
+# - mkdocs-video
+ - mkdocs-pdf
+ - search:
+ lang: ja
+ separator: '[\s\-\.]+'
+ min_search_length: 2
+
+extra:
+ generator: false
+
+nav:
+- 框架: '#content'
+- 一、总论: '#perspective'
+- 二、细胞: '#cell'
+- 三、突触: '#transmission'
+- 四、感知: '#perception'
+- 五、控制: '#control'
+- 六、规划: '#planning'
+- 七、发育: '#development'
+- 八、学习: '#learning'
+- 九、疾病: '#desease'
+
+
+
+
+# - mdx_math 用于行内公式显示
+markdown_extensions:
+ - admonition
+ - attr_list
+ # - mdx_math
\ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..032522d
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,7 @@
+mkdocs-pdf
+python-markdown-math
+numpy
+fitz
+PyPDF2
+frontend
+pymupdf
\ No newline at end of file