-
-
Notifications
You must be signed in to change notification settings - Fork 29
feat: add static script gallery with GitHub Pages deployment #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f4ac92f
feat: add static gallery site generator and GitHub Pages deployment
pfeerick adb60f0
fix: correct carousel navigation, dark mode, and toggle icons
pfeerick 9f5eb56
fix: remove non-existent screenshot-5 reference from EdgeTX Goodies
pfeerick 341fb15
fix: replace broken external image URL with local screenshots for Edg…
pfeerick 8afd480
fix: prevent processing of image paths outside the repository root in…
pfeerick 8ad5701
fix: preserve full relative subdirectory structure when processing im…
pfeerick 842f2bd
fix: update keydown event listeners to use window scope for better ac…
pfeerick ad8bd76
fix: ensure safe JSON serialization to prevent script tag conflicts i…
pfeerick 47ebc1d
fix: add rel="noopener noreferrer" to external links for improved sec…
pfeerick 1dae76f
fix: enhance image slideshow controls with proper timer management
pfeerick 2664d03
fix: improve JSON serialization to prevent HTML tag conflicts
pfeerick 43400c0
fix: narrow to OSError in image processing error handling for clearer…
pfeerick bb2a386
fix: ensure safe handling of script tags by checking if tags are an a…
pfeerick 9bdaafd
fix: remove unused event listener for tag filtering in lightbox
pfeerick 33f4d00
fix: expand .gitignore to include Python-related files and virtual en…
pfeerick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| name: Deploy Script Gallery | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - 'ASSETS/**' | ||
| - 'scripts.json' | ||
| - 'tools/generate_site.py' | ||
| - '.github/workflows/gh-pages.yml' | ||
| pull_request: | ||
| paths: | ||
| - 'ASSETS/**' | ||
| - 'scripts.json' | ||
| - 'tools/generate_site.py' | ||
| - '.github/workflows/gh-pages.yml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: astral-sh/setup-uv@v8.1.0 | ||
| - name: Generate site | ||
| run: uv run tools/generate_site.py --scripts-json scripts.json --assets-dir ASSETS --output-dir site | ||
| - name: Upload Pages artifact | ||
| if: github.event_name != 'pull_request' | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: ./site | ||
| - name: Upload PR preview artifact | ||
| if: github.event_name == 'pull_request' | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: site-preview-pr-${{ github.event.pull_request.number }} | ||
| path: ./site | ||
|
|
||
| deploy: | ||
| if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,13 @@ | ||
| .DS_Store | ||
| site/ | ||
|
|
||
| # Python | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
|
|
||
| # Python virtual environments | ||
| .venv/ | ||
| venv/ | ||
| env/ | ||
| ENV/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.