Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 39ea6b5

Browse files
committed
build into more-sagemath-tutorials for manual deployement
1 parent 0b45a15 commit 39ea6b5

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist/
55
build/
66
.ipynb_checkpoints
77
.eggs
8+
more-sagemath-tutorials

‎Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
1919
# the i18n builder cannot share the environment and doctrees with the others
2020
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
2121

22+
all: jupyter html more-sagemath-tutorials
23+
24+
more-sagemath-tutorials::
25+
rsync -av _build/html/ more-sagemath-tutorials/ --delete --exclude '.ipynb_checkpoints' --exclude '.doctrees' --exclude '*.zip' --exclude 'sagebook*.pdf'
26+
27+
install:
28+
zip -r more-sagemath-tutorials/more-sagemath-tutorials.zip more-sagemath-tutorials
29+
rsync -ravz --delete -P more-sagemath-tutorials/ Nicolas.Thiery.name:www/more-sagemath-tutorials/
30+
31+
serve:
32+
cd more-sagemath-tutorials && python -m http.server
33+
34+
2235
.PHONY: help
2336
help:
2437
@echo "Please use \`make <target>' where <target> is one of"
@@ -256,7 +269,7 @@ automodules: $(PYRST)
256269

257270
%.rst: %.py
258271
module=`echo $* | tr / .`; \
259-
echo ".. automodule:: $$module" > $@
272+
echo ".. _$$module:\n\nautomodule:: $$module" > $@
260273

261274
distclean:
262275
rm $(PYRST)

‎conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
# List of patterns, relative to source directory, that match files and
7878
# directories to ignore when looking for source files.
79-
exclude_patterns = ['_build', '**.ipynb_checkpoints']
79+
exclude_patterns = ['_build*', '**.ipynb_checkpoints', 'more-sagemath-tutorials']
8080

8181
# The reST default role (used for this markup: `text`) to use for all
8282
# documents.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /