We should Tidy our quickref document.

This commit is contained in:
Jim Derry 2015-11-02 15:32:11 +08:00
parent dec6356a6f
commit 5447e6642b
2 changed files with 85 additions and 0 deletions

View file

@ -73,6 +73,9 @@ if [ "$BUILD_XSLT" -eq 1 ]; then
xsltproc "./quickref.xsl" "$OUTP_DIR/tidy-config.xml" > "$OUTP_DIR/quickref.html" xsltproc "./quickref.xsl" "$OUTP_DIR/tidy-config.xml" > "$OUTP_DIR/quickref.html"
xsltproc "./quickref.include.xsl" "$OUTP_DIR/tidy-config.xml" > ./examples/quickref_include.html xsltproc "./quickref.include.xsl" "$OUTP_DIR/tidy-config.xml" > ./examples/quickref_include.html
# Well, duh, we should tidy quickref.html
$TIDY_PATH -config "./tidy.cfg" -modify "$OUTP_DIR/quickref.html"
# 'tidy.1'; create a valid tidy1.xsl first by subbing CMAKE's variable. # 'tidy.1'; create a valid tidy1.xsl first by subbing CMAKE's variable.
sed "s|@TIDYCONFIG@|./tidy-config.xml|g" < ./tidy1.xsl.in > "$OUTP_DIR/tidy1.xsl" sed "s|@TIDYCONFIG@|./tidy-config.xml|g" < ./tidy1.xsl.in > "$OUTP_DIR/tidy1.xsl"
xsltproc "$OUTP_DIR/tidy1.xsl" "$OUTP_DIR/tidy-help.xml" > "$OUTP_DIR/tidy.1" xsltproc "$OUTP_DIR/tidy1.xsl" "$OUTP_DIR/tidy-help.xml" > "$OUTP_DIR/tidy.1"

82
documentation/tidy.cfg Normal file
View file

@ -0,0 +1,82 @@
# Tidy Options generated and exported by Balthisar Tidy for Mac OS X.
# Please visit http://www.balthisar.com for more information about Balthisar Tidy.
# - Double-check encoding values; Balthisar Tidy set them all to "utf8".
# - If "accessibility-check" has a string after the number, its okay; it will work fine.
# To use this configuration file with the native command line version of Tidy, use Tidy like this:
# tidy -config tidy.cfg some_file.html
#
accessibility-check: 0 (Tidy Classic)
add-xml-decl: no
add-xml-space: no
alt-text:
anchor-as-name: yes
ascii-chars: no
assume-xml-procins: no
bare: no
break-before-br: no
clean: yes
coerce-endtags: yes
css-prefix:
decorate-inferred-ul: no
doctype: html5
drop-empty-elements: yes
drop-empty-paras: yes
drop-proprietary-attributes: no
enclose-block-text: no
enclose-text: no
escape-cdata: no
fix-backslash: yes
fix-bad-comments: yes
fix-uri: yes
force-output: no
gdoc: no
hide-comments: no
indent: yes
indent-attributes: no
indent-cdata: no
indent-spaces: 4
input-encoding: utf8
input-xml: no
join-classes: no
join-styles: no
literal-attributes: no
logical-emphasis: no
lower-literals: yes
markup: yes
merge-divs: auto
merge-emphasis: yes
merge-spans: auto
ncr: yes
new-blocklevel-tags:
new-empty-tags:
new-inline-tags:
new-pre-tags:
newline: LF
numeric-entities: no
omit-optional-tags: no
output-encoding: utf8
output-html: no
output-xhtml: no
output-xml: no
preserve-entities: yes
punctuation-wrap: no
quote-ampersand: yes
quote-marks: no
quote-nbsp: yes
repeated-attributes: keep-last
replace-color: yes
show-body-only: no
sort-attributes: none
tab-size: 8
tidy-mark: yes
uppercase-attributes: no
uppercase-tags: no
vertical-space: no
word-2000: no
wrap: 0
wrap-asp: yes
wrap-attributes: no
wrap-jste: yes
wrap-php: yes
wrap-script-literals: no
wrap-sections: yes