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 35ff29f

Browse files
committed
Support for assets directory
1 parent e02e804 commit 35ff29f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

‎Makefile‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ jupyter: automodules
237237
##############################################################################
238238
# Stuff in addition of the standard Sphinx's makefile
239239

240-
DIRS=$(wildcard 20* mocksage mocksage/combinat mocksage/combinat/words mocksage/plot mocksage/databases agregation-option-calcul-formel)
241-
PYALL=$(wildcard $(DIRS:%=%/*.py))
240+
MOCKSAGEDIRS=mocksage mocksage/combinat mocksage/combinat/words mocksage/plot mocksage/databases agregation-option-calcul-formel
241+
DIRS=$(wildcard 20* $MOCKSAGEDIRS )
242+
PYALL=$(wildcard $(MOCKSAGEDIRS:%=%/*.py))
242243
PY=$(PYALL:%/__init__.py=)
243244
PYRST=$(PY:%.py=%.rst)
244245
RST=$(wildcard *.rst $(wildcard $(DIRS:%=%/*.rst))) $(PYRST)
@@ -249,14 +250,14 @@ TEX=$(wildcard *.tex $(DIRS:%=%/*.tex))
249250
AGREGMEDIA=$(wildcard agregation-option-calcul-formel/media/*)
250251

251252
RSTIPYNB=$(RST:%.rst=$(BUILDDIR)/html/%.ipynb)
252-
MEDIA= $(IPYNB:%=$(BUILDDIR)/html/%) $(PDF:%=$(BUILDDIR)/html/%) $(TEX:%.tex=$(BUILDDIR)/html/%.pdf) $(AGREGMEDIA:%=$(BUILDDIR)/html/%)
253+
WEB= $(IPYNB:%=$(BUILDDIR)/html/%) $(PDF:%=$(BUILDDIR)/html/%) $(TEX:%.tex=$(BUILDDIR)/html/%.pdf) $(AGREGMEDIA:%=$(BUILDDIR)/html/%)
253254

254255
foo:
255256
echo $(IPYNB)
256257

257258
ipynb: $(RSTIPYNB)
258259

259-
media: $(MEDIA)
260+
web: $(WEB)
260261

261262
$(BUILDDIR)/html/%.ipynb: %.rst
262263
mkdir -p `dirname $@`

‎conf.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
# Add any extra paths that contain custom files (such as robots.txt or
146146
# .htaccess) here, relative to this directory. These files are copied
147147
# directly to the root of the documentation.
148-
#html_extra_path = []
148+
html_extra_path = ['assets']
149149

150150
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
151151
# using the given strftime format.
@@ -300,7 +300,7 @@ def rtd_finalize(app, exception):
300300
if exception is None:
301301
#subprocess.call("make jupyter", shell=True)
302302
subprocess.call("make ipynb", shell=True)
303-
subprocess.call("make media", shell=True)
303+
subprocess.call("make web", shell=True)
304304

305305
def setup(app):
306306
import os

0 commit comments

Comments
(0)

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