Skip to content

Commit

Permalink
Fix TOC patching for pydoctor (#133)
Browse files Browse the repository at this point in the history
* Fix TOC patching for pydoctor

* Fix Windows

* Patch other link
  • Loading branch information
hynek committed Oct 6, 2022
1 parent 87187fc commit a4ef4ff
Show file tree
Hide file tree
Showing 4 changed files with 494 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased](https://github.com/hynek/doc2dash/compare/3.0.0...HEAD)

### Fixed

- The table of contents-generation for *pydoctor*-based documentation has been restored. [#133](https://github.com/hynek/doc2dash/pull/133)


## [3.0.0](https://github.com/hynek/doc2dash/compare/2.4.1...3.0.0) - 2022-09-13

Expand Down
2 changes: 2 additions & 0 deletions src/doc2dash/parsers/intersphinx.py
Expand Up @@ -176,6 +176,8 @@ def _find_entry_and_add_ref(
or soup.find("span", id=anchor)
# mkdocs / mkdocstrings
or soup.find("a", {"class": "md-nav__link"}, href="#" + anchor)
# pydoctor
or soup.find("a", {"name": name})
)

if not pos:
Expand Down

0 comments on commit a4ef4ff

Please sign in to comment.