diff --git a/Makefile b/Makefile index 1dabbd52b..bc7000108 100644 --- a/Makefile +++ b/Makefile @@ -116,6 +116,11 @@ tests/out/%.txt tests/out/%.raw.txt tests/out/%.nroff tests/out/%.html tests/out @echo -e "\n Processing $<" @PS4=" " /bin/bash -cx "xml2rfc --skip-config --allow-local-file-access --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --base tests/out/ --text --html --strict $<" +tests/out/%.compact_index.text tests/out/%.compact_index.html : tests/input/%.xml install + @echo -e "\n Generating with a compact index $<" + @PS4=" " /bin/bash -cx "xml2rfc --skip-config --allow-local-file-access --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --base tests/out/ --$(subst .,,$(suffix $@)) --strict --compact-index --no-pagination $< --out $@" + + tests/out/%.v2v3.xml: tests/input/%.xml install @PS4=" " /bin/bash -cx "xml2rfc --skip-config --allow-local-file-access --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --v2v3 --strict --legacy-date-format $< --out $@" @doc=$(basename $@); printf ' '; xmllint --noout --xinclude --relaxng xml2rfc/data/v3.rng $$doc.xml @@ -227,12 +232,12 @@ rfcregressiontest: cleantmp install drafttest: cleantmp env/bin/python install $(drafttests) dateshifttest # rfctest: cleantmp env/bin/python install $(rfctests) -# @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --utf8tests/input/rfc6787.xml --base tmp/ --raw --legacy --text --nroff --html --exp --v2v3 --prep" -# doc=rfc6787 ; postnrofffix="cat" ; type=ascii; $(CHECKOUTPUT) -# @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --utf8tests/input/rfc7754.edited.xml --base tmp/ --raw --legacy --text --nroff --html --exp --v2v3 --prep" -# doc=rfc7754.edited ; postnrofffix="cat" ; type=ascii; $(CHECKOUTPUT) -# @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --utf8tests/input/rfc7911.xml --base tmp/ --raw --legacy --text --nroff --html --exp --v2v3 --prep" -# doc=rfc7911 ; postnrofffix="cat" ; type=ascii; $(CHECKOUTPUT) +# @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --utf8tests/input/rfc6787.xml --base tmp/ --raw --legacy --text --nroff --html --exp --v2v3 --prep" +# doc=rfc6787 ; postnrofffix="cat" ; type=ascii; $(CHECKOUTPUT) +# @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --utf8tests/input/rfc7754.edited.xml --base tmp/ --raw --legacy --text --nroff --html --exp --v2v3 --prep" +# doc=rfc7754.edited ; postnrofffix="cat" ; type=ascii; $(CHECKOUTPUT) +# @PS4=" " /bin/bash -cx "xml2rfc --skip-config --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --utf8tests/input/rfc7911.xml --base tmp/ --raw --legacy --text --nroff --html --exp --v2v3 --prep" +# doc=rfc7911 ; postnrofffix="cat" ; type=ascii; $(CHECKOUTPUT) unicodetest: cleantmp env/bin/python install @PS4=" " /bin/bash -cx "xml2rfc --skip-config --allow-local-file-access --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --base tmp/ --raw --legacy --text --nroff --html --no-inline-version --exp --v2v3 --prep tests/input/unicode.xml " @@ -246,11 +251,11 @@ v3featuretest: tests/out/draft-v3-features.prepped.xml.test tests/out/draft-v3-f dateshifttest: cleantmp install @PS4=" " /bin/bash -cx "xml2rfc --skip-config --allow-local-file-access --cache \"$${IETF_TEST_CACHE_PATH}\" --no-network --date 2013-02-01 --legacy --out tmp/draft-miek-test.dateshift.txt --text tests/input/draft-miek-test.xml" - @diff -u -I '$(datetime_regex)' -I '$(version_regex)' -I '$(date_regex)' tests/valid/draft-miek-test.dateshift.txt tmp/draft-miek-test.dateshift.txt || { echo "Diff failed for draft-miek-test.dateshift.txt output"; exit 1; } + @diff -u -I '$(datetime_regex)' -I '$(version_regex)' -I '$(date_regex)' tests/valid/draft-miek-test.dateshift.txt tmp/draft-miek-test.dateshift.txt || { echo "Diff failed for draft-miek-test.dateshift.txt output"; exit 1; } elementstest: install tests/out/elements.prepped.xml.test tests/out/elements.text.test tests/out/elements.pages.text.test tests/out/elements.v3.html.test -indextest: install tests/out/indexes.prepped.xml.test tests/out/indexes.text.test tests/out/indexes.pages.text.test tests/out/indexes.v3.html.test +indextest: install tests/out/indexes.prepped.xml.test tests/out/indexes.text.test tests/out/indexes.pages.text.test tests/out/indexes.v3.html.test tests/out/indexes.compact_index.text.test sourcecodetest: install tests/out/sourcecode.prepped.xml.test tests/out/sourcecode.text.test tests/out/sourcecode.pages.text.test tests/out/sourcecode.v3.html.test diff --git a/tests/valid/docfile.html b/tests/valid/docfile.html index a0c1481b4..b0741aa64 100644 --- a/tests/valid/docfile.html +++ b/tests/valid/docfile.html @@ -4,15 +4,15 @@ -
@@ -367,7 +367,7 @@
The latest version of this documentation is available in HTML form at https://ietf-tools.github.io/xml2rfc/.¶
- This documentation applies to xml2rfc version 3.13.1.¶
+ This documentation applies to xml2rfc version 3.14.0.¶--debug --compact-index - Show debugging output.¶
+ Generate a compact index.¶--no-network, -N --debug - Don't use the network to resolve references.¶
+ Show debugging output.¶--no-org-info, -O --no-network, -N - Don't show author orgainzation info on page one (legacy only).¶
+ Don't use the network to resolve references.¶--quiet, -q --no-org-info, -O - Don't print anything while working.¶
+ Don't show author orgainzation info on page one (legacy only).¶--skip-config-files --quiet, -q - Ignore config file settings.¶
-- Use this to ignore values in config files, even if there are config files in the search path. Somewhat ironically, this option can itself be set in a config file, and cause all other config file settings to be ignored.¶
+ Don't print anything while working.¶--allow-local-file-access --skip-config-files - Allow local file system references.¶
+ Ignore config file settings.¶ ++ Use this to ignore values in config files, even if there are config files in the search path. Somewhat ironically, this option can itself be set in a config file, and cause all other config file settings to be ignored.¶
--remove-pis, -r --allow-local-file-access - Remove XML processing instructions.¶
+ Allow local file system references.¶--utf8, -u --remove-pis, -r - Generate utf8 output.¶
+ Remove XML processing instructions.¶--verbose, -v --utf8, -u - Print extra information.¶
+ Generate utf8 output.¶ +--verbose, -v + Print extra information.¶
The following variables are available for use in an xml2rfc - manpage Jinja2 template, as of xml2rfc version 3.13.1:¶
+ manpage Jinja2 template, as of xml2rfc version 3.14.0:¶