forked from Voidly/Parallel-Programming-with-Python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmkdocs.yaml
125 lines (120 loc) · 6.58 KB
/
mkdocs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
site_name: python并发编程-中文版
repo_url: https://github.com/hellowac/parallel-programming-with-python-zh/tree/docs
repo_name: hellowac/parallel-programming-with-python-zh
# 配置主题,在mkdocs.yml文件下
theme:
name: material
language: zh
palette: # 文档颜色, https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/
scheme: default # 配色方案
primary: default # 主色
accent: red # 强调色
features:
# - navigation.tabs # 顶部导航
# - navigation.sections # 全部展开(非折叠状态)
# - navigation.expand # 子目录展开
- navigation.indexes # 带章节索引页
- navigation.top # 返回顶部按钮
- toc.follow
# 插件
plugins:
- glightbox
- search:
separator: '[\s\-,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
- git-revision-date-localized: # 支持文档创建时间显示, https://github.com/timvink/mkdocs-git-revision-date-localized-plugin
locale: zh
enable_creation_date: true
type: date
# markdown解析扩展
markdown_extensions:
- tables
- admonition
- attr_list
- md_in_html # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#footnotes
# pymdownx 扩展,参考:https://facelessuser.github.io/pymdown-extensions/
- pymdownx.inlinehilite # 单行高亮, 参考: https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#highlighting-specific-lines
- pymdownx.critic # 支持部分字段格式化,参考:https://squidfunk.github.io/mkdocs-material/reference/formatting/
- pymdownx.highlight # 支持代码块高亮显示
- pymdownx.snippets
- pymdownx.details
- pymdownx.superfences: # 注释 :
# preserve_tabs: true
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.caret # 下划线, 上标 : https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/?h=caret#caret-mark-tilde
# https://facelessuser.github.io/pymdown-extensions/extensions/caret/
- pymdownx.mark # 标记 :https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/?h=caret#caret-mark-tilde
# https://facelessuser.github.io/pymdown-extensions/extensions/mark/
- pymdownx.tilde # 删除线, 下标 参考: https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/?h=caret#caret-mark-tilde
# https://facelessuser.github.io/pymdown-extensions/extensions/tilde/
- pymdownx.arithmatex:
generic: true
# 扩展支持, 支持数学符号
extra_javascript:
- javascripts/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
- https://unpkg.com/[email protected]/dist/mermaid.min.js
# - https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs
# 页面导航
nav:
- python并发编程: index.md
- 第一章 并行、并发以及分布式编程的对比分析:
- chapter1/index.md
- 为什么使用并行编程: chapter1/why_use_parallel_programming.md
- 探索并行化的几种方式: chapter1/exploring_common_forms_of_parallelization.md
- 并行编程间的通信: chapter1/communicating_in_parallel_programming.md
- 识别并行编程的问题: chapter1/identifying_parallel_programming_problems.md
- 发现Python并行编程的工具: chapter1/discovering_Pythons_parallel_programming_tools.md
- 小心PythonGIL: chapter1/taking_care_of_GIL.md
- 小结: chapter1/summary.md
- 第二章 设计并行算法:
- chapter2/index.md
- 分治技术: chapter2/分治技术.md
- 使用数据分解: chapter2/使用数据分解.md
- 用管道分解任务: chapter2/用管道分解任务.md
- 处理和映射: chapter2/处理和映射.md
- 小结: chapter2/总结.md
- 第三章 设计并行算法:
- chapter3/index.md
- 从多个输入中得到斐波那契最大的值: chapter3/从多个输入中得到斐波那契最大的值.md
- 爬取网页: chapter3/爬取网页.md
- 小结: chapter3/总结.md
- 第四章 使用threading和concurrent.futures模块:
- chapter4/index.md
- 什么是线程: chapter4/defining_threads.md
- 使用threading模块来为多个输入同时计算Fibonacci序列: chapter4/using_threading_to_obtain_the_Fibonacci_series_term_with_multiple_inputs.md
- 使用concurrent.futures模块爬取web信息: chapter4/crawling_the_web_using_the_concurrent_futures_module.md
- 小结: chapter4/总结.md
- 第五章 使用多进程和进程池:
- chapter5/index.md
- 理解进程的概念: chapter5/understanding_the_concept_of_a_process.md
- 理解多进程通信: chapter5/implementing_multiprocessing_communication.md
- 使用多进程解决斐波那契数列多输入问题: chapter5/using_multiprocessing_to_compute_fibonacci_series_terms_with_multiple_inputs.md
- 使用ProcessPoolExecutor模块设计网络爬虫: chapter5/crawling_the_web_using_processPoolExecutor.md
- 小结: chapter5/总结.md
- 第六章 使用并行 Python:
- chapter6/index.md
- 理解进程间通信: chapter6/understanding_interprocess_communication.md
- 了解Parallel Python(PP): chapter6/discovering_pp.md
- 在SMP架构上使用PP计算斐波那契序列: chapter6/using_pp_to_calculate_the_fibonacci_series_term_on_smp_architecture.md
- 使用PP创建分布式的网络爬虫: chapter6/using_pp_to_make_a_distributed_web_crawler.md
- 小结: chapter6/总结.md
- 第七章 使用Celery分发任务:
- chapter7/index.md
- 理解 Celery: chapter7/understanding_celery.md
- 理解 Celery 的架构: chapter7/understanding_celery_architecture.md
- 搭建环境: chapter7/setting_up_the_environment.md
- 分派一个简单的任务: chapter7/dispatching_a_simple_task.md
- 使用 Celery 获取斐波那契数列项: chapter7/using_celery_to_obtain_a_fibonacci_series_term.md
- 根据任务类型定义队列: chapter7/defining_queues_by_task_types.md
- 使用 Celery 制作分布式网络爬虫: chapter7/using_celery_to_make_a_distributed_web_crawler.md
- 小结: chapter7/总结.md
- 第八章 异步编程:
- chapter8/index.md
- 理解阻塞非阻塞和异步操作: chapter8/理解阻塞非阻塞和异步操作.md
- 理解事件循环: chapter8/理解事件循环.md
- 使用asyncio: chapter8/使用asyncio.md
- 小结: chapter8/总结.md