AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Doc-O-Matic: AutoHTML Documentation for AHK-Scripts (Beta)

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
derRaphael



Joined: 23 Nov 2007
Posts: 841
Location: ~/.

PostPosted: Mon Feb 22, 2010 10:15 pm    Post subject: Doc-O-Matic: AutoHTML Documentation for AHK-Scripts (Beta) Reply with quote

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!

Cool
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
View user's profile Send private message
derRaphael



Joined: 23 Nov 2007
Posts: 841
Location: ~/.

PostPosted: Mon Feb 22, 2010 10:22 pm    Post subject: Reply with quote

-reserved for plugins index-
_________________

    All scripts, unless otherwise noted, are hereby released under CC-BY
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Tue Feb 23, 2010 2:33 am    Post subject: Reply with quote

$%^&* 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
View user's profile Send private message
doyle



Joined: 14 Nov 2007
Posts: 325
Location: London, England

PostPosted: Tue Feb 23, 2010 1:37 pm    Post subject: Reply with quote

Very cool. Smile
Back to top
View user's profile Send private message Visit poster's website
Tuncay



Joined: 07 Nov 2006
Posts: 1886
Location: Germany

PostPosted: Sat Mar 06, 2010 12:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Tuncay



Joined: 07 Nov 2006
Posts: 1886
Location: Germany

PostPosted: Sat Mar 06, 2010 12:15 pm    Post subject: Reply with quote

Does not work on my ini library:
http://www.autohotkey.com/forum/viewtopic.php?t=46226
_________________
{1:"ahkstdlib", 2:"my libs", 3:"my apps", 4:"my license"}
--> Don't feed the troll! <--
Back to top
View user's profile Send private message Send e-mail Visit poster's website
derRaphael



Joined: 23 Nov 2007
Posts: 841
Location: ~/.

PostPosted: Sat Mar 06, 2010 2:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Tue Apr 13, 2010 4:24 pm    Post subject: Reply with quote

A very clever script indeed....2 thumbs up
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group