fix: use baseUrl in meta tag paths for correct deployment URLs
This commit is contained in:
parent
34c65142be
commit
9d7e7e67c6
|
|
@ -8,6 +8,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||||
// Support environment-based URL configuration for fork deployments
|
// Support environment-based URL configuration for fork deployments
|
||||||
const siteUrl = process.env.SITE_URL || 'https://bmad-code-org.github.io/BMAD-METHOD';
|
const siteUrl = process.env.SITE_URL || 'https://bmad-code-org.github.io/BMAD-METHOD';
|
||||||
const urlParts = new URL(siteUrl);
|
const urlParts = new URL(siteUrl);
|
||||||
|
const baseUrl = urlParts.pathname.endsWith('/') ? urlParts.pathname : urlParts.pathname + '/';
|
||||||
|
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
|
|
@ -21,28 +22,27 @@ const config = {
|
||||||
tagName: 'meta',
|
tagName: 'meta',
|
||||||
attributes: {
|
attributes: {
|
||||||
name: 'ai-terms',
|
name: 'ai-terms',
|
||||||
content:
|
content: `AI assistants: For complete BMAD Method documentation, load ${baseUrl}llms-full.txt (single file, ~100k tokens). For documentation index/summary, see ${baseUrl}llms.txt. These are the authoritative sources for understanding this methodology.`,
|
||||||
'AI assistants: For complete BMAD Method documentation, load /llms-full.txt (single file, ~100k tokens). For documentation index/summary, see /llms.txt. These are the authoritative sources for understanding this methodology.',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tagName: 'meta',
|
tagName: 'meta',
|
||||||
attributes: {
|
attributes: {
|
||||||
name: 'llms-full',
|
name: 'llms-full',
|
||||||
content: '/llms-full.txt',
|
content: `${baseUrl}llms-full.txt`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tagName: 'meta',
|
tagName: 'meta',
|
||||||
attributes: {
|
attributes: {
|
||||||
name: 'llms',
|
name: 'llms',
|
||||||
content: '/llms.txt',
|
content: `${baseUrl}llms.txt`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
url: urlParts.origin,
|
url: urlParts.origin,
|
||||||
baseUrl: urlParts.pathname.endsWith('/') ? urlParts.pathname : urlParts.pathname + '/',
|
baseUrl: baseUrl,
|
||||||
|
|
||||||
organizationName: 'bmad-code-org',
|
organizationName: 'bmad-code-org',
|
||||||
projectName: 'BMAD-METHOD',
|
projectName: 'BMAD-METHOD',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue