| View previous topic :: View next topic |
| Author |
Message |
derRaphael
Joined: 23 Nov 2007 Posts: 841 Location: ~/.
|
Posted: Mon Feb 22, 2010 10:15 pm Post subject: Doc-O-Matic: AutoHTML Documentation for AHK-Scripts (Beta) |
|
|
Hi all,
Doc-O-Matic is a script, capable of tracking functions in a different AHK script and generating a HTML documentation from it.
It also supports Syntax Hiliting and inline linking to functions used by the script. A documentation to stdLib files and ahk's documentation is on the feature list for rc1, same as a stylesheet editor for a better customizing of
the look and feel.
See a Live Sample / DOWNLOAD
| Code: | ; Released under the Terms of EUPL 1.1 or later
; Also released under the Terms of GPL V3 or later
; (w) 2010 by derRaphael
; The software is hereby free of any guarantees
; It has been tested and developed under winxp and ahk 1.0.48.05
; If it works, good for you. If as a result your wife wants to
; get divorced - not my beer.
; There are numerous bugs and many caveats
; the entire script is subject to change for a better functionality
; and feature design. for now only the core functionality is to
; be tested.
; Usage Limitation: Leave the Generated by Hint intact.
|
Closer Future Planned features:
- Customizable Syntax hiliting
- Custome StyleSheet Editor
- Support of multiple Files
- Support for detecting StdLib functions
- Support for linking to official documentation
- Plugin Structure
- Better landing organization of the HTML (instead of a large function list)
- Customize which data to see
Far Future Planned features:
- Label / HotKey / String detection
- Script Flow analysis for automatic behaviour documentation
- Much more...
I ask everybody who uses this script, to leave the bottom block intact, so that interested user's may be abled to see where to get the software.
See a Live Sample / DOWNLOAD
Known Bugs:
- Syntax Lexer gets comments too good (such as MsgBox aaa; bbb), thx fincs
- unknown if it works with ahk_l or ahk_u
- functionnames containing numbers wont get catched internally by the lexer
Have fun and please post feedback to improve this script!
dR _________________
All scripts, unless otherwise noted, are hereby released under CC-BY
Last edited by derRaphael on Tue Feb 23, 2010 8:02 am; edited 3 times in total |
|
| Back to top |
|
 |
derRaphael
Joined: 23 Nov 2007 Posts: 841 Location: ~/.
|
Posted: Mon Feb 22, 2010 10:22 pm Post subject: |
|
|
-reserved for plugins index- _________________
All scripts, unless otherwise noted, are hereby released under CC-BY |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Tue Feb 23, 2010 2:33 am Post subject: |
|
|
$%^&* in my mouth thats frakkin cool as shit i love this
Thank you _________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed; |
|
| Back to top |
|
 |
doyle
Joined: 14 Nov 2007 Posts: 325 Location: London, England
|
Posted: Tue Feb 23, 2010 1:37 pm Post subject: |
|
|
Very cool.  |
|
| Back to top |
|
 |
Tuncay
Joined: 07 Nov 2006 Posts: 1886 Location: Germany
|
Posted: Sat Mar 06, 2010 12:01 pm Post subject: |
|
|
I will use a modified version of your script to generate on the fly documentation in my public collection of libraries. I am including the script in tools folder for automatically accessing from my script. Here are the currently changed lines, for automation reason to avoid user prompt:
| Quote: | | Code: | | ;?add 2010-03-06 MODIFIED for automation by Tuncay, all changes are marked with ;? comments. |
| Code: | ;?out FileSelectFile, ScriptPath, 1, %A_ScriptDir%, Select an AHK Script
;?add-begin
ScriptPath = %1%
;?add-end |
| Code: | ;?mod-begin
version := "0.5.2-mod_by_Tuncay" ;?original "0.5.2"
;?mod-end |
| Code: | ;?out FileSelectFile, FileName, S16,,Name where To save the HTML
;?add-begin
FileName = %2%
;?add-end |
| Code: | | ;?out run, % FileName |
|
Thats all. Its a really really great and cool script. I love it! Thx.
Hope it is ok that I`ll include it in my package.
Notes:
?out = outcommented
?mod = modified
?add = added _________________ {1:"ahkstdlib", 2:"my libs", 3:"my apps", 4:"my license"}
--> Don't feed the troll! <-- |
|
| Back to top |
|
 |
Tuncay
Joined: 07 Nov 2006 Posts: 1886 Location: Germany
|
|
| Back to top |
|
 |
derRaphael
Joined: 23 Nov 2007 Posts: 841 Location: ~/.
|
Posted: Sat Mar 06, 2010 2:49 pm Post subject: |
|
|
this beta does not work with your ini library because of the preamble you used. since there are lines which start directly with an opening perenthesis, the script interprets it as a continuation section and produces rubbish. this is a major flaw of the script's design and it might take a while to get around that bug. sorry. thanks for finding it though.
dR _________________
All scripts, unless otherwise noted, are hereby released under CC-BY |
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1786
|
Posted: Tue Apr 13, 2010 4:24 pm Post subject: |
|
|
| A very clever script indeed....2 thumbs up |
|
| Back to top |
|
 |
|