Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
user-manual
manual-build
Commits
7d7aa7d2
Commit
7d7aa7d2
authored
Apr 27, 2018
by
Glenn Walbran
Browse files
Add a bundle task to create a doc bundle (html/pdf/epub)
parent
9084d925
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
7d7aa7d2
...
...
@@ -128,10 +128,10 @@ devhelp:
@
echo
"# devhelp"
epub
:
fetchtranslations
#TODO delete the cp below when doc publishing no longer needs it. Because epub should depend on html
@
$(
foreach
TRANSLATION,
$(TRANSLATIONS)
,
\
$(SPHINXBUILD)
-a
-D
language
=
$(TRANSLATION)
-b
epub
$(ALLSPHINXOPTS)
$(BUILDDIR)
/epub/
$(TRANSLATION)
/
$(MAHARA)
;
\
cp
$(BUILDDIR)
/epub/
$(TRANSLATION)
/
$(MAHARA)
/Mahara.epub
$(BUILDDIR)
/html/
$(TRANSLATION)
/
$(MAHARA)
/Mahara.epub
;
\
rm
-r
$(BUILDDIR)
/epub/
$(TRANSLATION)
/
$(MAHARA)
/
;
\
echo
"---------------"
;
\
)
@
echo
...
...
@@ -191,3 +191,12 @@ doctest:
$(SPHINXBUILD)
-b
doctest
$(ALLSPHINXOPTS)
$(BUILDDIR)
/doctest
@
echo
"Testing of doctests in the sources finished, look at the "
\
"results in
$(BUILDDIR)
/doctest/output.txt."
bundle
:
html latexpdf epub
@
$(
foreach
TRANSLATION,
$(TRANSLATIONS)
,
\
cp
$(BUILDDIR)
/latex/
$(TRANSLATION)
/
$(MAHARA)
/Mahara.pdf
$(BUILDDIR)
/html/
$(TRANSLATION)
/
$(MAHARA)
/Mahara.pdf
;
\
cp
$(BUILDDIR)
/epub/
$(TRANSLATION)
/
$(MAHARA)
/Mahara.epub
$(BUILDDIR)
/html/
$(TRANSLATION)
/
$(MAHARA)
/Mahara.epub
;
\
)
@
tar
-czf
$(BUILDDIR)
/mahara-manual
$(MAHARA)
.tar.gz
-C
$(BUILDDIR)
/html
$(TRANSLATIONS)
@
echo
@
echo
"Created bundle:
$(BUILDDIR)
/mahara-manual
$(MAHARA)
.tar.gz"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment