You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2022. It is now read-only.
@@ -34,6 +38,7 @@ All the features are by default enabled
34
38
35
39
Auto Toc Tree
36
40
-------------
41
+
37
42
One of important command in tools like sphinx is `toctree`. This is a command to generate table of contents and
38
43
tell sphinx about the structure of the documents. In markdown, usually we manually list of contents by a bullet list
39
44
of url reference to the other documents.
@@ -44,14 +49,17 @@ AutoStructify transforms bullet list of document URLs like this
44
49
* [Title1](doc1.md)
45
50
* [Title2](doc2.md)
46
51
```
52
+
47
53
to the AST of this following reStructuredText code
54
+
48
55
```rst
49
56
.. toctree::
50
57
:maxdepth: 1
51
58
52
59
doc1
53
60
doc2
54
61
```
62
+
55
63
You can also find the usage of this feature in `index.md` of this document.
56
64
57
65
Auto Doc Ref
@@ -66,17 +74,21 @@ Auto Doc Ref
66
74
67
75
It is common to refer to another document page in one document. We usually use reference to do that.
68
76
AutoStructify will translate these reference block into a structured document reference. For example
77
+
69
78
```
70
79
[API Reference](api_ref.md)
71
80
```
81
+
72
82
will be translated to the AST of following reStructuredText code
83
+
73
84
```
74
85
:doc:`API Reference </api_ref>`
75
86
```
76
87
And it will be rendered as [API Reference](api_ref)
77
88
78
89
URL Resolver
79
90
------------
91
+
80
92
Sometimes in a markdown, we want to refer to the code in the same repo.
81
93
This can usually be done by a reference by reference path. However, since the generated document is hosted elsewhere,
82
94
the relative path may not work in generated document site. URL resolver is introduced to solve this problem.
@@ -87,9 +99,9 @@ So `[parser code](../recommonmark/parser.py)` will be translated into [parser co
87
99
88
100
Note that the reference to the internal document will not be passed to url resolver, and will be linked to the internal document pages correctly, see [Auto Doc Ref](#auto-doc-ref).
89
101
90
-
91
102
Codeblock Extensions
92
103
--------------------
104
+
93
105
In markdown, you can write codeblocks fenced by (at least) three backticks
94
106
(```` ``` ````). The following is an example of codeblock.
0 commit comments