+{%- endif %}
diff --git a/doc/conf.py b/doc/conf.py
index 8b92d6bdc..cb132df80 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -17,17 +17,43 @@
import sphinx_rtd_theme
sys.path.append(os.path.abspath('../'))
sys.path.append(os.path.abspath('../saltproc'))
+# autopep8 will make a stink about this but
+# we need to have saltproc on ouy syspath
+# before we can import it
+from saltproc.version import __version__
+
# -- Project information -----------------------------------------------------
project = u'Saltproc'
-copyright = u'2018, Andrei Rykhlevskii, Jin Whan Bae, Kathryn D. Huff'
-author = u'Andrei Rykhlevskii, Jin Whan Bae, Kathryn D. Huff'
+author = u'Oleksandr Yardas, Andrei Rykhlevskii,\
+ Jin Whan Bae, Kathryn D. Huff'
+copyright = u'2021, ' + author
# The short X.Y version
-version = ''
+version = __version__
# The full version, including alpha/beta/rc tags
-release = ''
+release = __version__
+
+# -- sphinx-multiversion configuration ---------------------------------------
+# Whitelist pattern for tags (set to None to ignore all tags)
+smv_tag_whitelist = r'^v\d[.][^12][.]\d.*$'
+
+# Whitelist pattern for branches (set to None to ignore all branches)
+smv_branch_whitelist = r'^(master)*$'
+
+# Whitelist pattern for remotes (set to None to use local branches only)
+smv_remote_whitelist = r'^(origin|upstream)$'
+
+# Pattern for released versions
+smv_released_pattern = r'^tags/.*$'
+
+# Format for versioned output directories inside the build directory
+smv_outputdir_format = '{ref.name}'
+
+# Determines whether remote or local git branches/tags are preferred
+# if their output dirs conflict
+smv_prefer_remote_refs = True
# -- General configuration ---------------------------------------------------
@@ -40,6 +66,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
+ 'sphinxcontrib.apidoc',
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
@@ -49,7 +76,13 @@
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
-]
+ 'sphinx_multiversion']
+
+# apidoc settings
+apidoc_module_dir = '../saltproc/'
+apidoc_output_dir = 'src/'
+apidoc_excluded_paths = []
+apidoc_separate_modules = True
# Napoleon settings
napoleon_google_docstring = False
diff --git a/doc/doc-environment.yml b/doc/doc-environment.yml
new file mode 100644
index 000000000..eb15230d2
--- /dev/null
+++ b/doc/doc-environment.yml
@@ -0,0 +1,15 @@
+name: saltproc-doc-env
+channels:
+ - conda-forge
+ - defaults
+dependencies:
+ - pyne>=0.5.11
+ - numpy>=1.14.0
+ - pytables
+ - networkx
+ - pydotplus
+ - sphinx
+ - sphinx_rtd_theme
+ - pip:
+ - sphinx-multiversion
+ - sphinxcontrib-apidoc
diff --git a/doc/installation.rst b/doc/installation.rst
index cda9562c6..faf7b7a79 100644
--- a/doc/installation.rst
+++ b/doc/installation.rst
@@ -18,28 +18,48 @@ SaltProc has the following dependencies:
.. _PyTables: http://pytables.org
.. _NetworkX: http://networkx.github.io
.. _PyDotPlus: https://pydotplus.readthedocs.io/
+.. _pytest: https://docs.pytest.org
+.. _sphinx: https://www.sphinx-doc.org
+.. _sphinx-rtd-theme: https://sphinx-rtd-theme.readthedocs.io
.. _matplotlib: http://matplotlib.org
.. _ViTables: http://vitables.org
.. _GitHub: http://github.com/arfc/saltproc
-
+.. _conda package manager: https://docs.conda.io/en/latest/
+.. _mamba: https://github.com/mamba-org/mamba
Optional Depenendencies:
-
+ #. `pytest`_ (for testing)
+ #. `sphinx`_ and `sphinx-rtd-theme`_ (for building documentation)
#. `matplotlib`_
#. `ViTables`_
-Most of the dependencies are readily available through package managers.
-Once all the dependencies are installed, SaltProc can be installed.
Clone the source from the SaltProc repository from `GitHub`_.
-Then run the following commands from the directory above cloned repository:
.. code-block:: bash
- git clone https://github.com/arfc/saltproc.git
+ git clone git@github.com:arfc/saltproc.git
+
+All of the dependencies are readily available through the `conda package manager`_.
+
+.. note:: We recommend using the `mamba`_ CLI tool to install packages quickly. SaltProc has a compltex package dependency structure which can result is long environment solve times in the default ``conda`` solver. ``mamba`` is a reimplementation of ``conda`` in ``C++`` and we have found it is significantly faster.
+
+You can download the required ones using ``conda`` on the provided ``environment.yml``
+file in the repository:
+
+.. code-block:: bash
+
cd saltproc/
- python setup.py install --user
+ conda env create -f environment.yml
+
+Once all the dependencies are installed, SaltProc can be installed by
+running the following commands from within the cloned directory
+repository (assuming the `saltproc-env` environment is active):
+
+.. code-block:: bash
+
+ pip install .
Please let us know if you run into trouble.
diff --git a/doc/redirect.html b/doc/redirect.html
new file mode 100644
index 000000000..b9e7244ac
--- /dev/null
+++ b/doc/redirect.html
@@ -0,0 +1,9 @@
+
+
+
+ Redirecting to master branch
+
+
+
+
+
diff --git a/environment.yml b/environment.yml
index e2516180d..3cb0f07e7 100644
--- a/environment.yml
+++ b/environment.yml
@@ -1,5 +1,7 @@
+name: saltproc-env
channels:
- conda-forge
+ - defaults
dependencies:
- pyne>=0.5.11
- numpy>=1.14.0
@@ -7,5 +9,5 @@ dependencies:
- networkx
- pydotplus
- pytest
- - sphinx
- - sphinx_rtd_theme
+ - pip:
+ - argparse==1.4.0
diff --git a/saltproc/version.py b/saltproc/version.py
index b4c09766e..bdfb452b8 100644
--- a/saltproc/version.py
+++ b/saltproc/version.py
@@ -4,9 +4,9 @@
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
_version_major = 0
_version_minor = 3
-_version_micro = '' # use '' for first of series, number for 1 and above
-# _version_extra = 'dev'
-_version_extra = '0' # Uncomment this for full releases
+_version_micro = '1' # use '' for first of series, number for 1 and above
+_version_extra = 'dev'
+# _version_extra = '0' # Uncomment this for full releases
# Construct full version string from these.
_ver = [_version_major, _version_minor]
@@ -26,15 +26,16 @@
"Topic :: Scientific/Engineering"]
# Description should be a one-liner:
-description = "saltproc: the on-line reprocessing driver for SERPENT"
+description = "saltproc: the on-line reprocessing driver for monte-carlo codes"
# Long description will go up on the pypi page
long_description = """
SaltProc
========
-Saltproc is a on-line reprocessing driver for SERPENT, which
-runs SEPRENT from a given input file and parameters and performs
-user-defined processing of the fuel salt by adding or removing
-waste, fissile, and fertile streams.
+SaltProc is an on-line reprocessing driver for monte-carlo
+particle transport codes with depletion capabilites. SaltProc
+runs the monte-carlo simulation from a given input file and
+parameters, then performs user-defined processing of the fuel
+salt by adding or removing waste, fissile, and fertile streams.
License
=======