From abf9b18f12522eec91a5a7730975b8bfc3fd7c0b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 19 May 2020 20:22:46 +0200 Subject: [PATCH] docs.sh: no longer rely on now-deleted debian/i3-wm.{manpages,docs} related to #4086 --- travis/docs.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/travis/docs.sh b/travis/docs.sh index 043104a90..501946faf 100755 --- a/travis/docs.sh +++ b/travis/docs.sh @@ -3,20 +3,24 @@ set -e set -x -for f in $(grep '\.html$' debian/i3-wm.docs | grep -v 'docs/refcard.html' | grep -v 'docs/lib-i3test') +# TODO: install the docs via meson, inject styles with an option + +for f in $(sed -n "s/^\s*'\(docs\/.*\)',$/\1/gp" meson.build | grep -vF .) do asciidoc -a linkcss -a stylesdir=https://i3wm.org/css -a scriptsdir=https://i3wm.org/js --backend=xhtml11 -f docs/asciidoc-git.conf $(dirname $f)/$(basename $f .html) done + ./docs/i3-pod2html --stylesurl=https://i3wm.org/css i3-dmenu-desktop man/i3-dmenu-desktop.html ./docs/i3-pod2html --stylesurl=https://i3wm.org/css i3-save-tree man/i3-save-tree.html -./docs/i3-pod2html --stylesurl=https://i3wm.org/css build/testcases/lib/i3test.pm docs/lib-i3test.html +./docs/i3-pod2html --stylesurl=https://i3wm.org/css build/i3test.pm docs/lib-i3test.html ./docs/i3-pod2html --stylesurl=https://i3wm.org/css testcases/lib/i3test/Test.pm docs/lib-i3test-test.html -for file in $(sed 's/\.1$/.man/g' debian/i3-wm.manpages) + +for file in $(sed -n "s/^\s*'\(man\/.*\).man',$/\1.man/gp" meson.build) do [ -f "$file" ] && asciidoc -a linkcss -a stylesdir=https://i3wm.org/css -a scriptsdir=https://i3wm.org/js --backend=xhtml11 -f docs/asciidoc-git.conf "$file" done mkdir -p deb/COPY-DOCS -cp $(tr "\n" ' ' < debian/i3-wm.docs) deb/COPY-DOCS/ -cp $(sed 's/\.1$/.html/g' debian/i3-wm.manpages | tr "\n" ' ') deb/COPY-DOCS/ +cp $(sed -n "s/^\s*'\(docs\/.*\)',$/\1/gp" meson.build | grep -F .) deb/COPY-DOCS/ +cp $(sed -n "s/^\s*'\(man\/.*\).man',$/\1.html/gp" meson.build) deb/COPY-DOCS/