Skip to content

Commit

Permalink
Add initial documentation using Sphinx
Browse files Browse the repository at this point in the history
Signed-off-by: Roald Nefs <info@roaldnefs.com>
  • Loading branch information
roaldnefs committed Jan 17, 2021
1 parent 0680f77 commit 4697d8f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 66 deletions.
58 changes: 12 additions & 46 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,55 +1,21 @@
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))


# -- Project information -----------------------------------------------------

project = 'django-sms'
copyright = '2021, Roald Nefs'
author = 'Roald Nefs'

# The full version, including alpha/beta/rc tags
release = '0.1.0'


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
]

# Add any paths that contain templates here, relative to this directory.
extensions = ['m2r2']
templates_path = ['_templates']

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
source_suffix = ['.rst', '.md']


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_theme_options = {
"description": "A Django app for sending SMS with interchangeable backends.",
"show_powered_by": False,
"github_user": "roaldnefs",
"github_repo": "django-sms",
"github_button": True,
"github_banner": True,
"show_related": False,
}
html_static_path = ['_static']
21 changes: 1 addition & 20 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1 @@
.. django-sms documentation master file, created by
sphinx-quickstart on Tue Jan 12 19:44:29 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to django-sms's documentation!
======================================

.. toctree::
:maxdepth: 2
:caption: Contents:



Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
.. mdinclude:: ../README.md
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
m2r2

0 comments on commit 4697d8f

Please sign in to comment.