MaJ du build et des instructions pour le html

This commit is contained in:
François Poulain 2020-05-16 17:53:14 +02:00
parent ab64c75ef9
commit 3a0c955694
4 changed files with 9 additions and 9 deletions

View File

@ -36,9 +36,9 @@ version_html/tmp/index.html: version_html/tmp/guide.html
version_html/tmp/index.xhtml: version_html/tmp/index.html
cd $(dir $<) &&\
(tidy -c -e -utf8 --output-xhtml 1 --fix-uri 1 $(notdir $<) > $(notdir $@) || test -f $(notdir $@)) &&\
(for file in guide*.html; do tidy -utf8 --output-xhtml 1 $$file > `basename $$file html`xhtml; done || /bin/true) &&\
(tidy -utf8 --output-xhtml 1 index.html > index.xhtml || test -f index.xhtml) &&\
(tidy -c -e -utf8 -asxhtml --doctype strict --fix-uri 1 $(notdir $<) > $(notdir $@) || test -f $(notdir $@)) &&\
(for file in guide*.html; do tidy -utf8 -asxhtml --doctype strict $$file > `basename $$file html`xhtml; done || /bin/true) &&\
(tidy -utf8 -asxhtml --doctype strict index.html > index.xhtml || test -f index.xhtml) &&\
sed -i -e 's/guide\([0-9]*\)\.html/guide\1.xhtml/g' *.xhtml
version_html/guide.html: version_html/tmp/index.xhtml $(wildcard version_html/tmp/*.xhtml)

6
README
View File

@ -9,7 +9,7 @@ installée, ainsi que les build-essential.
=== Pour construire le guide, version html ===
La procédure est faite sur une Debian Wheezy, avec une distribution LaTeX
installée, ainsi que les build-essential, hevea et xsltproc.
La procédure est faite sur une Debian Buster, avec une distribution LaTeX
installée, ainsi que les build-essential, hevea, tidy et xsltproc.
- Dans un terminal, tapez "make version_html/index.html".
- Dans un terminal, tapez "make version_html/guide.html".

View File

@ -87,7 +87,7 @@
\newenvironment{capture}[2][]{\begin{rawhtml}<div class="guide_capture">
<a href="\end{rawhtml}\@screenshots #2\begin{rawhtml}.png"
class="guide_screenshot_fullscreen">
<img class="guide_screenshot_vignette" src="\end{rawhtml}\@screenshots\@lowres #2\begin{rawhtml}.png"/>
<img class="guide_screenshot_vignette" src="\end{rawhtml}\@screenshots\@lowres #2\begin{rawhtml}.png">
</a>\end{rawhtml}}
{\begin{rawhtml}
</div>\end{rawhtml}}
@ -133,7 +133,7 @@ class="guide_screenshot_fullscreen">
\newenvironment{ressource}[1]
{\begin{rawhtml}<div class="guide_ressource"><a href="\end{rawhtml}\@images #1\begin{rawhtml}.png"><p>
<img src="\end{rawhtml}\@images\@lowres #1\begin{rawhtml}.png"/></a>\end{rawhtml}}
<img src="\end{rawhtml}\@images\@lowres #1\begin{rawhtml}.png"></a>\end{rawhtml}}
{\begin{rawhtml}</p></div>\end{rawhtml}\par}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View File

@ -1,4 +1,4 @@
#!/bin/bash
export XML_CATALOG_FILES="dtd/catalog"
xsltproc -o ../../version_html/guide.html guide-html.xsl conf.xml
xsltproc -o ../../version_html/guide.html guide-html.xsl conf.xml