Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: python interlinks #122

Merged
merged 7 commits into from
May 2, 2023
Merged

tests: python interlinks #122

merged 7 commits into from
May 2, 2023

Conversation

machow
Copy link
Owner

@machow machow commented May 1, 2023

This PR is a step towards #110 , by...

  • pulling all interlinks logic from the python filter into quartodoc.interlinks
  • adding a test specification (quartodoc/tests/example_interlinks/spec.yml)
    • this spec maps inputs like [](`quartodoc.get_object`) to responses (e.g. a link with text X), or elements (e.g. a Code element).
    • this specification is tested on the python side, but remains to be implemented in a lua filter.

Note that the interlinks logic could also be used in the renderer in the future, to avoid the need for a filter at all. However, the filter allows interlinks to work from any page, not just those rendered by quartodoc.

@machow machow marked this pull request as ready for review May 2, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant