Skip to content

Commit 83765b7

Browse files
jonphippsclaude
andcommitted
fix: make portal site links environment-aware and remove inappropriate resources
- Add docsEnv to portal customFields for client-side environment detection - Remove Resources footer section (vocabulary server, sitemap) that don't apply to portal - Portal now correctly links to current environment (localhost/production) instead of hardcoded production URLs - Both navbar dropdown and standard cards now use environment-aware URLs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5f1096a commit 83765b7

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

portal/docusaurus.config.ts

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const config: Config = {
3131
staticDirectories: ['static', '../packages/theme/static'],
3232

3333
customFields: {
34+
// Current environment for client-side components
35+
docsEnv: currentEnv,
3436
// Portal-specific vocabulary configuration (minimal since portal doesn't have RDF content)
3537
vocabularyDefaults: {
3638
prefix: "ifla",
@@ -114,27 +116,10 @@ const config: Config = {
114116
],
115117
},
116118

117-
// Footer - Portal has custom resource links
119+
// Footer - Portal has simplified links (no RDF downloads/sitemap)
118120
footer: {
119121
style: 'dark',
120122
links: [
121-
{
122-
title: 'Resources',
123-
items: [
124-
{
125-
label: 'Vocabulary Server',
126-
href: 'https://iflastandards.info/',
127-
},
128-
{
129-
label: 'GitHub Repository',
130-
href: 'https://github.com/iflastandards/standards-dev',
131-
},
132-
{
133-
label: 'Sitemap',
134-
to: '/sitemap',
135-
},
136-
],
137-
},
138123
{
139124
title: 'Community',
140125
items: [

0 commit comments

Comments
 (0)