Skip to content

Commit 2ad82c4

Browse files
committed
Use README file w TypeDoc, add generated globals.md to .gitignore
1 parent eb1b20e commit 2ad82c4

File tree

7 files changed

+41
-11
lines changed

7 files changed

+41
-11
lines changed

.github/workflows/publish-docs.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Build and publish docs
33
on:
44

55
pull_request:
6-
types:
7-
- opened
8-
- reopened
9-
- synchronize
10-
- labeled
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
10+
- labeled
1111
# release:
1212
# types: [published]
1313

@@ -30,9 +30,6 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions/checkout@v4
33-
with:
34-
filter: tree:0
35-
fetch-depth: 0
3633

3734
- name: Setup Pages
3835
uses: actions/configure-pages@v5
@@ -50,8 +47,7 @@ jobs:
5047

5148
- name: Generate TypeDoc markdown (without modifying repo)
5249
run: |
53-
pnpm typedoc --plugin typedoc-plugin-markdown --readme none --out docs-typedoc js-src/index.ts
54-
pnpm cpy "docs-typedoc/**" docs --parents --overwrite --ignore="docs-typedoc/classes/index.md" --ignore="docs-typedoc/README.md"
50+
pnpm run build:docs
5551
rm -rf docs-typedoc
5652
5753
- name: Upload artifact

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ _site
44
.jekyll-metadata
55
vendor
66
Gemfile.lock
7+
8+
globals.md

docs/classes/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore everything
2+
*.md
3+
4+
# Don't ignore .gitignore itself
5+
!.gitignore
6+
7+
# Don't ignore the README file
8+
!index.md

docs/functions/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore everything
2+
*.md
3+
4+
# Don't ignore .gitignore itself
5+
!.gitignore
6+
7+
# Don't ignore the README file
8+
!index.md

docs/interfaces/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore everything
2+
*.md
3+
4+
# Don't ignore .gitignore itself
5+
!.gitignore
6+
7+
# Don't ignore the README file
8+
!index.md

docs/type-aliases/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore everything
2+
*.md
3+
4+
# Don't ignore .gitignore itself
5+
!.gitignore
6+
7+
# Don't ignore the README file
8+
!index.md

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"scripts": {
2323
"build": "run-s build:rust build:ts",
2424
"build:debug": "run-s build:rust-debug build:ts",
25-
"build:docs": "rimraf docs-typedoc && typedoc --plugin typedoc-plugin-markdown --readme none --out docs-typedoc js-src/index.ts && cpy \"docs-typedoc/**\" docs --parents --overwrite --ignore=\"docs-typedoc/classes/index.md\" --ignore=\"docs-typedoc/README.md\" && rimraf docs-typedoc",
25+
"build:docs": "rimraf docs-typedoc && typedoc --plugin typedoc-plugin-markdown --readme README.md --out docs-typedoc js-src/index.ts && cpy \"docs-typedoc/**\" docs --parents --overwrite --ignore=\"docs-typedoc/classes/index.md\" --ignore=\"docs-typedoc/README.md\" && rimraf docs-typedoc",
2626
"build:rust": "pnpm run build:rust-debug --release",
2727
"build:rust-debug": "cargo build --message-format=json-render-diagnostics > cargo.log",
2828
"build:ts": "tsc -b && cpy index.node dist && cpy index.node js-src && cpy --flat js-src/types.d.ts dist/types",

0 commit comments

Comments
 (0)