Skip to content

Commit a8789ba

Browse files
committed
feat(docusaurus): decouple typedoc logic into dedicated "typedoc-docusaurus-theme" plugin
1 parent 05f3b32 commit a8789ba

File tree

90 files changed

+1792
-1440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1792
-1440
lines changed

.changeset/bumpy-dolls-teach.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'docusaurus-plugin-typedoc': minor
3+
'typedoc-docusaurus-theme': minor
4+
---
5+
6+
- Decoupled TypeDoc logic into a separate plugin, "typedoc-docusaurus-theme". "docusaurus-plugin-typedoc" and "typedoc-docusaurus-theme" will now be published and versioned together as linked packages.
7+
- Unquoted object keys in generated sidebar.

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{ "repo": "typedoc2md/typedoc-plugin-markdown" }
66
],
77
"commit": false,
8-
"fixed": [],
8+
"fixed": [["docusaurus-plugin-typedoc", "typedoc-docusaurus-theme"]],
99
"linked": [],
1010
"access": "public",
1111
"baseBranch": "main",

.github/workflows/ci.docusaurus-plugin-typedoc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
node-version: ${{ matrix.node }}
3333
cache: 'npm'
3434
- name: Install
35-
run: HUSKY=0 npm install
35+
run: HUSKY=0 npm ci
3636
- name: Lint
3737
run: npm run lint --workspace docusaurus-plugin-typedoc
3838
- name: Build
39-
run: npm run build --workspace typedoc-plugin-markdown --workspace docusaurus-plugin-typedoc
39+
run: npm run build --workspace typedoc-plugin-markdown --workspace typedoc-docusaurus-theme --workspace docusaurus-plugin-typedoc
4040
- name: Test
4141
run: npm run test --workspace docusaurus-plugin-typedoc
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI [typedoc-docusaurus-theme]
2+
on:
3+
push:
4+
paths:
5+
- 'packages/typedoc-docusaurus-theme/**'
6+
- '!packages/typedoc-docusaurus-theme/README.md'
7+
- '!packages/typedoc-docusaurus-theme/CHANGELOG.md'
8+
- '!packages/typedoc-docusaurus-theme/package.json'
9+
branches:
10+
- main
11+
- release
12+
- beta
13+
pull_request:
14+
paths:
15+
- 'packages/typedoc-docusaurus-theme/**'
16+
- '!packages/typedoc-docusaurus-theme/README.md'
17+
- '!packages/typedoc-docusaurus-theme/CHANGELOG.md'
18+
- '!packages/typedoc-docusaurus-theme/package.json'
19+
jobs:
20+
lint-and-test:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
node: ['18']
25+
name: Node ${{ matrix.node }}
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
- name: Set up Node
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version: ${{ matrix.node }}
33+
cache: 'npm'
34+
- name: Install
35+
run: HUSKY=0 npm ci
36+
- name: Lint
37+
run: npm run lint --workspace typedoc-docusaurus-theme
38+
- name: Build
39+
run: npm run build --workspace typedoc-plugin-markdown --workspace typedoc-docusaurus-theme
40+
- name: Test
41+
run: npm run test --workspace typedoc-docusaurus-theme

.github/workflows/ci.typedoc-github-wiki-theme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
node-version: ${{ matrix.node }}
3333
cache: 'npm'
3434
- name: Install
35-
run: HUSKY=0 npm install
35+
run: HUSKY=0 npm ci
3636
- name: Lint
3737
run: npm run lint --workspace typedoc-github-wiki-theme
3838
- name: Build

.github/workflows/ci.typedoc-gitlab-wiki-theme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
node-version: ${{ matrix.node }}
3333
cache: 'npm'
3434
- name: Install
35-
run: HUSKY=0 npm install
35+
run: HUSKY=0 npm ci
3636
- name: Lint
3737
run: npm run lint --workspace typedoc-github-wiki-theme
3838
- name: Build

.github/workflows/ci.typedoc-plugin-frontmatter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
node-version: ${{ matrix.node }}
3333
cache: 'npm'
3434
- name: Install
35-
run: HUSKY=0 npm install
35+
run: HUSKY=0 npm ci
3636
- name: Lint
3737
run: npm run lint --workspace typedoc-plugin-frontmatter
3838
- name: Build

.github/workflows/ci.typedoc-plugin-remark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
node-version: ${{ matrix.node }}
3333
cache: 'npm'
3434
- name: Install
35-
run: HUSKY=0 npm install
35+
run: HUSKY=0 npm ci
3636
- name: Lint
3737
run: npm run lint --workspace typedoc-plugin-remark
3838
- name: Build

.github/workflows/ci.typedoc-vitepress-theme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
node-version: ${{ matrix.node }}
3333
cache: 'npm'
3434
- name: Install
35-
run: HUSKY=0 npm install
35+
run: HUSKY=0 npm ci
3636
- name: Lint
3737
run: npm run lint --workspace typedoc-vitepress-theme
3838
- name: Build

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Please see [typedoc-plugin-markdown.org](https://typedoc-plugin-markdown.org).
1616
[typedoc-github-wiki-theme](./packages/typedoc-github-wiki-theme#readme) | [![npm](https://img.shields.io/npm/v/typedoc-github-wiki-theme.svg?logo=npm)](https://www.npmjs.com/package/typedoc-github-wiki-theme) | ![Downloads](https://img.shields.io/npm/dw/typedoc-github-wiki-theme?label=↓) | [Changelog](./packages/typedoc-github-wiki-theme/CHANGELOG.md) |
1717
[typedoc-gitlab-wiki-theme](./packages/typedoc-gitlab-wiki-theme#readme) | [![npm](https://img.shields.io/npm/v/typedoc-gitlab-wiki-theme.svg?logo=npm)](https://www.npmjs.com/package/typedoc-gitlab-wiki-theme) | ![Downloads](https://img.shields.io/npm/dw/typedoc-gitlab-wiki-theme?label=↓) | [Changelog](./packages/typedoc-gitlab-wiki-theme/CHANGELOG.md) |
1818
[typedoc-vitepress-theme](./packages/typedoc-vitepress-theme#readme) | [![npm](https://img.shields.io/npm/v/typedoc-vitepress-theme.svg?logo=npm)](https://www.npmjs.com/package/typedoc-vitepress-theme) | ![Downloads](https://img.shields.io/npm/dw/typedoc-vitepress-theme?label=↓) | [Changelog](./packages/typedoc-vitepress-theme/CHANGELOG.md) |
19+
[typedoc-docusaurus-theme](./packages/typedoc-docusaurus-theme#readme) | [![npm](https://img.shields.io/npm/v/typedoc-docusaurus-theme.svg?logo=npm)](https://www.npmjs.com/package/typedoc-docusaurus-theme) | ![Downloads](https://img.shields.io/npm/dw/typedoc-docusaurus-theme?label=↓) | [Changelog](./packages/typedoc-docusaurus-theme/CHANGELOG.md) |
1920
[docusaurus-plugin-typedoc](./packages/docusaurus-plugin-typedoc#readme) | [![npm](https://img.shields.io/npm/v/docusaurus-plugin-typedoc.svg?logo=npm)](https://www.npmjs.com/package/docusaurus-plugin-typedoc) | ![Downloads](https://img.shields.io/npm/dw/docusaurus-plugin-typedoc?label=↓) | [Changelog](./packages/docusaurus-plugin-typedoc/CHANGELOG.md) |
2021

2122
## Contributing

0 commit comments

Comments
 (0)