Skip to content

Conversation

@pawamoy
Copy link
Member

@pawamoy pawamoy commented Feb 20, 2025

Closes #723

pawamoy added a commit that referenced this pull request Feb 24, 2025
Handlers must add `backlinks` HTML elements to their templates:

```html
<backlinks identifier="some-id" handler="handler-name" />
```

mkdocstrings will run a regular expression substitution on each page's HTML, and call corresponding handlers' `render_backlinks` method with backlinks fetched from autorefs (using the specified identifier, and aliases obtained thanks to it through the same handler).

Issue-723: #723
Issue-mkdocstrings-python-153: mkdocstrings/python#153
PR-739: #739
@pawamoy pawamoy marked this pull request as ready for review February 24, 2025 19:48
pawamoy added a commit that referenced this pull request Feb 24, 2025
Handlers must add `backlinks` HTML elements to their templates:

```html
<backlinks identifier="some-id" handler="handler-name" />
```

mkdocstrings will run a regular expression substitution on each page's HTML, and call corresponding handlers' `render_backlinks` method with backlinks fetched from autorefs (using the specified identifier, and aliases obtained thanks to it through the same handler).

Issue-723: #723
Issue-mkdocstrings-python-153: mkdocstrings/python#153
PR-739: #739
pawamoy added a commit that referenced this pull request Feb 24, 2025
Handlers must add `backlinks` HTML elements to their templates:

```html
<backlinks identifier="some-id" handler="handler-name" />
```

mkdocstrings will run a regular expression substitution on each page's HTML, and call corresponding handlers' `render_backlinks` method with backlinks fetched from autorefs (using the specified identifier, and aliases obtained thanks to it through the same handler).

Issue-723: #723
Issue-mkdocstrings-python-153: mkdocstrings/python#153
PR-739: #739
pawamoy added a commit that referenced this pull request Feb 24, 2025
Handlers must add `backlinks` HTML elements to their templates:

```html
<backlinks identifier="some-id" handler="handler-name" />
```

mkdocstrings will run a regular expression substitution on each page's HTML, and call corresponding handlers' `render_backlinks` method with backlinks fetched from autorefs (using the specified identifier, and aliases obtained thanks to it through the same handler).

Issue-723: #723
Issue-mkdocstrings-python-153: mkdocstrings/python#153
PR-739: #739
pawamoy added a commit that referenced this pull request Mar 8, 2025
Handlers must add `backlinks` HTML elements to their templates:

```html
<backlinks identifier="some-id" handler="handler-name" />
```

mkdocstrings will run a regular expression substitution on each page's HTML, and call corresponding handlers' `render_backlinks` method with backlinks fetched from autorefs (using the specified identifier, and aliases obtained thanks to it through the same handler).

Issue-723: #723
Issue-mkdocstrings-python-153: mkdocstrings/python#153
PR-739: #739
pawamoy added 3 commits March 10, 2025 12:49
We need version 1.6 for combined events.
… for `on_env`

This is required because we must run things in `on_env` *before* autorefs, and the backlinks feature will need to run things *after* autorefs.
This will be useful for the backlinks feature.

Additionally, use autorefs `current_page` as a `Page` object, not a string (URL).
pawamoy added a commit that referenced this pull request Mar 10, 2025
Handlers must add `backlinks` HTML elements to their templates:

```html
<backlinks identifier="some-id" handler="handler-name" />
```

mkdocstrings will run a regular expression substitution on each page's HTML, and call corresponding handlers' `render_backlinks` method with backlinks fetched from autorefs (using the specified identifier, and aliases obtained thanks to it through the same handler).

Issue-723: #723
Issue-mkdocstrings-python-153: mkdocstrings/python#153
PR-739: #739
Handlers must add `backlinks` HTML elements to their templates:

```html
<backlinks identifier="some-id" handler="handler-name" />
```

mkdocstrings will run a regular expression substitution on each page's HTML, and call corresponding handlers' `render_backlinks` method with backlinks fetched from autorefs (using the specified identifier, and aliases obtained thanks to it through the same handler).

Issue-723: #723
Issue-mkdocstrings-python-153: mkdocstrings/python#153
PR-739: #739
@pawamoy pawamoy merged commit d4c7b9c into main Mar 10, 2025
53 checks passed
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.

feature: Back links!

2 participants