Skip to content

jellyrock/api-docs

Repository files navigation

JellyRock API Docs

API Reference License build

Auto-generated BrightScript API reference for JellyRock, published at api.jellyrock.app.

Tech stack

Piece Choice Why
Source extraction brighterscript-jsdocs-plugin Parses BrightScript ' comments into JSDoc-compatible AST.
Site generator JSDoc De facto standard for JS/BrightScript API sites.
Theme clean-jsdoc-theme Dark mode, responsive, customizable header/footer.
Analytics Umami (self-hosted) Privacy-respecting; injected via theme footer option.
Hosting Caddy file_server on the JellyRock VPS Same pipeline as jellyrock.app, docs.jellyrock.app, dev.jellyrock.app.

How it works

jellyrock/jellyrock (push to main)
    │
    └─▶ repository_dispatch → update.yml
            │
            ├─ clones jellyrock/jellyrock @ main
            ├─ runs `npm run build`  ─▶  writes docs/ output
            └─ commits & pushes docs/ back to this repo
                    │
                    └─▶ push event → deploy.yml
                            │
                            └─ rsync docs/ → VPS:/opt/jellyrock/api-docs/
                                    │
                                    └─ Caddy serves api.jellyrock.app

Local build

npm ci
git clone --depth 1 https://github.com/jellyrock/jellyrock.git
npm run build            # writes docs/
npx http-server docs     # preview at http://localhost:8080

Updating

Task Where
Change the site title / header menu jsdoc.jsonopts.theme_opts
Swap analytics website ID jsdoc.jsonopts.theme_opts.footer
Point at a different source repo / branch update.ymlCheckout jellyrock step
Change deploy target deploy.yml + jellyrock/infra Caddy config

Deployment secrets

Required repo secrets (inherited from the jellyrock org):

  • DEPLOY_SSH_KEY — private key authorized on VPS jellyrock@ user
  • VPS_KNOWN_HOSTS — pre-verified ssh-keyscan output (avoids MITM)
  • VPS_HOST, VPS_USER — deploy target

Credits

About

JSDoc API documentation for the JellyRock Roku app

Topics

Resources

License

Stars

Watchers

Forks

Contributors