onspring-docs scrapes an Onspring Help Center into deterministic Markdown files for AI agents.
It signs in over HTTP, reads MadCap Flare's TOC metadata directly, fetches topics in parallel, and converts them to GitHub-Flavored Markdown. It builds as a single Native AOT executable with no browser or runtime dependencies.
curl -fsSL https://raw.githubusercontent.com/StevanFreeborn/onspring-docs/main/scripts/install.sh | bashInstall a specific version or choose a directory:
curl -fsSL https://raw.githubusercontent.com/StevanFreeborn/onspring-docs/main/scripts/install.sh | bash -s -- --version v0.1.0 --to ~/.local/binirm https://raw.githubusercontent.com/StevanFreeborn/onspring-docs/main/scripts/install.ps1 | iexInstall a specific version or choose a directory:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/StevanFreeborn/onspring-docs/main/scripts/install.ps1))) -Version v0.1.0 -InstallDir "$HOME\onspring-docs\bin"Each run replaces the output directory atomically, removing deleted topics. Every file uses UTF-8 without a BOM, LF line endings, and no local timestamps, so repeated runs against the same Help Center build match byte for byte.
- Each topic becomes a kebab-case Markdown file with YAML frontmatter. The converter expands collapsed dropdowns, decodes Cloudflare-obfuscated emails, strips dead relative images, and rewrites internal
.htmlinks and anchors to relative.mdtargets. AGENTS.mdexplains how AI agents should navigate the corpus.INDEX.mdprovides a hierarchical table of contents with audience tags, one-line summaries, and separate sections for release notes and videos.llms.txtlists primary entry points for quick discovery.manifest.jsoncatalogs titles, headings, outgoing links, counts, and SHA-256 hashes in sorted JSON.
Copy src/OnspringDocs/appsettings.example.json to appsettings.json and set your instance URL and credentials:
{
"Onspring": {
"BaseUrl": "https://your-instance.onspring.com",
"Username": "your-username",
"Password": "your-password"
}
}Settings resolve in order, highest precedence first:
- Environment variables:
ONSPRING__BASEURL,ONSPRING__USERNAME,ONSPRING__PASSWORD --config <path>./appsettings.json<exe-dir>/appsettings.json<exe-dir>/../appsettings.json
onspring-docs [options]| Option | Effect |
|---|---|
--output <dir> |
Write output to <dir>. Defaults to docs. |
--config <path> |
Load settings from <path>. |
--concurrency <1-32> |
Set parallel HTTP fetches. Defaults to 12. |
--exclude-release-notes |
Omit release notes. |
--recent-releases <N> |
Keep the N newest release notes plus the overview. |
--exclude-videos |
Omit video pages. |
--toc-only |
Scrape only pages listed in the TOC. |
--save-raw-html <dir> |
Save fetched HTML to <dir>. |
-h, --help |
Print help and exit. |
Building requires the .NET 11 SDK. Publishing a Native AOT executable on Windows also requires MSVC C++ build tools.
dotnet build --configuration Release
dotnet test --configuration Release
dotnet publish src/OnspringDocs/OnspringDocs.csproj -c Release -r win-x64 -o "$env:USERPROFILE\onspring-docs\bin"