Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: API Reference #23

Closed
39 tasks done
AlexStormwood opened this issue Sep 2, 2024 · 1 comment · Fixed by #18
Closed
39 tasks done

docs: API Reference #23

AlexStormwood opened this issue Sep 2, 2024 · 1 comment · Fixed by #18
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@AlexStormwood
Copy link
Contributor

AlexStormwood commented Sep 2, 2024

Make sure everything that is "user-facing" has JSDoc comments, and implement a CICD pipeline to compile that into a deployed website.

API Sections

Confirm that the sections are in-use in the project, and document them.

  • Guides
    • Quick Start
    • The Basics
      • 00 - Understanding This Package
      • 01 - The SuperCamo Singleton
      • 02 - Document Basics
      • 03 - Embedded Document Basics
      • 04 - DB Client Basics
    • Package Exports
  • Reference
    • Classes:
      • CollectionAccessor
      • CollectionListEntry
      • NedbClient
      • SuperCamo
      • NedbBaseDocument
        • Make sure to note that TypeScript intellisense shows more data (eg. rules) on a CTRL+Space shortcut in VSCode
      • NedbDocument
      • NedbEmbeddedDocument
    • Interfaces:
      • BaseDocument
      • CollectionAccessor
      • CollectionsListEntry
      • DocumentBaseData
      • DocumentConstructorData
      • DocumentKeyRule
      • DocumentObjectData
      • findManyDocumentsOptions
      • findManyObjectsOptions
      • findOneObjectOptions
      • NedbClientEntry
      • updateManyOptions
      • updateOptions
    • Logging:
      • SuperCamoLogger
    • Error Classes - might just leave these as-is for now, they only really exist for catch specificity anyway

Automation

GitHub Actions workflow requirements.

  • Repo configured with GitHub Pages deployment.
  • Repo configured with a JSDoc build command.
  • Workflow configured to run the above JSDoc build command.
  • Workflow configured to upload JSDoc build output to gh-pages branch.
@AlexStormwood AlexStormwood added this to the v1.0.0 milestone Sep 2, 2024
@AlexStormwood AlexStormwood self-assigned this Sep 2, 2024
@AlexStormwood AlexStormwood linked a pull request Sep 2, 2024 that will close this issue
@AlexStormwood AlexStormwood added the enhancement New feature or request label Sep 2, 2024
@AlexStormwood
Copy link
Contributor Author

Some sections (mostly in Interfaces) don't show their explanation content in the generated website, but that's fine - it's nothing that package users are meant to be using anyway. And if they do need to dig into it, then the JSDoc comments/intellisense in their coding editor will work to provide info as a workaround instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant