feat(seo): Google Search Console audit fixes, docs root elevation and SEO hygiene - #53
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses crawl, indexing, canonical, and structured data issues discovered during a Google Search Console (GSC) audit of
sc-domain:code.textmode.art, while streamlining documentation routing and site configuration.Key Changes
1. Elevated Introduction to Documentation Root
docs/introduction.mdtodocs/index.md: Resolves the 404 error reported by Google Search Console onhttps://code.textmode.art/docs/andhttps://code.textmode.art/docs.nav.mtsto pointDocumentationdirectly to/docs/.sidebar.mtsso both theStartgroup header and theIntroductionitem link to/docs/.Get startedlink and contributing guides to point to/docs/.2. Canonical URL Normalization
transformHeadinhead.mts:/,/docs/,/api/,/docs/contributing/) now receive trailing-slash canonical URLs matching GitHub Pages static server behavior./gallery,/api/...) receive clean non-trailing-slash canonical URLs.3. Structured Data and Schema.org Enhancements
TechArticleschema across all API reference pages./search?q=SearchAction from root schema.4. Blog Decommissioning and Crawl Blocking
blog/**from VitePress builds and sitemap inconfig.mts.vitepress-plugin-blogtheme wrapper and configuration.Disallow: /blog/andDisallow: /blogtopublic/robots.txtto prevent search bots from crawling deprecated blog paths.5. Sitemap and Source Cleanup
README.md,LICENSE.md,CONTRIBUTING.md,CODE_OF_CONDUCT.md,SECURITY.md,CONTRIBUTORS_AUTOMATION.md, and.vitepress/data/TESTIMONIALS_README.md) tosrcExcludeinconfig.mts.Verification
node --test scripts/contributors.test.mjs).node --test scripts/api-examples.test.mjs).vitepress build).index.html,docs/index.html,api/index.html,gallery.html).sitemap.xmlcontains 0 blog URLs, 0 orphan root markdown files, and includes/docs/.