Skip to content

Commit 3c96dda

Browse files
Add Sphinx documentation code
1 parent 1ca7c97 commit 3c96dda

File tree

5 files changed

+81
-0
lines changed

5 files changed

+81
-0
lines changed

docs/conf.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# For the full list of built-in configuration values, see the documentation:
4+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
5+
6+
# -- Project information -----------------------------------------------------
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8+
9+
project = "Reddit Python API"
10+
copyright = "2023, Electronic-Mango"
11+
author = "Electronic-Mango"
12+
13+
# -- General configuration ---------------------------------------------------
14+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
15+
16+
extensions = [
17+
"sphinx.ext.autodoc",
18+
"sphinx.ext.autosummary",
19+
"sphinx.ext.napoleon",
20+
"sphinx.ext.viewcode",
21+
]
22+
23+
templates_path = ["_templates"]
24+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
25+
26+
27+
# -- Options for HTML output -------------------------------------------------
28+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
29+
30+
html_theme = "sphinx_rtd_theme"
31+
html_static_path = ["_static"]

docs/index.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. Reddit Python API documentation master file, created by
2+
sphinx-quickstart on Sat Nov 25 21:28:54 2023.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to Reddit Python API's documentation!
7+
=============================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
modules
14+
15+
16+
17+
Indices and tables
18+
==================
19+
20+
* :ref:`genindex`
21+
* :ref:`modindex`
22+
* :ref:`search`

docs/modules.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
redditpythonapi
2+
===============
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
redditpythonapi

docs/redditpythonapi.rst

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

requirements.txt

1.92 KB
Binary file not shown.

0 commit comments

Comments
 (0)