Skip to content

Commit e503414

Browse files
committed
Added docs folder
docs for storing documentation of rtd
1 parent 0fa1ae1 commit e503414

File tree

7 files changed

+76
-23
lines changed

7 files changed

+76
-23
lines changed

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# You can set these variables from the command line.
55
SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
7-
SPHINXPROJ = DiscordpyExamples
7+
SPHINXPROJ = DiscordBotExamples
88
SOURCEDIR = .
99
BUILDDIR = _build
1010

docs/_templates/customtoc.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
2+
{{ toctree(maxdepth=theme_globaltoc_depth|toint, collapse=False,includehidden=theme_globaltoc_includehidden|tobool) }}</ul>

docs/async.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. currentmodule:: async
2+
3+
Async Branch Examples
4+
=====================
5+
6+
This is the documentation for examples that uses the async branch of Discord.py.
7+
8+
Example 1
9+
---------
10+
11+
pass
12+
13+
Example 2
14+
---------
15+
16+
pass

docs/conf.py

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
# add these directories to sys.path here. If the directory is relative to the
1313
# documentation root, use os.path.abspath to make it absolute, like shown here.
1414
#
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('.'))
1819

1920

2021
# -- Project information -----------------------------------------------------
2122

22-
project = 'Discord.py Examples'
23+
project = 'Discord Bot Examples'
2324
copyright = '2018, Taku'
2425
author = 'Taku'
2526

@@ -42,6 +43,7 @@
4243
'sphinx.ext.autodoc',
4344
'sphinx.ext.intersphinx',
4445
'sphinx.ext.viewcode',
46+
'sphinx.ext.napoleon',
4547
]
4648

4749
# Add any paths that contain templates here, relative to this directory.
@@ -71,6 +73,7 @@
7173
# The name of the Pygments (syntax highlighting) style to use.
7274
pygments_style = 'default'
7375

76+
highlight_language = 'python3'
7477

7578
# -- Options for HTML output -------------------------------------------------
7679

@@ -83,8 +86,13 @@
8386
# further. For a list of options available for each theme, see the
8487
# documentation.
8588
#
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+
}
8896
# Add any paths that contain custom static files (such as style sheets) here,
8997
# relative to this directory. They are copied after the builtin static files,
9098
# so a file named "default.css" will overwrite the builtin "default.css".
@@ -99,12 +107,13 @@
99107
# 'searchbox.html']``.
100108
#
101109
# html_sidebars = {}
110+
html_show_sourcelink = False
102111

103112

104113
# -- Options for HTMLHelp output ---------------------------------------------
105114

106115
# Output file base name for HTML help builder.
107-
htmlhelp_basename = 'DiscordpyExamplesdoc'
116+
htmlhelp_basename = 'DiscordBotExamplesdoc'
108117

109118

110119
# -- Options for LaTeX output ------------------------------------------------
@@ -131,17 +140,22 @@
131140
# (source start file, target name, title,
132141
# author, documentclass [howto, manual, or own class]).
133142
latex_documents = [
134-
(master_doc, 'DiscordpyExamples.tex', 'Discord.py Examples Documentation',
143+
(master_doc, 'DiscordBotExamples.tex', 'Discord Bot Examples Documentation',
135144
'Taku', 'manual'),
136145
]
137146

147+
html_sidebars = {'**': ['customtoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html']}
148+
149+
html_context = {
150+
'theme_globaltoc_depth': '2',
151+
}
138152

139153
# -- Options for manual page output ------------------------------------------
140154

141155
# One entry per manual page. List of tuples
142156
# (source start file, name, description, authors, manual section).
143157
man_pages = [
144-
(master_doc, 'discordpyexamples', 'Discord.py Examples Documentation',
158+
(master_doc, 'discordbotexamples', 'Discord Bot Examples Documentation',
145159
[author], 1)
146160
]
147161

@@ -152,15 +166,18 @@
152166
# (source start file, target name, title, author,
153167
# dir menu entry, description, category)
154168
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.',
157171
'Miscellaneous'),
158172
]
159173

160174

161175
# -- Extension configuration -------------------------------------------------
162176

177+
autodoc_member_order = 'bysource'
178+
autoclass_content = 'both'
179+
163180
# -- Options for intersphinx extension ---------------------------------------
164181

165182
# 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}

docs/index.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
.. Discord.py Examples documentation master file, created by
2-
sphinx-quickstart on Fri May 11 17:45:21 2018.
1+
.. Discord Bot Examples documentation master file, created by
2+
sphinx-quickstart on Fri May 11 20:03:41 2018.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Discord.py (Examples) documentation!
7-
====================================
6+
=================================
7+
Discord Bot Examples Explanations
8+
=================================
89

10+
A repository containing well-documented and easy-to-learn examples involving the use of Discord.py library.
911

1012

11-
REFERENCES
12-
==========
13-
13+
Branch Sub Versions
14+
===================
1415
.. toctree::
15-
:maxdepth: 2
16-
:caption: Contents:
16+
:maxdepth: 2
1717

18+
async
19+
rewrite
1820

1921

2022
Indices and tables

docs/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if "%SPHINXBUILD%" == "" (
99
)
1010
set SOURCEDIR=.
1111
set BUILDDIR=_build
12-
set SPHINXPROJ=DiscordpyExamples
12+
set SPHINXPROJ=DiscordBotExamples
1313

1414
if "%1" == "" goto help
1515

docs/rewrite.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. currentmodule:: rewrite
2+
3+
Rewrite Branch Examples
4+
=======================
5+
6+
This is the documentation for examples that uses the rewrite branch of Discord.py.
7+
8+
Example 1
9+
---------
10+
11+
pass
12+
13+
Example 2
14+
---------
15+
16+
pass

0 commit comments

Comments
 (0)