Skip to content

Commit bdb85dc

Browse files
committed
Switch to CI build workflow: Remove out folder and configure GitHub Action
1 parent 712de04 commit bdb85dc

File tree

838 files changed

+154
-39555
lines changed

Some content is hidden

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

838 files changed

+154
-39555
lines changed

.github/workflows/deploy.yml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,54 @@ concurrency:
1717
cancel-in-progress: false
1818

1919
jobs:
20-
deploy:
21-
environment:
22-
name: github-pages
23-
url: ${{ steps.deployment.outputs.page_url }}
20+
build:
21+
name: Build
2422
runs-on: ubuntu-latest
25-
permissions:
26-
pages: write
27-
id-token: write
2823
steps:
2924
- name: Checkout
3025
uses: actions/checkout@v4
3126

27+
- name: Setup Node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "20"
31+
cache: "npm"
32+
3233
- name: Setup Pages
3334
uses: actions/configure-pages@v4
35+
# Automatically injects static_site_generator: next
36+
37+
- name: Install dependencies
38+
run: npm ci
39+
40+
- name: Fetch Docs
41+
env:
42+
# Use GITHUB_TOKEN for fetching from public/internal repos if needed
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
run: npm run fetch-docs
45+
46+
- name: Build with Next.js
47+
env:
48+
# Ensure next uses production build config
49+
NODE_ENV: production
50+
# Pass the repository name for base path logic if needed
51+
# But next.config.mjs handles it with GITHUB_PAGES logic often
52+
# We can explicitly set it here if we want to be sure
53+
NEXT_PUBLIC_BASE_PATH: /${{ github.event.repository.name }}
54+
run: npm run build
3455

3556
- name: Upload artifact
3657
uses: actions/upload-pages-artifact@v3
3758
with:
3859
path: ./out
3960

61+
deploy:
62+
environment:
63+
name: github-pages
64+
url: ${{ steps.deployment.outputs.page_url }}
65+
runs-on: ubuntu-latest
66+
needs: build
67+
steps:
4068
- name: Deploy to GitHub Pages
4169
id: deployment
4270
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ yarn-error.log*
3636
next-env.d.ts
3737
/.vscode/
3838

39-
# static export
40-
/out/
39+
out/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A modern static documentation website for plugin documentation with automatic Gi
2626
```bash
2727
# Clone the repository
2828
git clone <your-repository-url>
29-
cd static-plugin-doc-site-3
29+
cd plugin-doc-site
3030

3131
# Install dependencies
3232
npm install

components/custom-image.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export function CustomImage(props: any) {
1010
if (hasError) return null;
1111

1212
// Check if the image is an SVG (which requires unoptimized prop)
13-
const isSvg = props.src?.endsWith('.svg') || props.src?.includes('img.shields.io');
13+
const src = typeof props.src === 'object' ? props.src.src : props.src;
14+
const isSvg = typeof src === 'string' && (src.endsWith('.svg') || src.includes('img.shields.io'));
1415

1516
// Simple fallback for now to debug panic
1617
return (

content/docs/filament-access-management/1.x/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Overview
33
description: Complete user and role management solution for Filament applications with permissions, roles, and access control features.
4-
lastUpdated: 2026-03-02T10:21:10.447Z
4+
lastUpdated: 2026-03-02T10:31:46.768Z
55
---
66

77
# filament-access-management

content/docs/filament-access-management/2.x/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Overview
33
description: Complete user and role management solution for Filament applications with permissions, roles, and access control features.
4-
lastUpdated: 2026-03-02T10:21:10.448Z
4+
lastUpdated: 2026-03-02T10:31:46.769Z
55
---
66

77

content/docs/filament-cms-website-plugin/1.x/guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Guide
33
description: A complete website content management plugin for Filament, allowing you to manage pages, media, and website content with ease.
4-
lastUpdated: 2026-03-02T10:21:10.368Z
4+
lastUpdated: 2026-03-02T10:31:46.681Z
55
---
66

77
## General Page

content/docs/filament-cms-website-plugin/1.x/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Overview
33
description: A complete website content management plugin for Filament, allowing you to manage pages, media, and website content with ease.
4-
lastUpdated: 2026-03-02T10:21:10.368Z
4+
lastUpdated: 2026-03-02T10:31:46.681Z
55
---
66

77
# Filament CMS Website Plugin

content/docs/filament-cms-website-plugin/2.x/guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Guide
33
description: A complete website content management plugin for Filament, allowing you to manage pages, media, and website content with ease.
4-
lastUpdated: 2026-03-02T10:21:10.371Z
4+
lastUpdated: 2026-03-02T10:31:46.684Z
55
---
66

77
## General Page

content/docs/filament-cms-website-plugin/2.x/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Overview
33
description: A complete website content management plugin for Filament, allowing you to manage pages, media, and website content with ease.
4-
lastUpdated: 2026-03-02T10:21:10.371Z
4+
lastUpdated: 2026-03-02T10:31:46.684Z
55
---
66

77
# Filament CMS Website Plugin

0 commit comments

Comments
 (0)