mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-19 01:26:29 +03:00
Deprecate /gallery page, redirect to /visual-mode#try-it-live
The gallery page had broken styling and missing images. The visual mode page already has the same specimen gallery in a better layout. - Removed public/gallery.html and its build entry point - Updated homepage links to point to /visual-mode#try-it-live - Added 301 redirect from /gallery to /visual-mode#try-it-live - Added id="try-it-live" anchor to the visual-mode gallery section Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a530f08df6
commit
7d29aaca1b
@@ -517,7 +517,7 @@ function renderVisualModeMain() {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="visual-mode-gallery" aria-label="Try it on synthetic specimens">
|
||||
<section class="visual-mode-gallery" id="try-it-live" aria-label="Try it on synthetic specimens">
|
||||
<header class="visual-mode-gallery-header">
|
||||
<h2 class="visual-mode-gallery-title">Try it live</h2>
|
||||
<p class="visual-mode-gallery-lede">These ${GALLERY_ITEMS.length} synthetic slop pages ship with the detector script baked in. Click any to see the overlay running on a real page, then scroll around and hover the outlined elements.</p>
|
||||
|
||||
+1
-3
@@ -175,7 +175,6 @@ function validateNoEmDashes(rootDir) {
|
||||
'content/site',
|
||||
'public/index.html',
|
||||
'public/cheatsheet.html',
|
||||
'public/gallery.html',
|
||||
'public/privacy.html',
|
||||
'scripts/build-sub-pages.js',
|
||||
'scripts/lib/sub-pages-data.js',
|
||||
@@ -230,7 +229,6 @@ function validateSiteHeader(rootDir) {
|
||||
const pages = [
|
||||
'public/index.html',
|
||||
'public/cheatsheet.html',
|
||||
'public/gallery.html',
|
||||
'public/privacy.html',
|
||||
];
|
||||
const marker = '<!-- site-header v1 -->';
|
||||
@@ -284,7 +282,6 @@ async function buildStaticSite(extraEntrypoints = []) {
|
||||
const entrypoints = [
|
||||
path.join(ROOT_DIR, 'public', 'index.html'),
|
||||
path.join(ROOT_DIR, 'public', 'cheatsheet.html'),
|
||||
path.join(ROOT_DIR, 'public', 'gallery.html'),
|
||||
path.join(ROOT_DIR, 'public', 'privacy.html'),
|
||||
...extraEntrypoints,
|
||||
];
|
||||
@@ -531,6 +528,7 @@ function generateCFConfig(buildDir) {
|
||||
/api/commands /_data/api/commands.json 200
|
||||
/api/patterns /_data/api/patterns.json 200
|
||||
/api/command-source/:id /_data/api/command-source/:id.json 200
|
||||
/gallery /visual-mode#try-it-live 301
|
||||
`;
|
||||
fs.writeFileSync(path.join(buildDir, '_redirects'), redirects);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user