Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from RonnyPfannschmidt/docs
Browse files Browse the repository at this point in the history
set up a initial sphinx skeleton
  • Loading branch information
Milan Falešník committed Apr 6, 2016
2 parents 44d655c + 32ad4db commit cac8ec6
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -22,6 +22,7 @@ var/
*.egg-info/
.installed.cfg
*.egg
.env/

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
8 changes: 8 additions & 0 deletions docs/about.rst
@@ -0,0 +1,8 @@
about deprecate
================

The deprecate library provides decorators and primitives to support
API deprecation and experimentation.

The goal is to support rich and documenting deprecation of API's
as projects move towards new needs.
8 changes: 8 additions & 0 deletions docs/api.rst
@@ -0,0 +1,8 @@
Api
===



.. automodule:: deprecate

.. autofunction:: deprecated
4 changes: 4 additions & 0 deletions docs/basics.rst
@@ -0,0 +1,4 @@
Basics
=======

TODO!!
36 changes: 36 additions & 0 deletions docs/conf.py
@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
import pkg_resources
__distribution = pkg_resources.get_distribution('deprecate')

extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'

# General information about the project.
project = __distribution.project_name
copyright = u'2015, Milan Falešník'
author = u'Milan Falešník'


# The short X.Y version.
version = u'1.x'
# The full version, including alpha/beta/rc tags.
release = __distribution.version
version = '.'.join(release.split('.')[:2])

exclude_patterns = []

pygments_style = 'sphinx'
todo_include_todos = False


html_theme = 'haiku'
html_static_path = ['_static']

htmlhelp_basename = 'deprecatedoc'
21 changes: 21 additions & 0 deletions docs/index.rst
@@ -0,0 +1,21 @@

Welcome to deprecate's documentation!
=====================================

Contents:

.. toctree::
:maxdepth: 2

about
basics
api



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

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
9 changes: 9 additions & 0 deletions tox.ini
Expand Up @@ -10,5 +10,14 @@ skip_install = true
deps= flake8
commands = flake8 {posargs:src testing}

[testenv:docs]
deps = sphinx
commands =
sphinx-build \
-b html \
-d build/sphinx-doctrees \
docs build/htmldocs


[flake8]
max_line_length = 100

0 comments on commit cac8ec6

Please sign in to comment.