Skip to content

Commit 446cc67

Browse files
committed
update docs
1 parent d382c4c commit 446cc67

File tree

5 files changed

+31
-9
lines changed

5 files changed

+31
-9
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ jobs:
5555
with:
5656
repository: AdaptiveMotorControlLab/cebra-demos
5757
path: docs/source/demo_notebooks
58-
ref: main
58+
# NOTE(stes): This is a temporary branch to add the xCEBRA demo notebooks
59+
# to the docs. Once the notebooks are merged into main, we can remove this
60+
# branch and change the ref to main.
61+
# ref: main
62+
ref: stes/add-xcebra
5963

6064
- name: Set up Python ${{ matrix.python-version }}
6165
uses: actions/setup-python@v5

docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
6-
SPHINXOPTS ?=
6+
SPHINXOPTS ?= -W --keep-going -n
77
SPHINXBUILD ?= sphinx-autobuild
88
SOURCEDIR = source
99
BUILDDIR = build
@@ -33,10 +33,10 @@ clean:
3333
# Checkout the source repository for CEBRA figures. Note that this requires SSH access
3434
# and might prompt you for an SSH key.
3535
source/cebra-figures:
36-
git clone --depth 1 [email protected]:AdaptiveMotorControlLab/cebra-figures.git source/cebra-figures
36+
cd $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) && git clone --depth 1 [email protected]:AdaptiveMotorControlLab/cebra-figures.git source/cebra-figures
3737

3838
source/demo_notebooks:
39-
git clone --depth 1 [email protected]:AdaptiveMotorControlLab/cebra-demos.git source/demo_notebooks
39+
cd $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) && git clone --depth 1 [email protected]:AdaptiveMotorControlLab/cebra-demos.git source/demo_notebooks
4040

4141
# Update the figures. Note that this might prompt you for an SSH key
4242
figures: source/cebra-figures
@@ -46,7 +46,7 @@ demos: source/demo_notebooks
4646
cd source/demo_notebooks && git pull --ff-only origin main
4747

4848
source/assets:
49-
git clone --depth 1 [email protected]:AdaptiveMotorControlLab/cebra-assets.git source/assets
49+
cd $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) && git clone --depth 1 [email protected]:AdaptiveMotorControlLab/cebra-assets.git source/assets
5050

5151
assets: source/assets
5252
cd source/assets && git pull --ff-only origin main

docs/source/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ these components in other contexts and research code bases.
3838
api/pytorch/distributions
3939
api/pytorch/models
4040
api/pytorch/helpers
41+
api/pytorch/attribution
4142

4243
.. toctree::
4344
:hidden:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
===================
2+
Attribution Methods
3+
===================
4+
5+
.. automodule:: cebra.attribution
6+
:members:
7+
:show-inheritance:

docs/source/conf.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ def get_years(start_year=2021):
119119

120120
autodoc_member_order = "bysource"
121121
autodoc_mock_imports = [
122-
"torch", "nlb_tools", "tqdm", "h5py", "pandas", "matplotlib", "plotly"
122+
"torch", "nlb_tools", "tqdm", "h5py", "pandas", "matplotlib", "plotly",
123+
"cvxpy", "captum"
123124
]
124125
# autodoc_typehints = "none"
125126

@@ -130,9 +131,18 @@ def get_years(start_year=2021):
130131
# directories to ignore when looking for source files.
131132
# This pattern also affects html_static_path and html_extra_path.
132133
exclude_patterns = [
133-
"**/todo", "**/src", "cebra-figures/figures.rst", "cebra-figures/*.rst",
134-
"*/cebra-figures/*.rst", "*/demo_notebooks/README.rst",
135-
"demo_notebooks/README.rst"
134+
"**/todo",
135+
"**/src",
136+
"cebra-figures/figures.rst",
137+
"cebra-figures/*.rst",
138+
"*/cebra-figures/*.rst",
139+
"*/demo_notebooks/README.rst",
140+
"demo_notebooks/README.rst",
141+
# TODO(stes): Remove this from the assets repo, then remove here
142+
"_static/figures_usage.ipynb",
143+
"*/_static/figures_usage.ipynb",
144+
"assets/**/*.ipynb",
145+
"*/assets/**/*.ipynb"
136146
]
137147

138148
# -- Options for HTML output -------------------------------------------------

0 commit comments

Comments
 (0)