mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 08:50:54 +00:00
Docs
This commit is contained in:
1
docs/.gitignore
vendored
Normal file
1
docs/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
build/*
|
||||||
@@ -12,21 +12,21 @@
|
|||||||
# add these directories to sys.path here. If the directory is relative to the
|
# 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.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
# import os
|
import os
|
||||||
# import sys
|
import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
sys.path.insert(0, os.path.abspath('../../pycmx'))
|
||||||
|
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
project = 'pycmx'
|
project = u'pycmx'
|
||||||
copyright = '2018, Jamie Hardt'
|
copyright = u'2018, Jamie Hardt'
|
||||||
author = 'Jamie Hardt'
|
author = u'Jamie Hardt'
|
||||||
|
|
||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
version = '0.7'
|
version = u''
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = '0.6'
|
release = u''
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
@@ -40,6 +40,10 @@ release = '0.6'
|
|||||||
# ones.
|
# ones.
|
||||||
extensions = [
|
extensions = [
|
||||||
'sphinx.ext.autodoc',
|
'sphinx.ext.autodoc',
|
||||||
|
'sphinx.ext.todo',
|
||||||
|
'sphinx.ext.coverage',
|
||||||
|
'sphinx.ext.viewcode',
|
||||||
|
'sphinx.ext.githubpages',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
@@ -81,7 +85,7 @@ html_theme = 'sphinx_rtd_theme'
|
|||||||
# further. For a list of options available for each theme, see the
|
# further. For a list of options available for each theme, see the
|
||||||
# documentation.
|
# documentation.
|
||||||
#
|
#
|
||||||
# html_theme_options = {}
|
html_theme_options = {'collapse_navigation': False}
|
||||||
|
|
||||||
# Add any paths that contain custom static files (such as style sheets) here,
|
# 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,
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
@@ -129,8 +133,8 @@ latex_elements = {
|
|||||||
# (source start file, target name, title,
|
# (source start file, target name, title,
|
||||||
# author, documentclass [howto, manual, or own class]).
|
# author, documentclass [howto, manual, or own class]).
|
||||||
latex_documents = [
|
latex_documents = [
|
||||||
(master_doc, 'pycmx.tex', 'pycmx Documentation',
|
(master_doc, 'pycmx.tex', u'pycmx Documentation',
|
||||||
'Jamie Hardt', 'manual'),
|
u'Jamie Hardt', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@@ -139,7 +143,7 @@ latex_documents = [
|
|||||||
# One entry per manual page. List of tuples
|
# One entry per manual page. List of tuples
|
||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [
|
||||||
(master_doc, 'pycmx', 'pycmx Documentation',
|
(master_doc, 'pycmx', u'pycmx Documentation',
|
||||||
[author], 1)
|
[author], 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -150,7 +154,7 @@ man_pages = [
|
|||||||
# (source start file, target name, title, author,
|
# (source start file, target name, title, author,
|
||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
(master_doc, 'pycmx', 'pycmx Documentation',
|
(master_doc, 'pycmx', u'pycmx Documentation',
|
||||||
author, 'pycmx', 'One line description of project.',
|
author, 'pycmx', 'One line description of project.',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
@@ -176,33 +180,7 @@ epub_exclude_files = ['search.html']
|
|||||||
|
|
||||||
# -- Extension configuration -------------------------------------------------
|
# -- Extension configuration -------------------------------------------------
|
||||||
|
|
||||||
autodoc_member_order = 'bysource'
|
# -- Options for todo extension ----------------------------------------------
|
||||||
autodoc_default_flags = ['show-inheritance']
|
|
||||||
|
|
||||||
def run_apidoc(_):
|
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
||||||
"""This method is required by the setup method below."""
|
todo_include_todos = True
|
||||||
import os
|
|
||||||
dirname = os.path.dirname(__file__)
|
|
||||||
ignore_paths = [os.path.join(dirname, '../../aaf2/model'),]
|
|
||||||
# https://github.com/sphinx-doc/sphinx/blob/master/sphinx/ext/apidoc.py
|
|
||||||
argv = [
|
|
||||||
'--force',
|
|
||||||
'--no-toc',
|
|
||||||
'--separate',
|
|
||||||
'--module-first',
|
|
||||||
'--output-dir',
|
|
||||||
os.path.join(dirname, 'api'),
|
|
||||||
os.path.join(dirname, '../../aaf2'),
|
|
||||||
] + ignore_paths
|
|
||||||
|
|
||||||
from sphinx.ext import apidoc
|
|
||||||
apidoc.main(argv)
|
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
|
||||||
"""This method is a hook into the Sphinx builder system and injects the
|
|
||||||
apidoc module into it so it runs autodoc before running build.
|
|
||||||
If you mess with this, you may not see any effect in a local build, this
|
|
||||||
was added to get api documentation building on the ReadTheDocs server.
|
|
||||||
"""
|
|
||||||
app.connect('builder-inited', run_apidoc)
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.. pycmx documentation master file, created by
|
.. pycmx documentation master file, created by
|
||||||
sphinx-quickstart on Wed Dec 26 21:26:32 2018.
|
sphinx-quickstart on Wed Dec 26 21:51:43 2018.
|
||||||
You can adapt this file completely to your liking, but it should at least
|
You can adapt this file completely to your liking, but it should at least
|
||||||
contain the root `toctree` directive.
|
contain the root `toctree` directive.
|
||||||
|
|
||||||
@@ -7,11 +7,10 @@ Welcome to pycmx's documentation!
|
|||||||
=================================
|
=================================
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 5
|
||||||
:caption: Contents:
|
:caption: API Reference:
|
||||||
|
|
||||||
../../pycmx/pycmx
|
|
||||||
|
|
||||||
|
pycmx
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
==================
|
==================
|
||||||
|
|||||||
7
docs/source/modules.rst
Normal file
7
docs/source/modules.rst
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
pycmx
|
||||||
|
=====
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 4
|
||||||
|
|
||||||
|
pycmx
|
||||||
46
docs/source/pycmx.rst
Normal file
46
docs/source/pycmx.rst
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
pycmx package
|
||||||
|
=============
|
||||||
|
|
||||||
|
Submodules
|
||||||
|
----------
|
||||||
|
|
||||||
|
pycmx.channel\_map module
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
.. automodule:: pycmx.channel_map
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pycmx.parse\_cmx\_events module
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
.. automodule:: pycmx.parse_cmx_events
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pycmx.parse\_cmx\_statements module
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
.. automodule:: pycmx.parse_cmx_statements
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pycmx.util module
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
.. automodule:: pycmx.util
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
|
||||||
|
Module contents
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. automodule:: pycmx
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
Reference in New Issue
Block a user