AutoHotkey Community

It is currently May 26th, 2012, 1:09 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: June 21st, 2007, 4:26 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
 

_________________
Image


Last edited by majkinetor on January 25th, 2010, 3:46 pm, edited 43 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2007, 3:09 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I found time to remove some unused Perl libraries.
Now, unpacked version is 7MB, packed 2MB.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: help
PostPosted: December 17th, 2007, 11:58 am 
Offline

Joined: March 21st, 2007, 7:50 pm
Posts: 76
when I perform cmd mkdoc
I have this error:

Code:
"perl" it is not recognized as command inside or external,
 an executable program or a batch file.



I don't understand


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 17th, 2007, 12:24 pm 
Offline

Joined: July 20th, 2007, 10:23 am
Posts: 257
Location: Paris, France
majkinetor wrote:
Notes:
    - The installer updates your machine environment variables PATH and PERL5LIB. If you have perl already installed this installation will not spoil it.
So, you have to manually add to your PATH environment variable the directory where perl.exe is installed.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2007, 4:04 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Yes.
If Perl is already detected in PATH, nothing is added. If you have perl reference in the PATH and you don't have perl, that means you probably uninstalled it once and didn't remove perl fromt the PATH.

Keep in mind to restart your frontend app when you finish installing. For instance, if you install custom installer from Total Commander, TC will still have old env vars after installation is finished, so you have to restart TC to so it refreshes env vars. This can be pretty long chain, if you have non Microsfot launchers like DesktopX (in this case, both DesktopX and TC have to be restarted...)

Anyway, the custom installer currently doesn't work. It seems I removed too many libraries to reduce its size. I will probably fix it today.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2007, 5:38 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I fixed installer and now it works.

Also, there is a question now wether to add perl in PATH env var if it is found there, so that may fix initial problems with users that uninstalled Perl before using custom installer.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2007, 3:55 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
This is AHK script for merging NDoc HTML parts into the single html file (so no more MHT docs)

mkdocs.ahk
Code:
root=_doc
fStyle=%root%\styles\main.css

FileRead, style, %fStyle%

loop, %root%\files\*.html
{
   FileRead, file, *t %A_LoopFileFullPath%
   StringReplace, file, file, <link rel="stylesheet" type="text/css" href="../styles/main.css">, <style>%style%</style>
   file := RegExReplace(file, "s)\Q<td class=MenuSection valign=top><!--START_ND_MENU\E.+?\Q<!--END_ND_MENU--></td>\E")

   StringReplace, fn, A_LoopFilename, -ahk
   FileDelete, %fn%
   FileAppend, %file%, %fn%
}


If you run this in scripts dir after running mkdoc, you will get single html file as documentation. You can also merge it with mkdoc.bat by adding at its end:
Code:
if "%1" == "s" (
   echo Merging html files ...
   mkdocs.ahk
   echo Done.
   echo.
)


Then instead mkdoc you can type mkdoc s to make documentation and merge files at the same time. You must put mkdocs.ahk at the same location as mkdoc.bat

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
PostPosted: June 17th, 2008, 10:18 am 
Offline

Joined: April 17th, 2005, 7:47 pm
Posts: 289
Location: Sauerland
I installed the actual version of the installer, following the instructions of your first posting.

Now I get the following message, and I can't figure out the reason:
Code:
Unknown error
Compilation failed in require at C:\NaturalDocs\Perl\Lib/Cwd.pm line 643.
BEGIN failed--compilation aborted at C:\NaturalDocs\Perl\Lib/FindBin.pm line 281.
BEGIN failed--compilation aborted at C:\NaturalDocs\Perl\Lib/FindBin.pm line 281.
Compilation failed in require at NaturalDocs line 68.
BEGIN failed--compilation aborted at NaturalDocs line 68.

Before installing it I removed all path entries referring to perl.
The former package worked fine.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 17th, 2008, 10:32 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Ye, i screwed package a bit, didn't fix it yet. It seems I removed more libraries from Perl then NDoc uses it. It was a stupid thing to do anyway, just for those ppl who can't afor to have 40MB more wasted on perl...

Just download Perl and copy it in Ndoc\Perl folder to fix it.

Or wait for latest code with latest NDoc which is significantly upgraded and have support for images in help, superb Ajax search etc... I also added option to create single HTML file without ndoc project data by running "mkdoc s" (s as single html).

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 17th, 2008, 8:18 pm 
Offline

Joined: April 17th, 2005, 7:47 pm
Posts: 289
Location: Sauerland
Thanks.
With Perl 5.10 (17 MB) and Natural Docs 1.4 it works like a charm!
I like the ability to include images as shown in your Common Dialogs documentation :) .
__________________________________________
Created with BBCodeWriter 7.0 - the one and only :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2008, 5:51 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I finally uploaded new version of custom installer. Its back to old good 12MB archive and now it can be used in directories with long names, you have "s" parameter to create single HTML and new Natural Docs that support images and Ajax search. Just put images in "\images" folder, or in root folder directly. To add them to code use "(see image.png)" Ndoc tag.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 11th, 2008, 3:08 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Entirely new version.

I managed to compile Natural Docs into exe. Now you don't need to have Perl on your machine, and size on the disk droped from 46MB to 3MB.

I also made special extension *.ndoc that you can use to create any kind of documentation this way. It works the same as *.ahk files but it is there so you don't confuse your arbitrary documentation with ahk scripts.

Also, AHK is not required any more.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks!
PostPosted: December 7th, 2008, 9:46 pm 
Offline

Joined: May 14th, 2008, 1:40 pm
Posts: 11
This is Incredibly awesome and useful! It worked like a charm...
Thanks majkinetor!

_________________
-Ace


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2010, 12:37 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
*** version 1-1.c ***
+ Added AHK.css style and set to be default. Created by freakkk. You can use any other style by renaming them to Default.css.
+ Instalation improved.


You can see how new style looks here.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 25th, 2010, 3:01 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Sillent update:
- AHK style tweaks.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 44 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group