doc: update .gitignore, add CSS override for new tables usage
* Make all docs depend on Makefile; if we change flags here we want them rebuilt. * Add explicit filenames to .gitignore so we can add our own CSS override file, and add an asciidoc-override.css resource. * Adjust a few asciidoc options when generating HTML. * Remove asciidoc-manpage.css; apparantly this doesn't exist anymore. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
04fd320e97
commit
43cad9c871
|
@ -9,7 +9,9 @@ pkgdelta.8
|
||||||
repo-add.8
|
repo-add.8
|
||||||
repo-remove.8
|
repo-remove.8
|
||||||
vercmp.8
|
vercmp.8
|
||||||
*.css
|
asciidoc-manpage.css
|
||||||
|
asciidoc.css
|
||||||
|
asciidoc.js
|
||||||
*.html
|
*.html
|
||||||
*.xml
|
*.xml
|
||||||
man3
|
man3
|
||||||
|
|
|
@ -41,6 +41,7 @@ HTML_DOCS = \
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
asciidoc.conf \
|
asciidoc.conf \
|
||||||
|
asciidoc-override.css \
|
||||||
pacman.8.txt \
|
pacman.8.txt \
|
||||||
makepkg.8.txt \
|
makepkg.8.txt \
|
||||||
repo-add.8.txt \
|
repo-add.8.txt \
|
||||||
|
@ -91,8 +92,9 @@ html: $(HTML_DOCS)
|
||||||
|
|
||||||
website: html
|
website: html
|
||||||
bsdtar czf website.tar.gz $(HTML_DOCS) \
|
bsdtar czf website.tar.gz $(HTML_DOCS) \
|
||||||
|
asciidoc-override.css \
|
||||||
-C /etc/asciidoc/stylesheets/ \
|
-C /etc/asciidoc/stylesheets/ \
|
||||||
asciidoc.css asciidoc-manpage.css \
|
asciidoc.css \
|
||||||
-C /etc/asciidoc/javascripts/ \
|
-C /etc/asciidoc/javascripts/ \
|
||||||
asciidoc.js \
|
asciidoc.js \
|
||||||
-C /etc/asciidoc/ \
|
-C /etc/asciidoc/ \
|
||||||
|
@ -116,7 +118,7 @@ A2X_OPTS = \
|
||||||
--destination-dir='./'
|
--destination-dir='./'
|
||||||
|
|
||||||
# These rules are due to the includes and files of the asciidoc text
|
# These rules are due to the includes and files of the asciidoc text
|
||||||
$(ASCIIDOC_MANS): asciidoc.conf footer.txt
|
$(ASCIIDOC_MANS): asciidoc.conf footer.txt Makefile
|
||||||
a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS) --out-file=./$@.xml" $(srcdir)/$@.txt
|
a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS) --out-file=./$@.xml" $(srcdir)/$@.txt
|
||||||
|
|
||||||
%.html: %.txt
|
%.html: %.txt
|
||||||
|
@ -128,9 +130,9 @@ HACKING.html: ../HACKING
|
||||||
dos2unix $@
|
dos2unix $@
|
||||||
|
|
||||||
# Customizations for certain HTML docs
|
# Customizations for certain HTML docs
|
||||||
$(HTML_MANPAGES): asciidoc.conf footer.txt
|
$(HTML_MANPAGES): asciidoc.conf footer.txt Makefile
|
||||||
$(HTML_OTHER): asciidoc.conf
|
$(HTML_OTHER): asciidoc.conf Makefile
|
||||||
%.html: ASCIIDOC_OPTS += -a linkcss -a toc -a icons
|
%.html: ASCIIDOC_OPTS += -a linkcss -a toc -a icons -a max-width=960px -a stylesheet=asciidoc-override.css
|
||||||
%.8.html: ASCIIDOC_OPTS += -d manpage
|
%.8.html: ASCIIDOC_OPTS += -d manpage
|
||||||
%.5.html: ASCIIDOC_OPTS += -d manpage
|
%.5.html: ASCIIDOC_OPTS += -d manpage
|
||||||
%.3.html: ASCIIDOC_OPTS += -d manpage
|
%.3.html: ASCIIDOC_OPTS += -d manpage
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
table th, table td {
|
||||||
|
padding: 0.2em 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td p.table {
|
||||||
|
margin: 0;
|
||||||
|
}
|
Loading…
Reference in New Issue