Skip to content

Commit 2575359

Browse files
committed
updating docs
1 parent 6792a5a commit 2575359

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
include LICENSE
2+
include README.rst
3+
include requirements.txt

docs/conf.py

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,22 @@
1919
#
2020
import os
2121
import sys
22-
sys.path.insert(0, '/Users/maximmillen/git/packages/sfsimodels/')
22+
from datetime import date
23+
24+
file_loc = os.path.split(__file__)[0]
25+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(file_loc), '.')))
26+
27+
import sfsimodels
28+
# -- Project information -----------------------------------------------------
29+
30+
project = sfsimodels.__about__.__project__
31+
author = sfsimodels.__about__.__author__
32+
copyright = u'Copyright 2016 - {0} {1}'.format(date.today().year, author)
33+
34+
# The short X.Y version
35+
version = sfsimodels.__about__.__version__
36+
# The full version, including alpha/beta/rc tags
37+
release = version
2338

2439
import mock
2540

@@ -37,11 +52,13 @@
3752
# Add any Sphinx extension module names here, as strings. They can be
3853
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3954
# ones.
40-
extensions = ['sphinx.ext.autodoc',
55+
extensions = [
56+
'sphinx.ext.autodoc',
4157
'sphinx.ext.doctest',
4258
'sphinx.ext.intersphinx',
4359
'sphinx.ext.todo',
4460
'sphinx.ext.coverage',
61+
'sphinx.ext.napoleon',
4562
'sphinx.ext.mathjax',
4663
'sphinx.ext.ifconfig',
4764
'sphinx.ext.viewcode'
@@ -61,7 +78,6 @@
6178

6279
# General information about the project.
6380
project = 'sfsimodels'
64-
copyright = '2018, Maxim Millen'
6581
author = 'Maxim Millen'
6682

6783
# The version info for the project you're documenting, acts as replacement for
@@ -71,7 +87,6 @@
7187
# The short X.Y version.
7288
version = '0.6.3'
7389
# The full version, including alpha/beta/rc tags.
74-
release = '0.6.3'
7590

7691
# The language for content autogenerated by Sphinx. Refer to documentation
7792
# for a list of supported languages.
@@ -88,7 +103,7 @@
88103
# The name of the Pygments (syntax highlighting) style to use.
89104
pygments_style = 'sphinx'
90105

91-
# If true, `todo` and `todoList` produce output, else they produce nothing.
106+
# If true, `to do` and `todoList` produce output, else they produce nothing.
92107
todo_include_todos = True
93108

94109

@@ -97,7 +112,7 @@
97112
# The theme to use for HTML and HTML Help pages. See the documentation for
98113
# a list of builtin themes.
99114
#
100-
html_theme = 'alabaster'
115+
html_theme = 'nature' # Switch to an ECP theme
101116

102117
# Theme options are theme-specific and customize the look and feel of a theme
103118
# further. For a list of options available for each theme, see the

sfsimodels/__about__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
__version__ = "0.9.6"
1+
__project__ = "sfsimodels"
2+
__author__ = "Maxim Millen"
3+
__version__ = "0.9.7"
4+
__license__ = "MIT"

sfsimodels/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@
2020

2121
# from sfsimodels.build_model_descriptions import print_all_parameters
2222
from sfsimodels.models.foundations import PadFoundation, RaftFoundation # deprecated objects
23-
from sfsimodels.models.buildings import FrameBuilding, WallBuilding, Structure, FrameBuilding2D # deprecated objects
23+
from sfsimodels.models.buildings import FrameBuilding, WallBuilding, Structure, FrameBuilding2D # deprecated objects
24+
25+
from sfsimodels import __about__

0 commit comments

Comments
 (0)