|
19 | 19 | # add these directories to sys.path here. If the directory is relative to the |
20 | 20 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
21 | 21 | sys.path.insert(0, os.path.abspath('..')) |
22 | | -sys.path.insert(0, os.path.abspath('../../python-opc')) |
| 22 | + |
| 23 | +from docx import __version__ |
| 24 | + |
23 | 25 |
|
24 | 26 | # -- General configuration --------------------------------------------------- |
25 | 27 |
|
|
57 | 59 | # built documents. |
58 | 60 | # |
59 | 61 | # The short X.Y version. |
60 | | -version = '0.3' |
| 62 | +version = __version__ |
61 | 63 | # The full version, including alpha/beta/rc tags. |
62 | | -release = '0.3.0d1' |
| 64 | +release = __version__ |
63 | 65 |
|
64 | 66 | # A string of reStructuredText that will be included at the end of every source |
65 | 67 | # file that is read. This is the right place to add substitutions that should |
66 | 68 | # be available in every file. |
67 | 69 | rst_epilog = """ |
| 70 | +.. |api-Document| replace:: :class:`docx.api.Document` |
| 71 | +
|
68 | 72 | .. |_Body| replace:: :class:`_Body` |
69 | 73 |
|
| 74 | +.. |_Cell| replace:: :class:`_Cell` |
| 75 | +
|
| 76 | +.. |_Column| replace:: :class:`_Column` |
| 77 | +
|
| 78 | +.. |_ColumnCollection| replace:: :class:`_ColumnCollection` |
| 79 | +
|
70 | 80 | .. |Document| replace:: :class:`Document` |
71 | 81 |
|
72 | 82 | .. |_Document| replace:: :class:`_Document` |
73 | 83 |
|
| 84 | +.. |docx| replace:: ``python-docx`` |
| 85 | +
|
| 86 | +.. |Emu| replace:: :class:`Emu` |
| 87 | +
|
| 88 | +.. |InlineShape| replace:: :class:`InlineShape` |
| 89 | +
|
74 | 90 | .. |InlineShapes| replace:: :class:`InlineShapes` |
75 | 91 |
|
| 92 | +.. |int| replace:: :class:`int` |
| 93 | +
|
| 94 | +.. |Length| replace:: :class:`.Length` |
| 95 | +
|
76 | 96 | .. |OpcPackage| replace:: :class:`OpcPackage` |
77 | 97 |
|
78 | 98 | .. |Paragraph| replace:: :class:`Paragraph` |
|
85 | 105 |
|
86 | 106 | .. |RelationshipCollection| replace:: :class:`_RelationshipCollection` |
87 | 107 |
|
88 | | -.. |docx| replace:: ``python-docx`` |
| 108 | +.. |_Row| replace:: :class:`_Row` |
89 | 109 |
|
90 | | -.. |python-docx| replace:: ``python-docx`` |
| 110 | +.. |_RowCollection| replace:: :class:`_RowCollection` |
| 111 | +
|
| 112 | +.. |Run| replace:: :class:`Run` |
| 113 | +
|
| 114 | +.. |Table| replace:: :class:`Table` |
| 115 | +
|
| 116 | +.. |Text| replace:: :class:`Text` |
91 | 117 | """ |
92 | 118 |
|
93 | 119 |
|
|
162 | 188 |
|
163 | 189 | # Custom sidebar templates, maps document names to template names. |
164 | 190 | #html_sidebars = {} |
| 191 | +html_sidebars = { |
| 192 | + '**': ['localtoc.html', 'relations.html', 'sidebarlinks.html', |
| 193 | + 'searchbox.html'] |
| 194 | +} |
165 | 195 |
|
166 | 196 | # Additional templates that should be rendered to pages, maps page names to |
167 | 197 | # template names. |
|
0 commit comments