Skip to content

Develop Documentation Search & Discoverability Analyzer - #187

Open
jankiluitel wants to merge 2 commits into
thoth-tech:mainfrom
jankiluitel:feature/documentation-search-analyzer
Open

jankiluitel wants to merge 2 commits into
thoth-tech:mainfrom
jankiluitel:feature/documentation-search-analyzer

Conversation

@jankiluitel

Copy link
Copy Markdown
Collaborator

Description

This PR introduces a Documentation Search & Discoverability Analyzer for the ThothTech Documentation Website.

The analyzer provides a repository-wide way to identify documentation that may be difficult to discover, distinguish, or navigate. Rather than modifying documentation automatically, it generates actionable information for contributors to review.

Features

The analyzer currently:

Scans all Markdown and MDX documentation recursively.
Detects missing and empty page descriptions.
Identifies missing and potentially weak/generic titles.
Analyses internal documentation relationships using both Markdown links and HTML/MDX href links.
Builds an internal link graph and identifies pages with no detected incoming content links as potentially orphaned.
Detects exact duplicate documentation titles.
Uses token-based Jaccard similarity analysis to identify highly similar titles.
Separates exact duplicate titles from potentially similar titles to reduce misleading results.
Produces a structured console report summarising the analysis.
Usage

The analyzer can be run locally using:

npm run docs:analyze

Current Analysis

Running the analyzer against the current documentation collection produced:

224 documents analysed
168 internal documentation links identified
184 metadata discoverability issues
158 potentially orphaned documents
19 exact duplicate-title pairs
1 potentially similar-title pair

Potentially orphaned documents are intentionally treated as an informational signal rather than confirmed inaccessible pages, as pages may still be discoverable through Starlight navigation or search.

Testing
npm run docs:analyze — completed successfully.
npm run build — completed successfully.
224 pages built successfully.
Pagefind search index generated successfully from 226 HTML files.
Existing internal-link validation passed.
Files Changed
Added scripts/documentation-search-analyzer.mjs
Added the docs:analyze npm script to package.json
Purpose

This tool is intended to help contributors maintain documentation quality as the website grows by providing visibility into metadata quality, content relationships, potential navigation gaps, and ambiguous documentation titles

@netlify

netlify Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for thoth-tech ready!

Name Link
🔨 Latest commit bbe8560
🔍 Latest deploy log https://app.netlify.com/projects/thoth-tech/deploys/6aab7f4d27ac1b00089c6c72
😎 Deploy Preview https://deploy-preview-187--thoth-tech.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jankiluitel
jankiluitel requested review from Kachi-Okorie and omckeon and removed request for omckeon September 17, 2026 05:54

@Rhinoatron Rhinoatron left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this. The analyzer covers the requested checks, produces a useful report without changing the documentation, and I found no overlapping PR. One minor note: both changed files need a trailing newline to satisfy the current CI lint check. That doesn’t at all affect the analyzer itself, so I’m happy to approve this from my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants