Skip to content

Commit aa95210

Browse files
committed
fix(docs): Fix SEO issues from Ahrefs report
- Fix sitemap index to only include sitemap-pages.xml and components-sitemap.xml (removes references to deleted htwoo-core and htwoo-react sitemaps) - Fix relative links in component documentation to use absolute /components/ paths (e.g., ../molecules/x -> /components/molecules/x/) - Exclude markdown-only documentation files without actual component patterns (removes INPUT-OPTIMIZATION and other docs-only files from component pages)
1 parent 3f45fb7 commit aa95210

60 files changed

Lines changed: 130 additions & 9236 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/hugo.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,25 @@ jobs:
100100
- name: Copy hTWOo React style guide
101101
run: mv -f ../main-build/docs/htwoo-react public/htwoo-react/
102102
working-directory: docs-site
103-
- name: Remove old sitemaps and use component sitemap
103+
- name: Remove old sitemaps and update sitemap index
104104
run: |
105105
# Remove htwoo-core and htwoo-react sitemaps (Pattern Lab and Storybook)
106106
rm -f public/htwoo-core/sitemap.xml
107107
rm -f public/htwoo-react/sitemap.xml
108-
# Copy component documentation sitemap as the main sitemap for components
108+
# Copy component documentation sitemap
109109
cp ../main-build/docs/htwoo-components/sitemap.xml public/components-sitemap.xml
110+
# Fix the main sitemap index - remove references to deleted sitemaps and add components sitemap
111+
cat > public/sitemap.xml << 'SITEMAP_EOF'
112+
<?xml version="1.0" encoding="UTF-8"?>
113+
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
114+
<sitemap>
115+
<loc>https://htwoo.io/sitemap-pages.xml</loc>
116+
</sitemap>
117+
<sitemap>
118+
<loc>https://htwoo.io/components-sitemap.xml</loc>
119+
</sitemap>
120+
</sitemapindex>
121+
SITEMAP_EOF
110122
working-directory: docs-site
111123
- name: Generate robots.txt with correct sitemaps
112124
run: |

docs/htwoo-components/assets/js/search-index.json

Lines changed: 16 additions & 196 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: "hTWOo Components"
3-
description: "Browse all 226 hTWOo UI Framework components. Fluent Design components for SharePoint, Microsoft Teams, and web applications."
3+
description: "Browse all 208 hTWOo UI Framework components. Fluent Design components for SharePoint, Microsoft Teams, and web applications."
44
type: "components"
55
layout: "list"
66
---
77

8-
Explore 226 Fluent Design components for SharePoint, Microsoft Teams, and web applications.
8+
Explore 208 Fluent Design components for SharePoint, Microsoft Teams, and web applications.

docs/htwoo-components/content/atoms/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Atoms"
3-
description: "Browse 108 Atoms components in the hTWOo UI Framework."
3+
description: "Browse 95 Atoms components in the hTWOo UI Framework."
44
type: "components"
55
layout: "list"
66
category: "atoms"

docs/htwoo-components/content/atoms/avatar/avatar.md

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -9,68 +9,11 @@ subcategory: "avatar"
99
seoTitle: "Atoms - Avatar Avatar"
1010
seoDescription: "Avatar Avatar Atoms"
1111
weight: 999
12-
hasVariants: true
12+
hasVariants: false
1313
markup: |
1414
&lt;div class=&quot;hoo-avatar-64&quot;&gt;
1515
&lt;img src=&quot;/htwoo-core/images/mug-shots/astronaut-mugshot-001.jpg&quot; alt=&quot;&quot; class=&quot;hoo-avatar-img&quot; height=&quot;64&quot; width=&quot;64&quot; loading=&quot;lazy&quot;&gt;
1616
&lt;/div&gt;
17-
variants:
18-
- id: "atoms-avatar-avatar-16"
19-
title: "Avatar Sample 16 px"
20-
variantName: "16"
21-
markup: |
22-
&lt;div class=&quot;hoo-avatar-16&quot;&gt;
23-
&lt;img src=&quot;/htwoo-core/images/mug-shots/astronaut-mugshot-001.jpg&quot; alt=&quot;&quot; class=&quot;hoo-avatar-img&quot; height=&quot;16&quot; width=&quot;16&quot; loading=&quot;lazy&quot;&gt;
24-
&lt;/div&gt;
25-
- id: "atoms-avatar-avatar-24"
26-
title: "Avatar Sample 24 px"
27-
variantName: "24"
28-
markup: |
29-
&lt;div class=&quot;hoo-avatar-24&quot;&gt;
30-
&lt;img src=&quot;/htwoo-core/images/mug-shots/astronaut-mugshot-001.jpg&quot; alt=&quot;&quot; class=&quot;hoo-avatar-img&quot; height=&quot;24&quot; width=&quot;24&quot; loading=&quot;lazy&quot;&gt;
31-
&lt;/div&gt;
32-
- id: "atoms-avatar-avatar-32"
33-
title: "Avatar Sample 32 px"
34-
variantName: "32"
35-
markup: |
36-
&lt;div class=&quot;hoo-avatar-32&quot;&gt;
37-
&lt;img src=&quot;/htwoo-core/images/mug-shots/astronaut-mugshot-001.jpg&quot; alt=&quot;&quot; class=&quot;hoo-avatar-img&quot; height=&quot;32&quot; width=&quot;32&quot; loading=&quot;lazy&quot;&gt;
38-
&lt;/div&gt;
39-
- id: "atoms-avatar-avatar-40"
40-
title: "Avatar Sample 40 px"
41-
variantName: "40"
42-
markup: |
43-
&lt;div class=&quot;hoo-avatar-40&quot;&gt;
44-
&lt;img src=&quot;/htwoo-core/images/mug-shots/astronaut-mugshot-001.jpg&quot; alt=&quot;&quot; class=&quot;hoo-avatar-img&quot; height=&quot;40&quot; width=&quot;40&quot; loading=&quot;lazy&quot;&gt;
45-
&lt;/div&gt;
46-
- id: "atoms-avatar-avatar-48"
47-
title: "Avatar Sample 48 px"
48-
variantName: "48"
49-
markup: |
50-
&lt;div class=&quot;hoo-avatar-48&quot;&gt;
51-
&lt;img src=&quot;/htwoo-core/images/mug-shots/astronaut-mugshot-001.jpg&quot; alt=&quot;&quot; class=&quot;hoo-avatar-img&quot; height=&quot;48&quot; width=&quot;48&quot; loading=&quot;lazy&quot;&gt;
52-
&lt;/div&gt;
53-
- id: "atoms-avatar-avatar-64"
54-
title: "Avatar Sample 64 px"
55-
variantName: "64"
56-
markup: |
57-
&lt;div class=&quot;hoo-avatar-64&quot;&gt;
58-
&lt;img src=&quot;/htwoo-core/images/mug-shots/astronaut-mugshot-001.jpg&quot; alt=&quot;&quot; class=&quot;hoo-avatar-img&quot; height=&quot;64&quot; width=&quot;64&quot; loading=&quot;lazy&quot;&gt;
59-
&lt;/div&gt;
60-
- id: "atoms-avatar-avatar-72"
61-
title: "Avatar Sample 72 px"
62-
variantName: "72"
63-
markup: |
64-
&lt;div class=&quot;hoo-avatar-72&quot;&gt;
65-
&lt;img src=&quot;/htwoo-core/images/mug-shots/astronaut-mugshot-001.jpg&quot; alt=&quot;&quot; class=&quot;hoo-avatar-img&quot; height=&quot;72&quot; width=&quot;72&quot; loading=&quot;lazy&quot;&gt;
66-
&lt;/div&gt;
67-
- id: "atoms-avatar-avatar-96"
68-
title: "Avatar Sample 96 px"
69-
variantName: "96"
70-
markup: |
71-
&lt;div class=&quot;hoo-avatar-96&quot;&gt;
72-
&lt;img src=&quot;/htwoo-core/images/mug-shots/astronaut-mugshot-001.jpg&quot; alt=&quot;&quot; class=&quot;hoo-avatar-img&quot; height=&quot;96&quot; width=&quot;96&quot; loading=&quot;lazy&quot;&gt;
73-
&lt;/div&gt;
7417
---
7518

7619
This avatar is show with a size of 64px and round borders. If you construct other avatars based on this please pass it a mugshot url and a size parameter.

docs/htwoo-components/content/atoms/buttons/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Buttons"
3-
description: "Browse 26 Buttons components."
3+
description: "Browse 23 Buttons components."
44
type: "components"
55
layout: "list"
66
category: "atoms"

docs/htwoo-components/content/atoms/buttons/button-group.md

Lines changed: 0 additions & 245 deletions
This file was deleted.

docs/htwoo-components/content/atoms/buttons/button-pivot.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,10 @@ subcategory: "buttons"
99
seoTitle: "Atoms - Buttons Button Pivot"
1010
seoDescription: "Buttons Button Pivot Atoms"
1111
weight: 99
12-
hasVariants: true
12+
hasVariants: false
1313
markup: |
1414
&lt;button class=&quot;hoo-button-pivot&quot;&gt;&lt;span class=&quot;hoo-pivot-inner&quot; title=&quot;Pivot Element&quot;&gt;Pivot Element&lt;/span&gt;
1515
&lt;/button&gt;
16-
variants:
17-
- id: "atoms-buttons-button-pivot-active"
18-
title: "Pivot Button - active"
19-
variantName: "active"
20-
markup: |
21-
&lt;button class=&quot;hoo-button-pivot is-active&quot;&gt;&lt;span class=&quot;hoo-pivot-inner&quot; title=&quot;Pivot Element&quot;&gt;Pivot Element&lt;/span&gt;
22-
&lt;/button&gt;
2316
---
2417

2518
### SCSS Imports

0 commit comments

Comments
 (0)