Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
486a7bc
Update .gitignore to streamline ignored files and add GitHub Actions …
dshevtsov Dec 5, 2025
6d2ffc7
Enhance GitHub Actions workflow for preview deployment by adding supp…
dshevtsov Dec 5, 2025
ca47307
Refactor GitHub Actions workflow for preview deployment by removing i…
dshevtsov Dec 5, 2025
21248be
Enhance GitHub Actions workflow for preview deployment by adding debu…
dshevtsov Dec 6, 2025
dbbbf97
Update GitHub Actions workflow to handle directory naming changes for…
dshevtsov Dec 6, 2025
c40fb9d
Enhance GitHub Actions workflow by adding steps to fetch dynamically …
dshevtsov Dec 6, 2025
3ff0f0b
Refactor GitHub Actions workflow to copy hlx_statics directly from ad…
dshevtsov Dec 6, 2025
33ba028
Fix navigation preview
dshevtsov Dec 15, 2025
1881bfe
Fix: Add fetch interceptor to rewrite absolute paths for GitHub Pages
dshevtsov Dec 15, 2025
4f6a0d6
Fix: Create interceptor.js file and inject script tag properly
dshevtsov Dec 15, 2025
f6837c3
Fix: Use inline interceptor script to run before external scripts
dshevtsov Dec 15, 2025
83ea961
Fix: Use perl for injection to handle && in JS correctly
dshevtsov Dec 15, 2025
d5c11dc
Fix: Intercept both relative paths and full URLs
dshevtsov Dec 15, 2025
bf10a99
Fix: Handle Request and URL objects in fetch interceptor
dshevtsov Dec 15, 2025
8f11883
Fix: Add MutationObserver to fix dynamically created element paths
dshevtsov Dec 15, 2025
ea94375
Fix: Remove no-sidenav class to show side navigation on GitHub Pages
dshevtsov Dec 15, 2025
3f12b21
Fix: Only remove no-sidenav on documentation pages (template=document…
dshevtsov Dec 15, 2025
dda084d
Update GitHub Actions workflow to fetch rendered HTML for side naviga…
dshevtsov Dec 16, 2025
48a3e4b
Fix: Handle full URLs with origin in fetch interceptor
dshevtsov Dec 16, 2025
0282635
Fix: Rewrite config paths for correct side-nav section filtering
dshevtsov Dec 16, 2025
59310c2
Refactor: Split workflow into focused steps, add superhero fix
dshevtsov Dec 17, 2025
f0cb8c1
Fix: Superhero background + interceptor minification
dshevtsov Dec 17, 2025
f36201a
Update: Modify GitHub Pages interceptor to use dynamic path prefix an…
dshevtsov Dec 17, 2025
0a6def2
Enhance: Add sitePath configuration to package.json and update GitHub…
dshevtsov Dec 17, 2025
d3bdfd8
Enhance: Update GitHub Actions workflow to rewrite config paths and e…
dshevtsov Dec 17, 2025
a732a52
Refactor: Replace deprecated GitHub Actions workflow with a reusable …
dshevtsov Dec 18, 2025
b45b080
Testing: Add push trigger to GitHub Pages deployment workflow for tes…
dshevtsov Dec 18, 2025
0723bfb
Remove push trigger from GitHub Pages deployment workflow, allowing m…
dshevtsov Dec 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Deploy GitHub Pages preview
on:
workflow_dispatch:
inputs:
branch:
description: "Branch to deploy"
type: string
required: true
default: main

permissions:
contents: read
pages: write
id-token: write

jobs:
preview:
uses: AdobeDocs/commerce-contributor/.github/workflows/github-pages-preview.yml@main
with:
branch: ${{ inputs.branch || github.ref }}
23 changes: 7 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,10 @@
.history
.idea
.editorconfig
.cursor

# npm yarn
# npm
node_modules
package.lock
yarn-error.log
.pnp.*
.yarn/*

# keep in repo
!.gitignore
!.yarn.lock
!.yarnrc.yml
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# gatsby files
.env
Expand All @@ -34,11 +21,15 @@ cypress/screenshots
# lerna
lerna-debug.log

tmp
# static
_site

# Super-linter outputs
super-linter-output
super-linter.log

# GitHub Actions leftovers
github_conf

# local dev
tmp
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"type": "git",
"url": "https://github.com/AdobeDocs/commerce-testing"
},
"config": {
"sitePath": "commerce/testing"
},
"scripts": {
"dev": "node ./dev.mjs",
"lint": "npx --yes github:AdobeDocs/adp-devsite-utils runLint -v",
Expand Down