12
12
# add these directories to sys.path here. If the directory is relative to the
13
13
# documentation root, use os.path.abspath to make it absolute, like shown here.
14
14
#
15
- # import os
16
- # import sys
17
- # sys.path.insert(0, os.path.abspath('.'))
15
+
16
+ import os
17
+ import sys
18
+ sys .path .insert (0 , os .path .abspath ('.' ))
18
19
19
20
20
21
# -- Project information -----------------------------------------------------
21
22
22
- project = 'Discord.py Examples'
23
+ project = 'Discord Bot Examples'
23
24
copyright = '2018, Taku'
24
25
author = 'Taku'
25
26
42
43
'sphinx.ext.autodoc' ,
43
44
'sphinx.ext.intersphinx' ,
44
45
'sphinx.ext.viewcode' ,
46
+ 'sphinx.ext.napoleon' ,
45
47
]
46
48
47
49
# Add any paths that contain templates here, relative to this directory.
71
73
# The name of the Pygments (syntax highlighting) style to use.
72
74
pygments_style = 'default'
73
75
76
+ highlight_language = 'python3'
74
77
75
78
# -- Options for HTML output -------------------------------------------------
76
79
83
86
# further. For a list of options available for each theme, see the
84
87
# documentation.
85
88
#
86
- # html_theme_options = {}
87
-
89
+ html_theme_options = {'show_powered_by' : True ,
90
+ 'github_button' : True ,
91
+ # 'github_banner': True,
92
+ 'github_user' : 'GreatTaku' ,
93
+ 'github_repo' : project ,
94
+ 'show_related' : True ,
95
+ }
88
96
# Add any paths that contain custom static files (such as style sheets) here,
89
97
# relative to this directory. They are copied after the builtin static files,
90
98
# so a file named "default.css" will overwrite the builtin "default.css".
99
107
# 'searchbox.html']``.
100
108
#
101
109
# html_sidebars = {}
110
+ html_show_sourcelink = False
102
111
103
112
104
113
# -- Options for HTMLHelp output ---------------------------------------------
105
114
106
115
# Output file base name for HTML help builder.
107
- htmlhelp_basename = 'DiscordpyExamplesdoc '
116
+ htmlhelp_basename = 'DiscordBotExamplesdoc '
108
117
109
118
110
119
# -- Options for LaTeX output ------------------------------------------------
131
140
# (source start file, target name, title,
132
141
# author, documentclass [howto, manual, or own class]).
133
142
latex_documents = [
134
- (master_doc , 'DiscordpyExamples .tex' , 'Discord.py Examples Documentation' ,
143
+ (master_doc , 'DiscordBotExamples .tex' , 'Discord Bot Examples Documentation' ,
135
144
'Taku' , 'manual' ),
136
145
]
137
146
147
+ html_sidebars = {'**' : ['customtoc.html' , 'relations.html' , 'sourcelink.html' , 'searchbox.html' ]}
148
+
149
+ html_context = {
150
+ 'theme_globaltoc_depth' : '2' ,
151
+ }
138
152
139
153
# -- Options for manual page output ------------------------------------------
140
154
141
155
# One entry per manual page. List of tuples
142
156
# (source start file, name, description, authors, manual section).
143
157
man_pages = [
144
- (master_doc , 'discordpyexamples ' , 'Discord.py Examples Documentation' ,
158
+ (master_doc , 'discordbotexamples ' , 'Discord Bot Examples Documentation' ,
145
159
[author ], 1 )
146
160
]
147
161
152
166
# (source start file, target name, title, author,
153
167
# dir menu entry, description, category)
154
168
texinfo_documents = [
155
- (master_doc , 'DiscordpyExamples ' , 'Discord.py Examples Documentation' ,
156
- author , 'DiscordpyExamples ' , 'One line description of project.' ,
169
+ (master_doc , 'DiscordBotExamples ' , 'Discord Bot Examples Documentation' ,
170
+ author , 'DiscordBotExamples ' , 'One line description of project.' ,
157
171
'Miscellaneous' ),
158
172
]
159
173
160
174
161
175
# -- Extension configuration -------------------------------------------------
162
176
177
+ autodoc_member_order = 'bysource'
178
+ autoclass_content = 'both'
179
+
163
180
# -- Options for intersphinx extension ---------------------------------------
164
181
165
182
# Example configuration for intersphinx: refer to the Python standard library.
166
- intersphinx_mapping = {'https://docs.python.org/dev/' : None }
183
+ intersphinx_mapping = {'https://docs.python.org/dev/' : None }
0 commit comments