-
Notifications
You must be signed in to change notification settings - Fork 97
(Re)generate docs #270
Comments
The documentation is really a work in progress, I don't think @c-smile is ready to dedicate the time to do that but I know for a fact he welcomes pull requests. |
@8ctopus unfortunately there is nothing that anyone else can do without looking through the code (or is there an external source that i don't know about?). I am talking about a documentation generator that directly extracts all the public/global methods, properties & functions of all the modules and puts them in a file. Like a reference. |
I've got a business license with access to the source, I can run it if you give the instructions. |
@8ctopus that'd be awesome. However, I can't know what documentation generator will work without knowing which language is being used internally. If you can tell me that, it'd be simple to figure out how to automatically generate docs. If you can't figure it out, perhaps, you could dump the list of file names and share it with me? |
I was able to reconstruct sys, sciter, and env modules type definitions using runtime introspection tricks but it's quite painful to figure out the function arguments etc. Generating types for all these modules would be a huge help during development. Same for different props available on all the components. |
I was able to find 3 undocumented functions in /**
* No idea what this does. The only return value I have been able to get
* is -1.
*/
export function unicode(): number;
/**
* Compiles a Javascript file?
* @param filePath Path to a Javascript file
*/
export function compileFile(filePath: string): ArrayBuffer;
/**
* Import an JS file/module. Much like `require` on other platforms.
*
* @param modulePath Path to the module relative to current file
* @returns Everything exported by the module
*/
function import<T>(modulePath: string): T; |
unicode() function is not complete yet. Essentially that is UNICODE classification function similar to String.indexOf().
will return index of first strong RTL character in sometext string, or -1
The only function that is really battle tested and needs to be documented is |
@thecodrr It looks like you are making typescript definitions for sciterjs APIs - i've done the same in my project over the past few days. |
Currently, there are a couple of JS APIs that are not yet documented (like
Window.this.argv
). It would be better to generate these using a documentation generation — something like an API reference. Doesn't have to contain examples or anything. This could also help in generating complete Typescript definitions for all the Sciter.JS modules.The text was updated successfully, but these errors were encountered: