Skip to content

Commit 83809eb

Browse files
committed
feat: Add documentation generation and publishing
1 parent 2ffa524 commit 83809eb

File tree

12 files changed

+327
-3
lines changed

12 files changed

+327
-3
lines changed

.github/img/favicon.png

1.81 MB
Loading

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: docs
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
docs:
9+
name: 📖 Docs
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 🕶️ Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: 🚀 Bootstrap
16+
uses: ./.github/common/bootstrap
17+
18+
- name: 🔨 Build docs
19+
run: pnpm run docs
20+
21+
- uses: peaceiris/actions-gh-pages@v4
22+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./docs
26+
enable_jekyll: false
27+
commit_message: ${{ github.event.head_commit.message }}
28+
force_orphan: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ coverage-temp/
3636
.turbo
3737
android
3838
ios
39+
/docs/
3940

4041
notes.txt
4142
project.inlang

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This guide helps you submit effective bug reports for our projects. Clear, detai
3030
Before creating a new report, please review [this list](#before-submitting-a-bug-report) to avoid duplicate submissions. When reporting bugs, [include comprehensive details](#how-do-i-submit-a-good-bug-report) and use [our template](https://github.com/filiphsps/AdaptiveShell/blob/master/.github/ISSUE_TEMPLATE/bug_report.md) to ensure all necessary information is provided.
3131

3232
> [!NOTE]
33-
> If you find a **Closed** issue similar to your problem, create a new issue and reference the original one in your description.
33+
> If you find a **closed** issue similar to your current problem, please create a new issue and reference the original one in your description as that will help us find the regression way faster.
3434
3535
### How Do I Submit A (Good) Bug Report?
3636

apps/launcher/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# AdaptiveShell

apps/launcher/typedoc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"name": "Launcher",
4+
"entryPoints": ["./index.ts"],
5+
"readme": "./README.md",
6+
"basePath": "./src",
7+
"projectDocuments": ["./docs/**/*.md"]
8+
}

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"release": "changeset publish",
2626
"release:unstable": "changeset publish --snapshot --no-git-tag --tag unstable",
2727
"changeset": "changeset",
28-
"changeset:conventional": "changeset-conventional"
28+
"changeset:conventional": "changeset-conventional",
29+
"docs": "typedoc"
2930
},
3031
"contributors": [
3132
{
@@ -63,6 +64,14 @@
6364
"nyc": "17.1.0",
6465
"turbo-ignore": "2.5.5",
6566
"turbo": "2.5.5",
67+
"typedoc-material-theme": "1.4.0",
68+
"typedoc-plugin-dt-links": "2.0.12",
69+
"typedoc-plugin-extras": "4.0.1",
70+
"typedoc-plugin-inline-sources": "1.3.0",
71+
"typedoc-plugin-merge-modules": "7.0.0",
72+
"typedoc-plugin-missing-exports": "4.0.0",
73+
"typedoc-plugin-rename-defaults": "0.7.3",
74+
"typedoc": "0.28.9",
6675
"typescript": "5.9.2"
6776
},
6877
"pnpm": {

packages/live-tiles/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @metro-ui/live-tiles
2+
3+
[![npm](https://img.shields.io/npm/dt/@metro-ui/live-tiles)](https://www.npmjs.com/package/@metro-ui/live-tiles)

packages/live-tiles/typedoc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"name": "LiveTiles",
4+
"entryPoints": ["src/index.ts"],
5+
"readme": "./README.md",
6+
"basePath": "./src",
7+
"projectDocuments": ["./docs/**/*.md"]
8+
}

0 commit comments

Comments
 (0)