Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TOUGH3 user guide in documentation #152

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ sphinx-argparse
sphinx-gallery
pydata-sphinx-theme
sphinxcontrib-bibtex
pybtex-apa-style
pybtex-apa-style
sphinx_subfigure
9 changes: 9 additions & 0 deletions doc/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
html[data-theme="light"] {
--pst-color-link: #0274be;
--pst-color-primary: black;
}

html[data-theme="dark"] {
--pst-color-link: #0274be;
--pst-color-primary: white;
}
Binary file added doc/source/_static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 15 additions & 5 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
"sphinx.ext.githubpages",
"sphinx.ext.napoleon",
"sphinxarg.ext",
# "sphinxcontrib.bibtex",
"sphinxcontrib.bibtex",
"sphinx_gallery.gen_gallery",
"sphinx_subfigure",
]

# Sphinx Gallery settings
Expand Down Expand Up @@ -85,11 +86,14 @@
# napoleon_use_rtype = True

# Numfig settings
numfig = False
numfig = True
numfig_format = {
"figure": "Figure %s",
}

# BibTeX
bibtex_bibfiles = ["references.bib"]

# Add any paths that contain templates here, relative to this directory.
templates_path = [
"_templates",
Expand Down Expand Up @@ -120,13 +124,19 @@
# a list of builtin themes.
#
html_theme = "pydata_sphinx_theme"
html_logo = "_static/logo.png"
html_theme_path = [
"_themes",
]
html_context = {
"default_mode": "light",
}

# 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,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = [
# "_static",
# ]
html_static_path = ["_static"]

html_css_files = [
"css/custom.css",
]
1 change: 1 addition & 0 deletions doc/source/guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ User Guide
:titlesonly:
:maxdepth: 2

installation
input
12 changes: 12 additions & 0 deletions doc/source/guide/installation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Installation
============

**toughio** only requires a Python distribution to be installed. If you don't have any yet, we recommend to install the `Anaconda Distribution <https://www.anaconda.com/>`_ with the default options.

To install **toughio** and enable all its features, simply run the command in a terminal (e.g., Windows Terminal, Anaconda Prompt) or within an IPython shell:

.. code-block::

pip install toughio[full]

An IDE such as Spyder (automatically installed by Anaconda) or `VSCode <https://code.visualstudio.com/>`_ is strongly recommended to use **toughio**.
1 change: 1 addition & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
guide/index
examples/index
api/index
tough3/index
Loading
Loading