Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/compileandrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: 主页

# [前额叶皮层](https://github.com/OpenHUTB/PFC)

<a href="./PFC.pdf" class="image fit">前额叶皮层.pdf</a> <span id="move_pdf"></span>
57 changes: 57 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mkdocs-pdf
python-markdown-math
numpy
fitz
PyPDF2
frontend
pymupdf