Opened 19 years ago
Closed 18 years ago
#1527 closed enhancement (duplicate)
Makefile for HTML documentation
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | trivial | Keywords: | |
Cc: | farcepest@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I wanted to be able to read the current SVN docs as HTML, so I put together a small Makefile (to go in the docs directory):
.SUFFIXES = .txt .html %.html : %.txt rst2html.py $< $@ objects := $(patsubst %.txt,%.html,$(wildcard *.txt)) all: $(objects)
Assumes docutils and rst2html.py on your path, and GNU Make. Running make processes any .txt files to .html as needed. Will add as an attachment too to preserve tabs.
Attachments (1)
Change History (8)
by , 19 years ago
comment:2 by , 18 years ago
Cc: | added |
---|---|
Version: | magic-removal → SVN |
Switched to SVN version since magic-removal is no longer relevant.
comment:3 by , 18 years ago
buildhtml.py which comes with distutils will also do the same job, although it always rebuilds everything, unlike make which only rebuilds when the source is modified.
comment:6 by , 18 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Accepted on the basis of "whoa, this is cool!"
comment:7 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Makefile for docs to convert ReST -> HTML