Skip to content

Commit aa3ca38

Browse files
authored
Sphinx restructuring: Now builds PDF and better HTML docs (python-telegram-bot#449)
* update sphinx source files to properly build latexpdf and improve html build * fix docstrings and sphinx sources to get rid of warnings * add telegram.contrib.rst
1 parent b22c3cc commit aa3ca38

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+95
-82
lines changed

docs/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@
209209
# -- Options for LaTeX output ---------------------------------------------
210210

211211
latex_elements = {
212+
'preamble': '''\\setcounter{tocdepth}{2}
213+
\\usepackage{enumitem}
214+
\\setlistdepth{99}''',
212215
# The paper size ('letterpaper' or 'a4paper').
213216
#'papersize': 'letterpaper',
214217

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Contents:
1010
telegram
1111

1212
.. toctree::
13-
:maxdepth: 2
13+
telegram
1414

1515

1616

docs/source/modules.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/telegram.contrib.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
telegram.contrib package
2+
========================
3+
4+
Submodules
5+
----------
6+
7+
.. toctree::
8+
9+
telegram.contrib.botan
10+
11+
Module contents
12+
---------------
13+
14+
.. automodule:: telegram.contrib
15+
:members:
16+
:undoc-members:
17+
:show-inheritance:

docs/source/telegram.ext.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Submodules
1010
telegram.ext.dispatcher
1111
telegram.ext.jobqueue
1212
telegram.ext.handler
13+
telegram.ext.callbackqueryhandler
1314
telegram.ext.choseninlineresulthandler
1415
telegram.ext.conversationhandler
1516
telegram.ext.commandhandler

docs/source/telegram.inlinekeyboardbutton.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
telegram.inlinekeyboardbutton module
2-
===========================
2+
====================================
33

44
.. automodule:: telegram.inlinekeyboardbutton
55
:members:

docs/source/telegram.inlinekeyboardmarkup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
telegram.inlinekeyboardmarkup module
2-
==========================
2+
====================================
33

44
.. automodule:: telegram.inlinekeyboardmarkup
55
:members:

docs/source/telegram.inlinequeryresultarticle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
telegram.inlinequeryresultarticle module
2-
=================================
2+
========================================
33

44
.. automodule:: telegram.inlinequeryresultarticle
55
:members:

docs/source/telegram.inlinequeryresultaudio.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
telegram.inlinequeryresultaudio module
2-
=================================
2+
======================================
33

44
.. automodule:: telegram.inlinequeryresultaudio
55
:members:

docs/source/telegram.inlinequeryresultcachedaudio.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
telegram.inlinequeryresultcachedaudio module
2-
=================================
2+
============================================
33

44
.. automodule:: telegram.inlinequeryresultcachedaudio
55
:members:

0 commit comments

Comments
 (0)