Skip to content

Commit ccae2cf

Browse files
committed
made huge changes to documentation
1 parent a7c2e60 commit ccae2cf

File tree

2 files changed

+112
-0
lines changed

2 files changed

+112
-0
lines changed

docs/source/conf.py

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
import os
14+
import sys
15+
16+
sys.path.insert(0, os.path.abspath('../..'))
17+
sys.path.insert(0, os.path.abspath('../python_project'))
18+
19+
# -- Project information -----------------------------------------------------
20+
21+
project = 'python_project'
22+
copyright = '2020, Wasim Akram Khan'
23+
author = 'Wasim Akram Khan'
24+
25+
# The full version, including alpha/beta/rc tags
26+
release = '0.0.1'
27+
28+
# -- General configuration ---------------------------------------------------
29+
30+
# Add any Sphinx extension module names here, as strings. They can be
31+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32+
# ones.
33+
34+
# First two are essential to generate the docs, others are optional.
35+
extensions = [
36+
'sphinx.ext.autodoc',
37+
'sphinx.ext.viewcode',
38+
'sphinx.ext.doctest',
39+
'sphinx.ext.intersphinx',
40+
'sphinx.ext.todo',
41+
'sphinx.ext.ifconfig',
42+
'sphinx.ext.githubpages',
43+
]
44+
45+
# Add any paths that contain templates here, relative to this directory.
46+
templates_path = ['_templates']
47+
48+
# List of patterns, relative to source directory, that match files and
49+
# directories to ignore when looking for source files.
50+
# This pattern also affects html_static_path and html_extra_path.
51+
exclude_patterns = []
52+
53+
# -- Options for HTML output -------------------------------------------------
54+
55+
# The theme to use for HTML and HTML Help pages. See the documentation for
56+
# a list of builtin themes.
57+
#
58+
html_theme = 'alabaster'
59+
60+
# Add any paths that contain custom static files (such as style sheets) here,
61+
# relative to this directory. They are copied after the builtin static files,
62+
# so a file named "default.css" will overwrite the builtin "default.css".
63+
html_static_path = ['_static']

docs/source/index.rst

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
python_project
2+
==============
3+
A template setup for a python project.
4+
5+
Features
6+
========
7+
It contains the following:
8+
* TravisCI for continuous integration
9+
* unittest for testing the project libraries
10+
* Documentation on readthedocs.org built using Sphinx, Doxygen and breathe.
11+
* Packaging the library for distribution on PyPi
12+
13+
Code snippets in rst file
14+
=========================
15+
sample.py
16+
17+
.. code-block:: python
18+
:name: sample.py
19+
20+
from python_project import mathlib
21+
22+
sum = mathlib.add(1, 1)
23+
print(f"Sum : {sum}")
24+
25+
26+
APIS
27+
====
28+
.. toctree::
29+
:maxdepth: 2
30+
:caption: Contents:
31+
32+
This package provides two different types of APIs.
33+
34+
Math Lib
35+
========
36+
.. automodule:: python_project.mathlib
37+
:members:
38+
39+
String Lib
40+
==========
41+
.. automodule:: python_project.strlib
42+
:members:
43+
44+
Indices and tables
45+
==================
46+
47+
* :ref:`genindex`
48+
* :ref:`modindex`
49+
* :ref:`search`

0 commit comments

Comments
 (0)