Skip to content

Commit db7e10e

Browse files
committed
docs: move documentation to repo root on pnpm and Docusaurus 3.10, live AFCL previews instead of screenshots AdminForth/2005
1 parent 7e63836 commit db7e10e

411 files changed

Lines changed: 13020 additions & 20063 deletions

File tree

Some content is hidden

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

‎.github/workflows/deploy_documentation.yaml‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'adminforth/documentation/**'
8+
- 'documentation/**'
9+
# AFCL previews of the docs are built from these
10+
- 'adminforth/spa/src/afcl/**'
11+
- 'adminforth/modules/styles.ts'
912
- '.github/workflows/deploy_documentation.yaml'
1013

1114
jobs:
1215
deploy:
1316
runs-on: ubuntu-latest
1417
defaults:
1518
run:
16-
working-directory: adminforth
19+
working-directory: documentation
1720
steps:
1821
- name: Checkout repository
1922
uses: actions/checkout@v4
@@ -26,18 +29,23 @@ jobs:
2629
with:
2730
node-version: '24'
2831
cache: 'pnpm'
29-
cache-dependency-path: adminforth/pnpm-lock.yaml
32+
cache-dependency-path: |
33+
adminforth/pnpm-lock.yaml
34+
documentation/pnpm-lock.yaml
3035
3136
- name: Configure Git
3237
run: |
3338
git config --global user.name "${{ github.actor }}"
3439
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
3540
41+
# adminforth itself is needed too: the API pages are generated from its types, AFCL previews from its SPA
3642
- name: Install dependencies
3743
run: |
38-
pnpm i
39-
cd documentation
40-
npm ci
44+
pnpm --dir ../adminforth install
45+
pnpm install
4146
4247
- name: Build and deploy docs
43-
run: GIT_USER=${{ github.actor }} GIT_PASS=${{ secrets.DOCUSAURUS_DEPLOY_KEY }} pnpm rollout-doc
48+
env:
49+
GIT_USER: ${{ github.actor }}
50+
GIT_PASS: ${{ secrets.DOCUSAURUS_DEPLOY_KEY }}
51+
run: pnpm run build && pnpm run deploy

‎adapters/AGENTS.md‎

Lines changed: 1 addition & 1 deletion

‎adminforth/.npmignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
documentation
21
plugins
Binary file not shown.
Binary file not shown.
-48.9 KB
Binary file not shown.
-8.01 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)