Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alberto Fanjul Alonso
developer.puri.sm
Commits
6f26ded4
Commit
6f26ded4
authored
Jun 26, 2018
by
Guido Gunther
Browse files
Makefile: validate XML
Make sure we do this before each build.
parent
53b42952
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6f26ded4
job
:
before_script
:
-
apt-get -y update
-
apt-get -y install make python3-sphinx
-
apt-get -y install make python3-sphinx
libxml2-utils
tags
:
-
librem5
script
:
...
...
Makefile
View file @
6f26ded4
# Makefile for Sphinx documentation
#
XML_SOURCES
=
\
examples/doap.xml
\
$(NULL)
# You can set these variables from the command line.
SPHINXOPTS
=
-W
SPHINXBUILD
=
sphinx-build
...
...
@@ -49,7 +53,7 @@ clean:
rm
-rf
$(BUILDDIR)
/
*
.PHONY
:
html
html
:
html
:
check
$(SPHINXBUILD)
-b
html
$(ALLSPHINXOPTS)
$(BUILDDIR)
/html
@
echo
@
echo
"Build finished. The HTML pages are in
$(BUILDDIR)
/html."
...
...
@@ -223,3 +227,7 @@ dummy:
$(SPHINXBUILD)
-b
dummy
$(ALLSPHINXOPTS)
$(BUILDDIR)
/dummy
@
echo
@
echo
"Build finished. Dummy builder generates no files."
.PHONY
:
check
check
:
xmllint
--noout
$(XML_SOURCES)
Write
Preview
Supports
Markdown
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