Skip to content

Commit

Permalink
Merge pull request #191 from RTIInternational/189-api-docs-are-broken
Browse files Browse the repository at this point in the history
189 api docs are broken
  • Loading branch information
samlamont authored Jun 27, 2024
2 parents 4fe47b3 + 9c529b1 commit f339dd8
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 253 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/documentation-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: documentation
on:
push:
tags: [ 'v*.*.*' ]
# branches: [112-add-documentation]
# branches: [189-api-docs-are-broken]

permissions:
contents: write
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx pydata-sphinx-theme myst-nb sphinx-design sphinx-autoapi numpydoc ghp-import -e .
pip install sphinx==7.2.6 pydata-sphinx-theme myst-nb sphinx-design sphinx-autoapi==3.0.0 numpy==1.26.4 numpydoc ghp-import pickleshare -e .
- name: Sphinx build
run: |
Expand All @@ -30,4 +30,4 @@ jobs:
- name: Run ghp-import
run: |
ghp-import -n -p -f docs/sphinx/_build/html
ghp-import -n -p -f -o docs/sphinx/_build/html
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ $ poetry add git+https://github.com/RTIInternational/teehr.git#[BRANCH TAG]

Use Docker
```bash
$ docker build -t teehr:v0.3.25 .
$ docker run -it --rm --volume $HOME:$HOME -p 8888:8888 teehr:v0.3.25 jupyter lab --ip 0.0.0.0 $HOME
$ docker build -t teehr:v0.3.26 .
$ docker run -it --rm --volume $HOME:$HOME -p 8888:8888 teehr:v0.3.26 jupyter lab --ip 0.0.0.0 $HOME
```

## Examples
Expand Down
Binary file added docs/images/TEEHR_Icon_DarkMode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/sphinx/changelog/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Release Notes
=============


0.3.26 - 2024-06-27
--------------------

Added
^^^^^
* Dark theme logo for sphinx documentation.
* Added the `pickleshare` package to dev dependency group to fix `ipython` directive in sphinx documentation.

Changed
^^^^^^^
* Pinned `sphinx-autodoc` to v3.0.0 and `numpy` to v1.26.4 in `documentation-publish.yml` to fix the API documentation build.
* Removed unused documentation dependencies from dev group.


0.3.25 - 2024-06-06
--------------------

Expand Down
15 changes: 7 additions & 8 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,11 @@
"sphinx.ext.autodoc",
# "sphinx.ext.napoleon",
"numpydoc",
# "sphinx.ext.coverage",
# "sphinx.ext.linkcode",
"sphinx_design", # gives us grids and other design elements
"autoapi.extension",
"sphinx.ext.autosummary",
# "sphinx_click",
# "myst_parser",
"sphinx.ext.viewcode", # links to source code
"sphinx.ext.githubpages",
# "nbsphinx" # for rendering jupyter notebooks ?? or myst-nb ??
"myst_nb",
'IPython.sphinxext.ipython_console_highlighting',
'IPython.sphinxext.ipython_directive'
Expand Down Expand Up @@ -86,18 +81,22 @@
# a list of builtin themes.
#
html_theme = 'pydata_sphinx_theme'
html_static_path = ['_static']
html_theme_options = {
"show_toc_level": 2,
"github_url": "https://github.com/RTIInternational/teehr",
"footer_center": ["footer_center.html"],
# "favicons": [{"href": "../images/teehr_favicon_16.png"}]
"logo": {
"image_light": "../images/teehr.png",
"image_dark": "../images/TEEHR_Icon_DarkMode.png",
}
}

# 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_logo = "../images/teehr.png"
# html_static_path = ['_static']
# html_logo = "../images/teehr.png"
html_css_files = [
# "css/getting_started.css",
"css/teehr.css",
Expand Down
Loading

0 comments on commit f339dd8

Please sign in to comment.