Using the API Extractor, we generate the reference documentation for the Obsidian TypeScript API.
Note
This folder maintains unchanged copies of the following files from the obsidianmd/obsidian-api:
obsidian.d.ts
package.json
To update the reference docs, you must first sync these files with the original. To avoid maintaining copies, we should consider moving the api-extractor.json
file to obsidianmd/obsidian-api and add the repository as a Git submodule for this repository.
-
In your terminal, change your working directory to
config
:cd config
-
Generate the
.api.json
file. The following command generates./input/obsidian.api.json
.api-extractor run --local --verbose
-
Generate Markdown docs. The following command generates Markdown docs from the
.api.json
file.api-documenter markdown --output ../en/Reference/TypeScript\ API