Skip to content

Commit

Permalink
Merge pull request #67 from x3c3/maintenance/improve-config-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sigrunixia authored Oct 2, 2023
2 parents 5a74555 + 9eabf9f commit cd31e16
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions config/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# API Extractor

We generate the reference documentation for the `obsidian` TypeScript API using the [API Extractor](https://api-extractor.com/).
Using the [API Extractor](https://api-extractor.com/), 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](https://github.com/obsidianmd/obsidian-api):
> [!note]
> This folder maintains unchanged copies of the following files from the [obsidianmd/obsidian-api](https://github.com/obsidianmd/obsidian-api):
>
> - obsidian.d.ts
> - package.json
> - `obsidian.d.ts`
> - `package.json`
>
> To update the reference docs, you first need to sync these files with the original. To avoid maintaining copies, we should consider moving the `api-extractor.json` file to [obsidianmd/obsidian-api](https://github.com/obsidianmd/obsidian-api) and add the repository as a Git submodule for this repository.
> 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](https://github.com/obsidianmd/obsidian-api) and add the repository as a Git submodule for this repository.
## Generate docs

Expand All @@ -17,13 +18,13 @@ We generate the reference documentation for the `obsidian` TypeScript API using
cd config
```

2. Generate the .api.json file. The following command generates `./input/obsidian.api.json`.
2. Generate the `.api.json` file. The following command generates `./input/obsidian.api.json`.

```bash
api-extractor run --local --verbose
```

3. Generate Markdown docs. The following command generates Markdown docs from the .api.json file.
3. Generate Markdown docs. The following command generates Markdown docs from the `.api.json` file.

```bash
api-documenter markdown --output ../en/Reference/TypeScript\ API
Expand Down

0 comments on commit cd31e16

Please sign in to comment.