Get the source, or just clone this gist instead.
mkdir /tmp/couchdocs && cd /tmp/couchdocs
git clone git://github.com/dch/couchdb.git
git checkout docs
cd share/docs
Pandoc is available as packaged binaries for most common platforms. Either in package, or downloadable.
In dist/
are sample converted markdown files, including:
configuration.md
which is the 2 DocBook "chapters" exported to Markdown- and the full
release.md
andmanual.md
files.
Edit markdown files to heart's content.
Here's an example that converts the new configuration.md
file into HTML5:
pandoc --smart --preserve-tabs --normalize --table-of-contents \
--reference-links --chapters --number-section --standalone \
--from markdown --to html5 \
--output configuration.html \
configuration.md
for xml in *.xml; \
do echo ${xml}; \
pandoc \
--smart --preserve-tabs --normalize --reference-links --chapters \
--number-sections --standalone --from docbook --to rst \
--output ../dist/${xml} ${xml};
done