Skip to content

Conversation

@ToMESSKa
Copy link
Contributor

@ToMESSKa ToMESSKa commented Jan 23, 2026

INSTUI-4905

ISSUE:

@ToMESSKa ToMESSKa self-assigned this Jan 23, 2026
Comment on lines +43 to +44
- name: Copy index.html to 404.html for GitHub Pages
run: cp ./packages/__docs__/__build__/index.html ./packages/__docs__/__build__/404.html
Copy link
Contributor Author

@ToMESSKa ToMESSKa Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

404.html is just a copy of index.html (which is generated after running pnpm run build:docs).
The clean-exclude: (see below) script removes everything not in the source (./packages/__docs__/__build__/), so 404.html should be put there.

Copy link
Collaborator

@matyasf matyasf Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the preview.yml script keeps the 404.html file because it doesnt call clean-exclude?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matyasf I think preview.yml deploys to a completely different location (the gh-pages/pr-preview/....), not to the root of gh-pages where the main 404.html file is, so it never touches the 404.html file.

@github-actions
Copy link

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2381/

Built to branch gh-pages at 2026-01-23 15:28 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Collaborator

@matyasf matyasf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my question, if its not needed for preview.yml, then lets go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants