Skip to content

Commit

Permalink
Merge pull request #91 from AllenNeuralDynamics/wip/update_docs
Browse files Browse the repository at this point in the history
Wip/update docs
  • Loading branch information
hannalee2 authored Oct 3, 2024
2 parents fa80721 + d7a98ae commit b8424fd
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 7 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tag_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,31 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.AIND_PYPI_TOKEN }}


# Job 2: Build Documentation for Pushes to Main
build-docs:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v3

# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'

# Step 3: Install dependencies (including Sphinx)
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
# Step 4: Build the documentation
- name: Build Documentation
run: |
sphinx-build -b html docs/source docs/_build
# Fail the workflow if documentation build fails
continue-on-error: false
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from docutils.parsers.rst import roles
from docutils import nodes

sys.path.insert(0, os.path.abspath('../../parallax'))

INSTITUTE_NAME = "Allen Institute for Neural Dynamics"

project = 'Parallax'
Expand Down Expand Up @@ -62,7 +64,7 @@ def blue_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
roles.register_local_role('yellow', yellow_role)
roles.register_local_role('blue', blue_role)

html_static_path = ['_static']
html_static_path = ['_static']
html_css_files = [
'custom.css',
]
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Programmer's Guide
==================

.. toctree::
:maxdepth: 2
:maxdepth: 1

programmersGuide
programmersGuide1
programmersGuide2
modules
3 changes: 0 additions & 3 deletions docs/source/parallax.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
parallax package
================

Submodules
----------

parallax.calibration\_camera module
-----------------------------------

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion parallax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os

__version__ = "0.38.3"
__version__ = "0.38.4"

# allow multiple OpenMP instances
os.environ["KMP_DUPLICATE_LIB_OK"] = "True"

0 comments on commit b8424fd

Please sign in to comment.