Skip to content

Commit 0cf2e55

Browse files
committed
更新
1 parent 0f8ce71 commit 0cf2e55

File tree

5 files changed

+37
-23
lines changed

5 files changed

+37
-23
lines changed

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
pip install --upgrade pip
4747
pip install .[doc] --upgrade
4848
conda install -c conda-forge pandoc compilers cppyy pandoc llvm doxygen
49-
conda install anaconda::graphviz
49+
conda install -c conda-forge -y graphviz
5050
invoke doc
5151
- name: Setup Pages
5252
uses: actions/configure-pages@main

doc/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
# -------------------------------------------------------------------------------------
2727
extensions = [
2828
"myst_nb",
29+
"breathe",
2930
"sphinx_design",
3031
"sphinx.ext.viewcode", # 添加到高亮源代码的链接
3132
"sphinx.ext.extlinks", # 缩短外部链接
@@ -124,8 +125,8 @@
124125
# ===================== 可选 ==========================================================
125126
# 用户可以使用 BibTeX 格式的参考文献数据库,并在文档中插入引用和生成参考文献列表。
126127
# -------------------------------------------------------------------------------------
127-
extensions.append('sphinxcontrib.bibtex')
128-
bibtex_bibfiles = ['refs.bib']
128+
# extensions.append('sphinxcontrib.bibtex')
129+
# bibtex_bibfiles = ['refs.bib']
129130
# 自动生成 API 文档的路径
130131
# -------------------------------------------------------------------------------------
131132
extensions.append("autoapi.extension")

doc/draft/draft2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ echo %ERRORLEVEL%
3535
```
3636
````
3737
38-
````{tab-item}Linux
38+
````{tab-item} Linux
3939
```sh
4040
echo $?
4141
```

doc/exercises/cpp2c.ipynb

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,27 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": null,
20-
"metadata": {
21-
"vscode": {
22-
"languageId": "c++"
19+
"execution_count": 1,
20+
"metadata": {},
21+
"outputs": [
22+
{
23+
"name": "stderr",
24+
"output_type": "stream",
25+
"text": [
26+
"input_line_8:1:10: fatal error: 'cppExample.h' file not found\n",
27+
"#include \"cppExample.h\"\n",
28+
" ^~~~~~~~~~~~~~\n"
29+
]
30+
},
31+
{
32+
"ename": "Interpreter Error",
33+
"evalue": "",
34+
"output_type": "error",
35+
"traceback": [
36+
"Interpreter Error: "
37+
]
2338
}
24-
},
25-
"outputs": [],
39+
],
2640
"source": [
2741
"//C++头文件 cppExample.h\n",
2842
"#ifndef CPP_EXAMPLE_H\n",
@@ -47,6 +61,13 @@
4761
" return 0;\n",
4862
"}"
4963
]
64+
},
65+
{
66+
"cell_type": "code",
67+
"execution_count": null,
68+
"metadata": {},
69+
"outputs": [],
70+
"source": []
5071
}
5172
],
5273
"metadata": {
@@ -56,7 +77,11 @@
5677
"name": "xcpp14"
5778
},
5879
"language_info": {
59-
"name": "C++14"
80+
"codemirror_mode": "text/x-c++src",
81+
"file_extension": ".cpp",
82+
"mimetype": "text/x-c++src",
83+
"name": "c++",
84+
"version": "14"
6085
}
6186
},
6287
"nbformat": 4,

doc/requirements.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)