-
Notifications
You must be signed in to change notification settings - Fork 32
Build System: Documentation
There are two types of documentation used by Source, which are the jsons and the HTML documentation. Both are built using the typedoc tool. By reading comments and type annotations, typedoc is able to generate both human readable documentation and documentation in the form of JSON.
First, Typedoc is initialized with the following options:
This returns a an Application object, which can then be used to generate a ProjectReflection using [Application.convert()](), which is a representation of the module's documentation in object form in memory. Application.generateHtml() is then called to generate the HTML documentation.
The ProjectReflection is then parsed by various parsers to produce the desired documentation object, which is then written to disk after converted into a JSON string.
- Home
- Overview
- System Implementation
-
Development Guide
- Getting Started
- Repository Structure
-
Creating a New Module
- Creating a Bundle
- Creating a Tab
- Writing Documentation
- Developer Documentation (TODO)
- Build System
- Source Modules
- FAQs
Try out Source Academy here.
Check out the Source Modules generated API documentation here.