Skip to content

Commit 9e6d3d2

Browse files
committed
添加docfx支持,以便于将文档生成为带目录的PDF文档
add docfx support, make PDF generate with Table of Content
1 parent 94ef6ea commit 9e6d3d2

File tree

5 files changed

+479
-0
lines changed

5 files changed

+479
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
book
22
.idea
3+
_site

docfx.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/dotnet/docfx/main/schemas/docfx.schema.json",
3+
"build": {
4+
"content": [
5+
{
6+
"files": [
7+
"**/*.{md,yml}"
8+
],
9+
"exclude": [
10+
"_site/**"
11+
]
12+
}
13+
],
14+
"resource": [
15+
{
16+
"files": [
17+
"images/**"
18+
]
19+
}
20+
],
21+
"output": "_site",
22+
"template": [
23+
"default",
24+
"modern"
25+
],
26+
"globalMetadata": {
27+
"_appName": "\u901A\u8FC7\u4F8B\u5B50\u5B66\u4E60Rust - by docfx",
28+
"_appTitle": "\u901A\u8FC7\u4F8B\u5B50\u5B66\u4E60Rust - by docfx",
29+
"_enableSearch": true,
30+
"pdf": true
31+
}
32+
}
33+
}

index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
_layout: landing
3+
---
4+
5+
# This is the **HOMEPAGE**.
6+
7+
Refer to [Markdown](http://daringfireball.net/projects/markdown/) for how to write markdown files.
8+
9+
## Quick Start Notes:
10+
11+
1. Add images to the *images* folder if the file is referencing an image.

0 commit comments

Comments
 (0)