Skip to content

Commit e710e47

Browse files
committed
Support generation of tutorial in html.
make WWW_EXTRA=tutorial.html should generate it, given the correct tools.
1 parent 6b90316 commit e710e47

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

doc/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ MAN_PAGES := chisel.man
3434

3535
srcDir := .
3636
installTop:= ../www
37+
toolDir ?= ../../chisel-doc/bin
3738

3839
vpath %.tex $(addprefix $(srcDir)/,$(PDF_DIRS))
3940

@@ -70,7 +71,7 @@ chisel-%.pdf: %.tex %_date.sty
7071
%.html: %.tex %_date.sty
7172
cd $(dir $<) && for c in 0 1; do htlatex $(notdir $<) $(PWD)/$(srcDir)/html.cfg "" -d/$(PWD)/ ; done
7273
mv $(subst .tex,.html,$(notdir $<)) $@~
73-
$(srcDir)/../bin/tex2html.py $@~ $@
74+
$(toolDir)/tex2html.py $@~ $@
7475

7576
%.man: %.mtt
7677
# cd into the directory containing the .tex file and massage it
@@ -79,7 +80,7 @@ chisel-%.pdf: %.tex %_date.sty
7980
latex2man $(basename $@).ttex $@
8081

8182
%.html: $(srcDir)/templates/%.html $(srcDir)/templates/base.html
82-
$(srcDir)/../bin/jinja2html.py $(notdir $<) $@
83+
$(toolDir)/jinja2html.py $(notdir $<) $@
8384

8485
clean:
8586
-rm -f $(TEX_TEMP_FILES)

doc/html.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
\Preamble{xhtml}
2+
\Configure{graphics*}
3+
{pdf}
4+
{\Needs{"convert \csname Gin@base\endcsname.pdf
5+
\csname Gin@base\endcsname.png"}%
6+
\Picture[pict]{\csname Gin@base\endcsname.png}%
7+
}
8+
\begin{document}
9+
\EndPreamble

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy