Skip to content

Commit

Permalink
Merge pull request #406 from Plant-Tracer/dev-sphynx
Browse files Browse the repository at this point in the history
Try again to get sphynx to work
  • Loading branch information
simsong committed May 19, 2024
2 parents 1eca226 + 8da6442 commit c3d503e
Show file tree
Hide file tree
Showing 48 changed files with 39 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
pip install sphinx sphinx_rtd_theme myst_parser
- name: Sphinx build
run: |
sphinx-build doc _build
sphinx-build docs _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/Makefile → docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions docs/_static/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This directory for sphinx
37 changes: 34 additions & 3 deletions doc/conf.py → docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

# Add project root to pythonpath
import os
import sys

from os.path import dirname,abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))

from constants import __version__

project = 'Plant Tracer Web Application'
copyright = '2024, Simson Garfinkel, Steve Barber, JoAnn Juzefyk, Eric Brenner'
author = 'Simson Garfinkel, Steve Barber, JoAnn Juzefyk, Eric Brenner'
Expand All @@ -14,15 +23,37 @@
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.napoleon",
"myst_parser",
]

source_suffix = {
".rst": "restructuredtext",
".txt": "markdown",
".md": "markdown",
}


templates_path = ['_templates']
exclude_patterns = []
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
#html_theme = "furo"
html_static_path = ['_static']

# autodoc

autoclass_content = "both"
autodoc_default_options = {
"member-order": "bysource",
"special-members": "__init__",
"undoc-members": True,
}
autodoc_typehints_format = "short"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/ctools
Submodule ctools updated 3 files
+10 −7 dbfile.py
+2 −9 lock.py
+0 −3 timer.py
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ wsproto==1.2.0
zappa==0.58.0
zc.lockfile==3.0.post1
zope.interface==6.1
furo
myst-parser

0 comments on commit c3d503e

Please sign in to comment.