Skip to content

Commit aa5e9ff

Browse files
[FEATURE] Prototype for docs via sphinx
1 parent 6c9054b commit aa5e9ff

File tree

2 files changed

+19
-23
lines changed

2 files changed

+19
-23
lines changed

docs/conf.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
# import sys
15-
# import os
14+
import sys
15+
import os
16+
import argparse
1617

1718
# If extensions (or modules to document with autodoc) are in another directory,
1819
# add these directories to sys.path here. If the directory is relative to the
1920
# documentation root, use os.path.abspath to make it absolute, like shown here.
20-
# sys.path.insert(0, os.path.abspath('.'))
21+
sys.path.insert(0, os.path.abspath('../pythonrepo'))
2122

2223
# -- General configuration -----------------------------------------------------
2324

2425
# If your documentation needs a minimal Sphinx version, state it here.
25-
# needs_sphinx = '1.0'
26+
needs_sphinx = '4.0'
2627

2728
# Add any Sphinx extension module names here, as strings. They can be extensions
2829
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
@@ -35,7 +36,7 @@
3536
source_suffix = '.md'
3637

3738
# The encoding of source files.
38-
# source_encoding = 'utf-8-sig'
39+
source_encoding = 'utf-8'
3940

4041
# The master toctree document.
4142
master_doc = 'index'
@@ -49,9 +50,9 @@
4950
# built documents.
5051
#
5152
# The short X.Y version.
52-
version = 'v1.1'
53+
version = 'v2.0'
5354
# The full version, including alpha/beta/rc tags.
54-
release = 'v1.1.4'
55+
release = 'v2.0.0-alpha'
5556

5657
# The language for content autogenerated by Sphinx. Refer to documentation
5758
# for a list of supported languages.
@@ -62,20 +63,21 @@
6263
# today = ''
6364
# Else, today_fmt is used as the format for a strftime call.
6465
# today_fmt = '%B %d, %Y'
66+
today_fmt = '%Y.%B.%d'
6567

6668
# List of patterns, relative to source directory, that match files and
6769
# directories to ignore when looking for source files.
68-
exclude_patterns = ['_build', 'tests']
70+
exclude_patterns = ['_build', '.github/', '.circleci/', 'dist', 'tests']
6971

7072
# The reST default role (used for this markup: `text`) to use for all documents.
7173
# default_role = None
7274

7375
# If true, '()' will be appended to :func: etc. cross-reference text.
74-
# add_function_parentheses = True
76+
add_function_parentheses = True
7577

7678
# If true, the current module name will be prepended to all description
7779
# unit titles (such as .. function::).
78-
# add_module_names = True
80+
add_module_names = True
7981

8082
# If true, sectionauthor and moduleauthor directives will be shown in the
8183
# output. They are ignored by default.

docs/index.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
.. python_repo documentation master file, created by
2-
sphinx-quickstart on Mon Apr 16 21:22:43 2012.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
1+
# Welcome to Python Repo' documentation!
2+
---
3+
### Contents:
54

6-
Welcome to Python Repo' documentation!
7-
================================================
5+
toctree::
6+
:maxdepth: 2
87

9-
Contents:
108

11-
.. toctree::
12-
:maxdepth: 2
139

14-
15-
16-
Indices and tables
17-
==================
10+
### Indices and tables
11+
---
1812

1913
* :ref:`genindex`
2014
* :ref:`modindex`

0 commit comments

Comments
 (0)