You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0e7a69f
Browse filesBrowse the repository at this point in the historyBrowse files
docs: one canonical URL per page, a product link, robots.txt, sitemap.xml, a 404 page, page descriptions, an honest version label
cdocs.pineforge.dev is indexed twice per page (/page and /page.html), has no
robots.txt or sitemap, carries one meta description on every page, shows a
git-describe string as its version, and links nowhere to the product site.
This fixes what the repository can fix (EN-94, items C1-C5):
- C1: every page footer links https://pineforge.dev (both footer branches).
- C2: docs/seo_postprocess.py runs after Doxygen and adds one
rel=canonical per page (https://cdocs.pineforge.dev/<page>, the landing
page as the site root) and rewrites relative page links from X.html to X
(index.html to ./, anchors kept). Absolute, mailto, protocol-relative,
root-relative, nested and non-page links, scripts, comments and every
non-page file are left alone; a second pass changes nothing.
- C3: robots.txt (allow all, names the sitemap) and 404.html are copied to the
site root through HTML_EXTRA_FILES; sitemap.xml is generated from the built
pages (sorted, canonical URLs, no 404, no clock data). The 404.html is a
plain static page; whether the host serves it for unknown paths is a host
setting that this change does not touch.
- C4: the meta description is built from each page's title; the landing page
gets one sentence from docs/pages/index.md.
- C5: the version label is the tag name only for a clean checkout of an exact
tag, and the word "unreleased" otherwise, so a git-describe string never
reaches the site again.
Tests: docs/build.sh --self-test-seo (CTest row test_docs_seo) runs the real
script on a synthetic site and asserts the output byte for byte, the sitemap
URL set, untouched assets, idempotence, failure on empty input, and the
version-label rule. docs/build.sh stays a proof-read file, so
scripts/ci_docs_only.py, scripts/test_ci_docs_only.py and docs/ci.md list
docs/seo_postprocess.py beside it.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
<metaname="description" content="PineForge runtime — public C ABI reference. Deterministic PineScript v6 backtest engine, validated trade-for-trade against TradingView."/>
26
+
<metaname="description" content="$title — PineForge C++17 engine API documentation."/>
0 commit comments