Skip to content

Support existing Sphinx sites and the Klink theme - #150

Merged
timkpaine merged 1 commit into
mainfrom
tkp/existing-sphinx-source
Sep 7, 2026
Merged

Support existing Sphinx sites and the Klink theme#150
timkpaine merged 1 commit into
mainfrom
tkp/existing-sphinx-source

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Description

Add an optional source-dir for existing Sphinx documentation trees. Preserve source documents and navigation instead of generating an index from a README; resolve static and extra assets relative to that source directory.

Register Klink, including releases without a Sphinx theme entry point, and provide plain-text page titles for that theme. Add configurable intersphinx inventories and a warning-is-error CLI option. Write CNAME into the selected output directory.

This enables bt to replace its manual Sphinx/Klink deployment with Yardang while retaining its reStructuredText pages, URLs, saved notebook exports, and styling.

Verified 100 tests, make lint, and a real bt documentation build with warnings treated as errors. Browser checks cover styling, API anchors, and search.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build configuration
  • Other (describe below)

Checklist

  • Linting passes (make lint)
  • Tests pass (make test)
  • New tests added for new functionality
  • Documentation updated (if applicable)
  • Changelog / version bump (if applicable)

Version unchanged; release separately after review.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Test Results

100 tests  +9   100 ✅ +9   31s ⏱️ +9s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit a914146. ± Comparison against base commit 0f5dc60.

@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.87640% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.18%. Comparing base (0f5dc60) to head (a914146).

Files with missing lines Patch % Lines
yardang/tests/test_source_directory.py 98.57% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
+ Coverage   85.48%   86.18%   +0.69%     
==========================================
  Files          15       16       +1     
  Lines        1936     2019      +83     
  Branches      204      209       +5     
==========================================
+ Hits         1655     1740      +85     
- Misses        216      217       +1     
+ Partials       65       62       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@timkpaine
timkpaine merged commit 5799c94 into main Sep 7, 2026
4 checks passed
@timkpaine
timkpaine deleted the tkp/existing-sphinx-source branch September 7, 2026 22:08
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.

1 participant