Skip to content

Commit 201cbad

Browse files
Adding doc page (#121)
* First version of doc site (need to prune a ton of content written with AI) * Remove CLAUDE.md * Removed a bunch of extra pages generated by AI * Bringing docs from old site * Added config examples * Adding site workflow and removing more old files.
1 parent ccb49f8 commit 201cbad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1408
-311
lines changed

.github/workflows/sphinx-docs.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Sphinx: Render docs"
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
persist-credentials: false
14+
15+
- name: Set up conda
16+
uses: conda-incubator/setup-miniconda@v3
17+
with:
18+
auto-activate-base: true
19+
activate-environment: instrumentserver-docs
20+
environment-file: environment-docs.yml
21+
22+
- name: Install instrumentserver package
23+
shell: bash -l {0}
24+
run: pip install -e .
25+
26+
- name: Build HTML
27+
shell: bash -l {0}
28+
run: cd docs && make html
29+
30+
- name: Upload artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: html-docs
34+
path: docs/build/html/
35+
36+
- name: Deploy
37+
uses: peaceiris/actions-gh-pages@v3
38+
if: github.ref == 'refs/heads/master'
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: docs/build/html

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ instance/
6262

6363
# Sphinx documentation
6464
docs/_build/
65-
doc/_build/
65+
docs/build/
66+
# These files are generated automatically by autosummary
67+
docs/**/*.rst
68+
docs/**/generated
69+
site/
6670

6771
# PyBuilder
6872
target/

CLAUDE.md

Lines changed: 0 additions & 200 deletions
This file was deleted.

doc/api.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.

doc/conf.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

doc/index.rst

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/Makefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Minimal makefile for Sphinx documentation
2+
3+
# You can set these variables from the command line.
4+
SPHINXOPTS ?=
5+
SPHINXBUILD ?= sphinx-build
6+
PAPER ?=
7+
BUILDDIR ?= build
8+
9+
# User-friendly check for sphinx-build
10+
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
11+
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the actual 'sphinx-build' executable. Alternatively you can add a directory to the PATH environment variable so that the '$(SPHINXBUILD)' executable is found.)
12+
endif
13+
14+
# Internal variables.
15+
PAPEROPT_a4 = -D latex_paper_size=a4
16+
PAPEROPT_letter = -D latex_paper_size=letter
17+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
18+
# the i18n builder cannot share the output directory and doctrees with the other builders
19+
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
20+
21+
.PHONY: help Makefile
22+
23+
# Put it first so that "make" without argument is still useful for quick reference.
24+
help:
25+
@$(SPHINXBUILD) -M help $(ALLSPHINXOPTS)
26+
27+
.PHONY: help Makefile
28+
%: Makefile
29+
@$(SPHINXBUILD) -M $@ $(ALLSPHINXOPTS) $(BUILDDIR)
30+
31+
clean:
32+
rm -rf $(BUILDDIR)
33+
rm -rf api/generated

0 commit comments

Comments
 (0)