Compare commits
3 Commits
6d62e8aaf7
...
177d35e1de
Author | SHA1 | Date |
---|---|---|
François Poulain | 177d35e1de | |
François Poulain | d0f468579c | |
François Poulain | cf98a24119 |
7
Makefile
7
Makefile
|
@ -16,6 +16,7 @@ guide_libre_asso.wiki:
|
|||
guide_libre_asso.tex: guide_libre_asso.wiki
|
||||
sed -f tools/wiki2tex.sed $< > $@
|
||||
sed -i $@ -e 's/.png//g'
|
||||
sed -i $@ -e 's/\\description/\\descriptif/g'
|
||||
vim -c '%s/^\(\s*\*.*\)\n\(\s*[^*]\|\n\)/\1\r\\end{itemize}\r\2/g' -c '%s/^\(\s*[^*].*\|\)\n\s*\*/\1\r\\begin{itemize}\r*/g' -c '%s/^\s*\*/\\item/' -c ':x' $@
|
||||
|
||||
guide.pdf: guide.tex guide_libre_asso.tex lolipop.cls
|
||||
|
@ -35,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)
|
||||
|
|
8
README
8
README
|
@ -2,14 +2,14 @@
|
|||
|
||||
=== Pour construire le guide, version pdf ===
|
||||
|
||||
La procédure est faite sur une Debian Wheezy, avec une distribution LaTeX
|
||||
La procédure est faite sur une Debian Buster, avec une distribution LaTeX
|
||||
installée, ainsi que les build-essential.
|
||||
|
||||
- Dans un terminal, tapez "make".
|
||||
|
||||
=== 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".
|
||||
|
|
|
@ -374,7 +374,7 @@
|
|||
% Déclarons les paramètres qui nous intéressent.
|
||||
\lolipop@declare{nom}
|
||||
\lolipop@declare{logo}
|
||||
\lolipop@declare{description}
|
||||
\lolipop@declare{descriptif}
|
||||
\lolipop@declare{apprentissage}
|
||||
\lolipop@declare{installation}
|
||||
\lolipop@declare{lien}
|
||||
|
@ -383,7 +383,7 @@
|
|||
% L'interface utilisateur est l'environnement "logiciel". Là où le logiciel est
|
||||
% déclaré, son résumé est inséré en marge et une référence est crée.
|
||||
\NewEnviron{logiciel}{
|
||||
\nom{} \logo{} \description{} \apprentissage{}
|
||||
\nom{} \logo{} \descriptif{} \apprentissage{}
|
||||
\installation{} \lien{} \equivalent{}
|
||||
\BODY
|
||||
\let\href\fnhref
|
||||
|
@ -392,7 +392,7 @@
|
|||
\begin{rosebox}{\lolipop@nom}
|
||||
\sffamily\footnotesize
|
||||
% Logo : \lolipop@logo
|
||||
\if@not@empty{\lolipop@description }{\lolipop@description \\ }
|
||||
\if@not@empty{\lolipop@descriptif }{\lolipop@descriptif \\ }
|
||||
\if@not@empty{\lolipop@apprentissage}{Apprentissage : \iconify{hirondelle}{\lolipop@apprentissage} \\ }
|
||||
\if@not@empty{\lolipop@installation }{Installation : \iconify{marguerite}{\lolipop@installation} \\ }
|
||||
\if@not@empty{\lolipop@lien }{Lien : \lolipop@lien \\ }
|
||||
|
|
|
@ -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}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue