mavoweb / vastly

Everything you need to support a custom formula language

Home Page:https://vastly.mavo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation generation

adamjanicki2 opened this issue · comments

Summary

Adding this as an issue to centralize the work for looking into generating documentation for vASTly. In summary, there are few options available for auto-generating documentation from JSDocs.

Option 1: TypeDoc

TypeDoc is primarily used to generate documentation for TypeScript projects, but it can still work with JS.

Pros

TypeDoc auto-generates a directory of HTML + CSS which together make up a fully-functioning docs site.

Cons

The only downside of this package is that since it was built for typescript files, you have to specify a small tsconfig.json to use it.

{
    "compilerOptions": {
        "allowJs": true,
    },
    "include": [
        "src/**/*.js"
    ]
}

Option 2: JSDoc

Pros

Was made for working with JavaScript specifically, so there are no issues with making JavaScript compatible with the generator.

Cons

The generated documentation doesn't look great, and only generated a syntax highlighted version of the whole file, which isn't helpful at all.

Screen Shot 2023-11-04 at 2 12 58 PM


With all this in mind, and lack of really any other options, moving forward with TypeDoc is the best choice.