Skip to content

Commit

Permalink
finishing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kiedanski committed Jul 11, 2019
1 parent 9e40b7e commit 18c9040
Show file tree
Hide file tree
Showing 27 changed files with 248 additions and 217 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ coverage: ## check code coverage quickly with the default Python
$(BROWSER) htmlcov/index.html

docs: ## generate Sphinx HTML documentation, including API docs
rm -f docs/pymarket.rst
rm -f docs/modules.rst
sphinx-apidoc -o docs/ pymarket
$(MAKE) -C docs clean
$(MAKE) -C docs html
$(BROWSER) docs/_build/html/index.html
Expand Down
9 changes: 7 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = python -msphinx
SPHINXPROJ = pymarket
SPHINXBUILD = sphinx-build
SOURCEDIR = .
BUILDDIR = _build
PROJECTDIR = ../pymarket

# Put it first so that "make" without argument is like "make help".
help:
Expand All @@ -17,4 +17,9 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
sphinx-apidoc -o source/ $(PROJECTDIR)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

clean:
rm -rf source/* || true
rm -rf $(BUILDDIR)/* || true
158 changes: 95 additions & 63 deletions docs/conf.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,39 +1,55 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# pymarket documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
# Configuration file for the Sphinx documentation builder.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config

# 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.
# -- 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('..'))
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))


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

project = 'PyMarket'
copyright = '2019, Diego Kiedanski'
author = 'Diego Kiedanski'

# The short X.Y version
version = ''
# The full version, including alpha/beta/rc tags
release = ''

import pymarket

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

# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode',
'sphinxcontrib.napoleon', 'nbsphinx', 'sphinx.ext.mathjax',]
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinxcontrib.napoleon',
'nbsphinx',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand All @@ -47,20 +63,6 @@
# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'pymarket'
copyright = u"2019, Diego Kiedanki"
author = u"Diego Kiedanki"

# The version info for the project you're documenting, acts as replacement
# for |version| and |release|, also used in various other places throughout
# the built documents.
#
# The short X.Y version.
version = pymarket.__version__
# The full version, including alpha/beta/rc tags.
release = pymarket.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
Expand All @@ -70,25 +72,22 @@

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

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
pygments_style = None


# -- Options for HTML output -------------------------------------------
# -- 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 = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a
# theme further. For a list of options available for each theme, see the
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
Expand All @@ -98,14 +97,24 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# The default sidebars (for documents that don't match any pattern) are
# defined by theme itself. Builtin themes are using these templates by
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
# 'searchbox.html']``.
#
# html_sidebars = {}


# -- Options for HTMLHelp output ---------------------------------------
# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'pymarketdoc'
htmlhelp_basename = 'PyMarketdoc'


# -- Options for LaTeX output ------------------------------------------
# -- Options for LaTeX output ------------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
Expand All @@ -126,39 +135,62 @@
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass
# [howto, manual, or own class]).
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'pymarket.tex',
u'pymarket Documentation',
u'Diego Kiedanki', 'manual'),
(master_doc, 'PyMarket.tex', 'PyMarket Documentation',
'Diego Kiedanski', 'manual'),
]


# -- Options for manual page output ------------------------------------
# -- Options for manual page output ------------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'pymarket',
u'pymarket Documentation',
(master_doc, 'pymarket', 'PyMarket Documentation',
[author], 1)
]


# -- Options for Texinfo output ----------------------------------------
# -- Options for Texinfo output ----------------------------------------------

# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'pymarket',
u'pymarket Documentation',
author,
'pymarket',
'One line description of project.',
(master_doc, 'PyMarket', 'PyMarket Documentation',
author, 'PyMarket', 'One line description of project.',
'Miscellaneous'),
]


# -- Options for Epub output -------------------------------------------------

# Bibliographic Dublin Core info.
epub_title = project

# The unique identifier of the text. This can be a ISBN number
# or the project homepage.
#
# epub_identifier = ''

# A unique identification for the text.
#
# epub_uid = ''

# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']


# -- Extension configuration -------------------------------------------------

# -- Options for intersphinx extension ---------------------------------------

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/': None}

# -- Options for todo extension ----------------------------------------------

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True
1 change: 0 additions & 1 deletion docs/history.rst

This file was deleted.

3 changes: 1 addition & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ This library aims to provide a simple interface for such process, making results
installation
quickstart
examples
modules
source/modules
contributing
authors
history

Indices and tables
==================
Expand Down
36 changes: 0 additions & 36 deletions docs/make.bat

This file was deleted.

22 changes: 0 additions & 22 deletions docs/pymarket.plot.rst

This file was deleted.

22 changes: 0 additions & 22 deletions docs/pymarket.statistics.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/readme.rst

This file was deleted.

File renamed without changes.
8 changes: 8 additions & 0 deletions docs/pymarket.bids.rst → docs/source/pymarket.bids.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ pymarket.bids.demand\_curves module
:undoc-members:
:show-inheritance:

pymarket.bids.processing module
-------------------------------

.. automodule:: pymarket.bids.processing
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------
Expand Down
File renamed without changes.

0 comments on commit 18c9040

Please sign in to comment.