Skip to content

Commit 7c9f059

Browse files
committed
chore(docs): fix sitemap
Signed-off-by: Cory Rylan <crylan@nvidia.com>
1 parent 0640e11 commit 7c9f059

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎projects/site/src/_11ty/plugins/sitemap-xml.js‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ import { getSiteUrl } from '../utils/site-url.js';
44

55
constEXCLUDED_PREFIXES=['/docs/changelog/','/docs/metrics/','/examples/','/404'];
66
constUTILITY_FILE_URLS=['/llms.txt','/llms-full.txt'];
7-
constINDEXABLE_FILE_URLS=['/DESIGN.md'];
87
constROBOTS_NOINDEX=/<meta\s+[^>]*name=["']robots["'][^>]*content=["'][^"']*\bnoindex\b/i;
98
constJSON_LD_SCRIPT=
109
/<script\b[^>]*\btype=(?:"application\/ld\+json"|'application\/ld\+json'|application\/ld\+json)[^>]*>([\s\S]*?)<\/script>/gi;
1110

1211
exportfunctionisSitemapPageUrl(url){
1312
if(!url)returnfalse;
1413
if(UTILITY_FILE_URLS.includes(url))returnfalse;
15-
if(INDEXABLE_FILE_URLS.includes(url))returntrue;
1614
if(!url.endsWith('/')&&!url.endsWith('.html'))returnfalse;
1715
if(EXCLUDED_PREFIXES.some(prefix=>url.startsWith(prefix)))returnfalse;
1816
returntrue;
@@ -38,10 +36,7 @@ function getResultModifiedDate(result) {
3836
}
3937

4038
exportfunctionrenderSitemap(results=[]){
41-
constpages=newMap([
42-
...INDEXABLE_FILE_URLS.map(url=>[url,{ url }]),
43-
...results.filter(isPublishableResult).map(result=>[result.url,result])
44-
]);
39+
constpages=newMap(results.filter(isPublishableResult).map(result=>[result.url,result]));
4540
constentries=[...pages.values()]
4641
.sort((left,right)=>left.url.localeCompare(right.url))
4742
.map(result=>{

‎projects/site/src/_11ty/plugins/sitemap-xml.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ describe('isSitemapPageUrl', () => {
88
expect(isSitemapPageUrl('/docs/cli/')).toBe(true);
99
expect(isSitemapPageUrl('/docs/elements/')).toBe(true);
1010
expect(isSitemapPageUrl('/docs/foundations/')).toBe(true);
11-
expect(isSitemapPageUrl('/DESIGN.md')).toBe(true);
1211
});
1312

1413
it('should exclude agent utility files from sitemap pages',()=>{
1514
expect(isSitemapPageUrl('/llms.txt')).toBe(false);
1615
expect(isSitemapPageUrl('/llms-full.txt')).toBe(false);
16+
expect(isSitemapPageUrl('/DESIGN.md')).toBe(false);
1717
});
1818

1919
it('should exclude non-indexable site sections',()=>{
@@ -39,7 +39,7 @@ describe('isSitemapPageUrl', () => {
3939
'<loc>https://nvidia.github.io/elements/docs/whats-new/06-2026/</loc>\n<lastmod>2026-07-24T00:00:00.000Z</lastmod>'
4040
);
4141
expect(sitemap).toContain('<loc>https://nvidia.github.io/elements/docs/about/support/</loc>');
42-
expect(sitemap).toContain('<loc>https://nvidia.github.io/elements/DESIGN.md</loc>');
42+
expect(sitemap).not.toContain('<loc>https://nvidia.github.io/elements/DESIGN.md</loc>');
4343
expect(sitemap.match(/<lastmod>/g)).toHaveLength(1);
4444
});
4545
});

‎projects/site/src/docs/mcp/index.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# {{title}}
1010

11-
<h2nve-text="heading sm muted">The Elements MCP server connects AI coding assistants to the Elements design system. It gives tools like Claude Code, Cursor, and Codex direct access to component APIs, design tokens, skills, template validation, project scaffolding, and interactive MCP Apps views so your AI assistant can build with Elements effectively</h2>
11+
<h2nve-text="heading sm muted">The NVIDIA Elements MCP server connects AI coding assistants to the Elements design system. It gives tools like Claude Code, Cursor, and Codex direct access to component APIs, design tokens, skills, template validation, project scaffolding, and interactive MCP Apps views so your AI assistant can build with Elements effectively</h2>
1212

1313
{% install-cli %}
1414

@@ -81,7 +81,7 @@ After adding the configuration in the root of your project, restart Codex for th
8181

8282
<br />
8383

84-
```toml
84+
```shell
8585
# .codex/config.toml
8686
[mcp_servers.elements]
8787
description = "NVIDIA Elements UI Design System (nve-*), custom element schemas, APIs and examples"
@@ -328,3 +328,7 @@ npm config set registry {{ELEMENTS_REGISTRY_URL}} && npm login --auth-type=legac
328328
### Unsupported Engine
329329

330330
An `Unsupported engine` warning means your Node.js version is out of date. The CLI requires Node.js v20 or later. Update Node.js and try again.
331+
332+
## Links
333+
334+
-[MCP Registry](https://registry.modelcontextprotocol.io/?q=io.github.NVIDIA%2Felements)

0 commit comments

Comments
 (0)