Skip to content

Commit

Permalink
Sets the table for better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelduchesne committed Jul 12, 2019
1 parent e6cc25a commit d359470
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 75 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@ tests/\.temp/

tests/input_data/schedules/eprun/
trnsidf.exe

docs/reference/
33 changes: 10 additions & 23 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@
import sys

sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('archetypal'))

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

project = 'archetypal'
copyright = '2018, Samuel Letellier-Duchesne'
author = 'Samuel Letellier-Duchesne'

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

version = release = pyTrnsysType.__version__

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

Expand Down Expand Up @@ -66,6 +67,10 @@
master_doc = 'index'
numfig = True

autosummary_generate = True
autoclass_content = "both"
autodoc_member_order = 'bysource'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
Expand All @@ -75,12 +80,8 @@

# 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 = ['.pytest_cache', '_build', 'Thumbs.db', '.DS_Store',
'README.md', 'LICENSE.md']

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

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

Expand All @@ -103,7 +104,6 @@

def setup(app):
app.add_stylesheet('theme_overrides.css')
app.connect('autodoc-skip-member', autodoc_skip_member)
app.add_javascript('copybutton.js')
# Add the 'copybutton' javascript, to hide/show the prompt in code examples

Expand Down Expand Up @@ -208,16 +208,3 @@ def setup(app):

# If true, `_todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True

# -- Autodoc Skip Memebrs ____________________________________________________

autodoc_default_options = {}


def autodoc_skip_member(app, what, name, obj, skip, options):
exclusions = ('__weakref__', # special-members
'__doc__', '__module__', '__dict__', # undoc-members,
'archetypal.schedule._conjunction'
)
exclude = name in exclusions
return skip or exclude
2 changes: 1 addition & 1 deletion docs/converter_idf.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Convert IDF to BUI
=====================
==================

.. figure:: images/converter@2x.png
:alt: converter logo
Expand Down
4 changes: 1 addition & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@ developed by the MIT Sustainable Design Lab.


.. toctree::
:maxdepth: 1
:maxdepth: 2
:caption: User Guide

Getting Started <first.rst>
Schedules <schedules.rst>
Convert IDF to BUI <converter_idf.rst>

.. toctree::
:maxdepth: 1
:caption: Reference Guide

commands
Package Modules <package_modules.rst>


Indices and tables
Expand Down
5 changes: 0 additions & 5 deletions docs/modules/data_portals.rst

This file was deleted.

11 changes: 0 additions & 11 deletions docs/modules/idf.rst

This file was deleted.

9 changes: 0 additions & 9 deletions docs/modules/schedules.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/modules/simple_glazing_module.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/modules/trnsys.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/modules/utils.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/package_modules.rst

This file was deleted.

0 comments on commit d359470

Please sign in to comment.