Skip to content

Commit 896d950

Browse files
milanoftheclaude
andcommitted
SEO: sitemap, canonical URLs, improved titles, JSON-LD, RTD redirects
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c9318a3 commit 896d950

9 files changed

Lines changed: 44 additions & 10 deletions

File tree

src/lib/components/pages/PackageApi.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@
102102
</script>
103103

104104
<svelte:head>
105-
<title>{pkg.name} - API{tag ? ` ${tag}` : ''}</title>
106-
<meta name="description" content="{pkg.name} API reference documentation" />
105+
<title>{pkg.name} API Reference{tag ? ` ${tag}` : ''} — PathSim Docs</title>
106+
<meta name="description" content="{pkg.name} API reference documentation — classes, methods, and parameters." />
107+
<link rel="canonical" href="https://docs.pathsim.org/{packageId}/latest/api" />
107108
</svelte:head>
108109

109110
<Tooltip />

src/lib/components/pages/PackageExamples.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@
5959
</script>
6060

6161
<svelte:head>
62-
<title>{pkg.name} - Examples</title>
63-
<meta name="description" content="{pkg.name} example notebooks" />
62+
<title>{pkg.name} Examples — PathSim Docs</title>
63+
<meta name="description" content="Interactive example notebooks for {pkg.name} — tutorials, simulations, and code walkthroughs." />
64+
<link rel="canonical" href="https://docs.pathsim.org/{packageId}/latest/examples" />
6465
</svelte:head>
6566

6667
<Tooltip />

src/lib/components/pages/PackageOverview.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@
118118
</script>
119119

120120
<svelte:head>
121-
<title>{pkg.name}</title>
121+
<title>{pkg.name} — PathSim Docs</title>
122122
<meta name="description" content="{pkg.name} - {pkg.description}" />
123+
<link rel="canonical" href="https://docs.pathsim.org/{packageId}" />
123124
</svelte:head>
124125

125126
<Tooltip />

src/routes/+layout.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@
111111

112112
<svelte:head>
113113
<link rel="stylesheet" href={CDN.katex.css} />
114+
{@html `<script type="application/ld+json">${JSON.stringify({
115+
"@context": "https://schema.org",
116+
"@type": "WebSite",
117+
"url": "https://docs.pathsim.org",
118+
"name": "PathSim Documentation",
119+
"description": "API reference, examples, and guides for PathSim — a Python framework for simulating dynamical systems using block diagrams."
120+
})}</script>`}
114121
</svelte:head>
115122

116123
<Tooltip />

src/routes/+page.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@
7979
</script>
8080

8181
<svelte:head>
82-
<title>PathSim Docs</title>
83-
<meta name="description" content="Documentation for PathSim - A Python framework for simulating dynamical systems" />
82+
<title>PathSim Documentation — API Reference, Examples & Guides</title>
83+
<meta name="description" content="Documentation for PathSim — a Python framework for simulating dynamical systems using block diagrams. API reference, interactive examples, and guides." />
84+
<link rel="canonical" href="https://docs.pathsim.org/" />
8485
</svelte:head>
8586

8687
<Tooltip />

src/routes/[package]/[version]/examples/[slug]/+page.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@
7171
</script>
7272

7373
<svelte:head>
74-
<title>{data.meta.title} - Example</title>
74+
<title>{data.meta.title} — {data.packageId} Example | PathSim Docs</title>
7575
<meta name="description" content={data.meta.description} />
76+
<link rel="canonical" href="https://docs.pathsim.org/{data.packageId}/latest/examples/{data.meta.slug}" />
7677
</svelte:head>
7778

7879
<Tooltip />

src/routes/[package]/roadmap/+page.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
</script>
1919

2020
<svelte:head>
21-
<title>{pkg.name} - Roadmap</title>
22-
<meta name="description" content="{pkg.name} development roadmap" />
21+
<title>{pkg.name} Roadmap — PathSim Docs</title>
22+
<meta name="description" content="{pkg.name} development roadmap — upcoming features and planned improvements." />
23+
<link rel="canonical" href="https://docs.pathsim.org/{data.packageId}/roadmap" />
2324
</svelte:head>
2425

2526
<div class="hero">

static/_redirects

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Redirect old ReadTheDocs URLs to new structure
2+
/en/latest/* /pathsim/latest/:splat 301
3+
/en/stable/* /pathsim/latest/:splat 301
4+
/en/v:version/* /pathsim/v:version/:splat 301
5+
/en/* /pathsim 301

static/sitemap.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url><loc>https://docs.pathsim.org/</loc><priority>1.0</priority><changefreq>weekly</changefreq></url>
4+
<url><loc>https://docs.pathsim.org/pathsim</loc><priority>0.8</priority><changefreq>weekly</changefreq></url>
5+
<url><loc>https://docs.pathsim.org/pathsim/latest/api</loc><priority>0.9</priority><changefreq>weekly</changefreq></url>
6+
<url><loc>https://docs.pathsim.org/pathsim/latest/examples</loc><priority>0.8</priority><changefreq>weekly</changefreq></url>
7+
<url><loc>https://docs.pathsim.org/pathsim/roadmap</loc><priority>0.5</priority><changefreq>monthly</changefreq></url>
8+
<url><loc>https://docs.pathsim.org/chem</loc><priority>0.7</priority><changefreq>weekly</changefreq></url>
9+
<url><loc>https://docs.pathsim.org/chem/latest/api</loc><priority>0.7</priority><changefreq>weekly</changefreq></url>
10+
<url><loc>https://docs.pathsim.org/chem/latest/examples</loc><priority>0.7</priority><changefreq>weekly</changefreq></url>
11+
<url><loc>https://docs.pathsim.org/rf</loc><priority>0.7</priority><changefreq>weekly</changefreq></url>
12+
<url><loc>https://docs.pathsim.org/rf/latest/api</loc><priority>0.7</priority><changefreq>weekly</changefreq></url>
13+
<url><loc>https://docs.pathsim.org/rf/latest/examples</loc><priority>0.7</priority><changefreq>weekly</changefreq></url>
14+
<url><loc>https://docs.pathsim.org/vehicle</loc><priority>0.6</priority><changefreq>monthly</changefreq></url>
15+
<url><loc>https://docs.pathsim.org/flight</loc><priority>0.6</priority><changefreq>monthly</changefreq></url>
16+
</urlset>

0 commit comments

Comments
 (0)