44# You can set these variables from the command line, and also
55# from the environment for the first two.
66SPHINXOPTS ?=
7- SPHINXBUILD ?= sphinx-build
7+ SPHINXBUILD ?= sphinx-autobuild
88SOURCEDIR = source
99BUILDDIR = build
10+ PORT ?= 8000
11+ HOST ?= 127.0.0.1
1012
1113# Put it first so that "make" without argument is like "make help".
1214help :
1618
1719# Build the API documentation using sphinx
1820html :
19- PYTHONPATH=.. $(SPHINXBUILD ) -M html " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
21+ PYTHONPATH=.. $(SPHINXBUILD ) --port $( PORT ) --host $( HOST ) - M html " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
2022
2123# Build multiple versions
2224html_versions :
@@ -33,12 +35,26 @@ clean:
3335source/cebra-figures :
3436 git clone --depth 1
[email protected] :AdaptiveMotorControlLab/cebra-figures.git source/cebra-figures
3537
38+ source/demo_notebooks :
39+ git clone --depth 1
[email protected] :AdaptiveMotorControlLab/cebra-demos.git source/demo_notebooks
40+
3641# Update the figures. Note that this might prompt you for an SSH key
3742figures : source/cebra-figures
3843 cd source/cebra-figures && git pull --ff-only origin main
3944
45+ demos : source/demo_notebooks
46+ cd source/demo_notebooks && git pull --ff-only origin main
47+
48+ source/assets :
49+ git clone --depth 1
[email protected] :AdaptiveMotorControlLab/cebra-assets.git source/assets
50+
51+ assets : source/assets
52+ cd source/assets && git pull --ff-only origin main
53+ cp -r source/assets/docs/* .
54+ # rm -rf source/assets
55+
4056# Build the page with pre-built figures
41- page : source/cebra-figures html
57+ page : source/cebra-figures source/demo_notebooks html
4258 mkdir -p page/
4359 mkdir -p page/docs
4460 mkdir -p page/staging/docs
0 commit comments