• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

liran-funaro / sphinx-markdown-builder / 43182526669
100%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 08:25AM UTC
Jobs 4
Files 5
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Nov 2026 08:23AM UTC coverage: 100.0%. Remained the same
43182526669

push

github

web-flow
Rebuild the output when a markdown_* option changes (#124)

## Summary

Every `markdown_*` option was registered with the rebuild level
`"html"`. Sphinx only treats `"html"` changes as relevant to the HTML
builders, and `MarkdownBuilder.get_outdated_docs()` only compares
mtimes, so changing an option and rebuilding without `-a`/`-E` rewrote
nothing. This registers all options with `"env"`, so a config change
invalidates the environment and every document is re-read and rewritten.

Adds one test, `test_config_change_rebuilds_output`, that builds into
`tmp_path` and rebuilds with only `markdown_anchor_sections` changed. A
diff test always builds with `-a`, so it cannot check an incremental
build; that is why this is a pytest. The test fails on `main` and passes
with this change.

Note: open PR #109 adds `markdown_suppress_comments` with `"html"`. It
should switch to `"env"` once this lands.

## Before / after

`index.rst` is `Title\n=====`. First build, then `sphinx-build -b
markdown src out -D markdown_anchor_sections=1`:

Before (`index.md` is unchanged):
```markdown
# Title
```

After:
```markdown
<a id="title"></a>

# Title
```

## Commands

- `make lint`: passed (pylint 10.00/10)
- `make test`: passed (diff clean, 16 passed, coverage 100%)
- `pytest tests/test_builder.py -k config_change` with `"html"`
restored: fails as expected

Closes #110

9 of 9 new or added lines in 1 file covered. (100.0%)

778 of 778 relevant lines covered (100.0%)

4.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python-3.12 - 43182526669.1 12 Nov 2026 08:26AM UTC 5
100.0
GitHub Action Run
2 python-3.14 - 43182526669.2 12 Nov 2026 08:27AM UTC 5
100.0
GitHub Action Run
3 python-3.11 - 43182526669.3 12 Nov 2026 08:25AM UTC 5
100.0
GitHub Action Run
4 python-3.13 - 43182526669.4 12 Nov 2026 08:26AM UTC 5
100.0
GitHub Action Run
Source Files on build 43182526669
  • Tree
  • List 5
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43182526669
  • 84122cfe on github
  • Prev Build on main (#43031087866)
  • Next Build on main (#43183288902)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc