Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tool zum Erstellen von Dokumentation
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2617
Location: Konradsreuth (Germany)

PostPosted: Tue Feb 23, 2010 12:29 pm    Post subject: Tool zum Erstellen von Dokumentation Reply with quote

Hallo :-)

Ich habe vor längerer Zeit die Dokumentation für meinem PHP-Spamfilter b8 geschrieben. Dazu hab ich eine HTML-Datei mit irgendwelchen Platzhaltern gemacht, und ein selbstgeschriebenes Perl-Script drüberlaufen lassen, was dann ein Inhaltsverzeichnis erstellt, die Querverweise und Literatur verlinkt hat. Das Ergebnis steht online: http://nasauber.de/opensource/b8/readme.htm

Das Problem ist jetzt, daß ich dieses Perl-Script nicht mehr finde, die Dokumentation aber für das nächste Release erheblich überarbeiten muß. Und deswegen meine Frage:

Wie erstellt man am besten so eine Anleitung? Da gibt's doch sicher Programme, die das können? Evtl. sogar was, das aus einer LaTeX-Datei dann so eine HTML-Datei baut?

Ich bin für alle Infos dankbar :-)
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Tue Feb 23, 2010 12:51 pm    Post subject: Reply with quote

http://www.admin-wissen.de/no_cache/eigene-tutorials/webentwicklung/php-tutorial/automatische-dokumentation/?sword_list[]=ergebnis
Ich denke das gängigste ist doxygen. Damals entwickelt, um Doku zu bekommen wie die von Qt. Das von Trolltech entwickelte Tool wurde nicht freigegeben.
Ist wohl ziemlich umfangreich konfigurierbar, du kannst auch ein eigenes Template angeben, damit die Doku nicht 0815 ausschaut ;)
Die Doku ist auch recht umfangreich, es gibt einige Seiten die den Umgang beschreiben.

http://de.wikibooks.org/wiki/C%2B%2B-Programmierung:_Dokumentation_mit_Doxygen
Back to top
View user's profile Send private message
Necoro
Veteran
Veteran


Joined: 18 Dec 2005
Posts: 1912
Location: Germany

PostPosted: Tue Feb 23, 2010 3:19 pm    Post subject: Reply with quote

Für PHP direkt gibts auch noch http://www.phpdoc.org/ ... laut Eigenaussage "the current standard auto-documentation tool for the php language"

/edit:

Wenn dir API nicht so wirklich wichtig ist und du nur ne nette Doku schreiben willst, schau dir mal http://en.wikipedia.org/wiki/Restructured_Text an ... Evtl auch gleich Sphinx als Framework (dunno wie viel Arbeit das denn ist ... aber zum Beispiel ist die komplette Python-Doku mit Sphinx erstellt)
_________________
Inter Deum Et Diabolum Semper Musica Est.
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2617
Location: Konradsreuth (Germany)

PostPosted: Tue Feb 23, 2010 7:03 pm    Post subject: Reply with quote

Ich will weniger die API beschreiben, auch wenn im Quellcode diese doxygen-Strings drin sind. Diese Restructured-Text sieht eigentlich genau nach dem aus, was ich will! Danke für den Tip, das werd ich mir mal näher ansehen!

Edit: reStructuredText ist genau das, was ich suche! Super, danke :-)
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2961
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Wed Feb 24, 2010 1:07 am    Post subject: Reply with quote

ich finde asscidoc einfacher zu bedienen, aber die HTML Ausgabe von Sphinx ist eindeutig schöner.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2312
Location: Adendorf, Germany

PostPosted: Wed Feb 24, 2010 4:42 pm    Post subject: Re: Tool zum Erstellen von Dokumentation Reply with quote

l3u wrote:
Evtl. sogar was, das aus einer LaTeX-Datei dann so eine HTML-Datei baut?
Für das, was du da mit dem Perl-Script gemacht hast ist LaTeX da. Automatische Fußnoten, Querverweise, Quellen- und Literaturindizes, Index, Inhaltsverzeichnis, und das alles mit ein paar einfachen Tags.
(Nur mal so am Rande, auch wenn 'reStructuredText' das ist, was du suchtest. ;))
_________________
Edited 220,176 times by Yamakuzure
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2617
Location: Konradsreuth (Germany)

PostPosted: Wed Feb 24, 2010 5:31 pm    Post subject: Re: Tool zum Erstellen von Dokumentation Reply with quote

Yamakuzure wrote:
Für das, was du da mit dem Perl-Script gemacht hast ist LaTeX da. Automatische Fußnoten, Querverweise, Quellen- und Literaturindizes, Index, Inhaltsverzeichnis, und das alles mit ein paar einfachen Tags.
(Nur mal so am Rande, auch wenn 'reStructuredText' das ist, was du suchtest. ;))

Ich hab meine Doktorarbeit mit LaTeX gesetzt, ich weiß das durchaus zu schätzen ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum