From 6d60e112dfd09c5674413efb899d09d0a2244fc2 Mon Sep 17 00:00:00 2001 From: Bert Burgemeister Date: Sat, 11 Jun 2016 19:05:10 +0200 Subject: [PATCH] Web page: add links from widget gallery into manual page --- Makefile | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index e29d79f..00a2ffe 100644 --- a/Makefile +++ b/Makefile @@ -104,23 +104,25 @@ done-list: # Prepare the www directory gh-pages: clean gh-pages/index.html gh-pages/pipeglade.1.html gh-pages/clock.svg ${SNAPSHOTS} -gh-pages/index.html gh-pages/pipeglade.1.html: pipeglade pipeglade.1 www-template/index.html Makefile gh-pages/gallery.html - mkdir -p gh-pages - cp www-template/* gh-pages/ +gh-pages/index.html: pipeglade gh-pages/pipeglade.1.html www-template/index.html Makefile gh-pages/gallery.html cp clock.sh gh-pages/clock.sh.txt cp clock.ui gh-pages/clock.ui.txt - mandoc -Wall -T xhtml -O style=style.css pipeglade.1 > gh-pages/pipeglade.1.html - mandoc -Wall -T pdf -O paper=a4 pipeglade.1 > gh-pages/pipeglade.1.pdf cp LICENSE gh-pages/ echo -e '/@/\ns//\>/\n,s/^$$/

/\nwq' | ed -s gh-pages/LICENSE echo -e '//d\n-r gh-pages/gallery.html\nwq' | ed -s gh-pages/index.html echo -e '//d\n-r gh-pages/LICENSE\nwq' | ed -s gh-pages/index.html echo -e ',s/_PUT_VERSION_HERE_/$(VERSION)/g\nwq' | ed -s gh-pages/index.html echo -e '/<\/body>/-r gh-pages/statcounter.html\nwq' | ed -s gh-pages/index.html - echo -e '/<\/body>/-r gh-pages/statcounter.html\nwq' | ed -s gh-pages/pipeglade.1.html echo -e '/<\/body>/-r gh-pages/statcounter.html\nwq' | ed -s gh-pages/404.html rm -f gh-pages/statcounter.html gh-pages/LICENSE +gh-pages/pipeglade.1.html: pipeglade.1 Makefile + mkdir -p gh-pages + cp www-template/* gh-pages/ + mandoc -Wall -T xhtml -O style=style.css pipeglade.1 > gh-pages/pipeglade.1.html + mandoc -Wall -T pdf -O paper=a4 pipeglade.1 > gh-pages/pipeglade.1.pdf + echo -e '/<\/body>/-r gh-pages/statcounter.html\nwq' | ed -s gh-pages/pipeglade.1.html + gh-pages/clock.svg: clock.sh clock.ui pipeglade mkdir -p gh-pages ./clock.sh gh-pages/clock.svg @@ -139,18 +141,24 @@ gh-pages/${W:S/$/.jpg/}: widget-examples/${W:S/Gtk//:tl}.ui echo "_:load ${.ALLSRC:R}.txt"; \ else \ echo "main:snapshot ${.TARGET:R}.svg"; echo "_:main_quit"; \ - fi | ./pipeglade -u ${.ALLSRC} + fi | ./pipeglade -u ${.ALLSRC} >/dev/null convert "${.TARGET:R}.svg" -resize 90% -frame 2 "${.TARGET}" && rm "${.TARGET:R}.svg" .endfor gh-pages/gallery.html: ${SNAPSHOTS} for i in ${.ALLSRC:T:R}; do \ - echo "

"; \ - echo " $${i}"; \ - echo "
"; \ - echo " "; \ - echo "
"; \ echo "

"; \ + echo "

"; \ + echo " "; \ + echo -n " $${i}"; \ + echo " "; \ + echo " (cf. GTK+ 3 Reference Manual)"; \ + echo "
"; \ + echo " "; \ + echo "
"; \ + echo "

"; \ done > ${.TARGET} -- 2.11.4.GIT