Skip to content

Commit 48d2e2b

Browse files
peterpeter
authored andcommitted
fix docs generation in CI
1 parent 17e5296 commit 48d2e2b

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/deploy-web.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- uses: actions/setup-python@v5
2020
with:
2121
python-version: "3.12"
22+
- name: Install Hathch
23+
run: pip install hatch
2224
- uses: actions/cache@v4
2325
with:
2426
key: mkdocs-${{ github.ref }}

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ with pyspacemouse.open(device_spec=device_spec) as device:
142142
See [Custom Device Configuration](https://spacemouse.kubaandrysek.cz/mouseApi/#custom-device-configuration) for more details.
143143

144144
## How to write documentation
145-
To install the required dependencies, run `pip install pyspacemouse[docs]`.
145+
To install the required dependencies, run `make install-dev`, and please also install `doxygen` manually.
146146

147147
Edit `README.md` only in the root folder. The documentation is automatically generated from `README.md` and `docs/` folder.
148-
To update documentation from root to `/docs` use macro `make fixRelativeLinkDocs` which will replace all relative links from `/` to `/docs` folder.
148+
To update documentation from root to `/docs`, use `make docs-build`.
149149

150150
### Building the documentation
151151
The documentation is built using [mkdocs](https://www.mkdocs.org/). To test the documentation locally, run `make docs-serve` and open [http://localhost:8000](http://localhost:8000) in your browser.

docs/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ with pyspacemouse.open(device_spec=device_spec) as device:
142142
See [Custom Device Configuration](https://spacemouse.kubaandrysek.cz/mouseApi/#custom-device-configuration) for more details.
143143

144144
## How to write documentation
145-
To install the required dependencies, run `pip install pyspacemouse[docs]`.
145+
To install the required dependencies, run `make install-dev`, and please also install `doxygen` manually.
146146

147147
Edit `README.md` only in the root folder. The documentation is automatically generated from `README.md` and `docs/` folder.
148-
To update documentation from root to `/docs` use macro `make fixRelativeLinkDocs` which will replace all relative links from `/` to `/docs` folder.
148+
To update documentation from root to `/docs`, use `make docs-build`.
149149

150150
### Building the documentation
151151
The documentation is built using [mkdocs](https://www.mkdocs.org/). To test the documentation locally, run `make docs-serve` and open [http://localhost:8000](http://localhost:8000) in your browser.

docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ pipx install hatch==1.15.1 pre-commit
231231

232232
If you're not familiar with pipx, it lets you install python tools into isolated environments in `~/.local`.
233233

234+
For building the documentation locally, you will also need `doxygen` installed and on the path.
235+
234236
## Used In
235237

236238
- [TeleMoMa](https://github.com/UT-Austin-RobIn/telemoma) - A Modular and Versatile Teleoperation System for Mobile Manipulation

0 commit comments

Comments
 (0)