Contents
Get List of files
- You can get a list of file in:
gunzip Contents-i386.gz
- Install devscripts
apt-get install devscripts
Get .deb file
- Files are located at repository at the apt source list
- We need to find out current version
To get http://packages.debian.org/stable/devel/ant You do
dget ant
Get README.Debian
Extract .deb file
- Extract the file content
dpkg -c ant_1.6.5-6_all.deb
dpkg -c ant_1.6.5-6_all.deb |grep README
dpkg -c packages/ant_1.6.5-6_all.deb |sed -e 's/^.\{49\}//'
dpkg -c packages/ant_1.6.5-6_all.deb |sed -e 's/^.\{49\}//' |sed -e 's/ .*//'
dpkg -c packages/ant_1.6.5-6_all.deb |grep README |sed -e 's/^.\{49\}//' |sed -e 's/ .*//'- Extract all files to a folder ./usr
dpkg -x ant_1.6.5-6_all.deb
- Extract a file
dpkg --fsys-tarfile ant_1.6.5-6_all.deb >ant.tar tar -xvf ant.tar ./usr/share/doc/ant/README.Debian
Covert to MoinMoin
textfile to moinmoin
sudo -u www-data python append-text.py '192.168.1.105/mywiki/' 'ant' 'antREADME.Debian'
DocBook to ...
http://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/docbooksys/docbooksyshome.html http://www.lodestar2.com/people/dyork/talks/2002/ols/docbook-tutorial/index.html
Here is what you need to get your output.
If you need more details on docbook: http://docbook.org/tdg/en/html/docbook.html
sphinx
download rst docs (2.0, can be specified for other version) * replace <2.0/....>_ links to <....>_
To work with sphinx,
1. generated default doc framework by 'sphinx-quickstart' command, 2. place 'get_tgdoc.py' into source folder 3. run 'python get_tgdoc.py' to get rst sources 4. add '2.0/indx' and '2.0/RoughDocs' to index.rst 5. run 'make html'
moin
moinmoin converter
http://moinmo.in/MediaWikiConverter http://moinmo.in/ActionMarket/PdfAction http://search.cpan.org/~diberri/HTML-WikiConverter-0.61/lib/HTML/WikiConverter.pm http://txt2tags.sourceforge.net/