Skip to content

Complete Type Hints and Add support for custom tags #13

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

Merged
merged 2 commits into from
Jul 10, 2020

Conversation

TheTripleV
Copy link
Collaborator

Type hints

Type hints were only partially filled in. This completes them. This allows intellisense to work.

Custom tag support

Discourse's Onebox invented their own og tag, "og:ignore_canonical".

- Sphinx's included coverage extension was used as reference
@sciencewhiz
Copy link
Contributor

Will og:ignore_canonical allow the frc-docs to onebox on discourse?

@TheTripleV
Copy link
Collaborator Author

Yes, it should. I haven't found it documented anywhere but it's in the Onebox source code.

@ItayZiv
Copy link
Collaborator

ItayZiv commented Jul 9, 2020

I forgot to fully do typing when originally doing stuff, also probably worth having a config options for custom tags, not a default (not relevant for everyone using this)

@TheTripleV
Copy link
Collaborator Author

Based on Discord discussion:

  • Changed impl to take html snippets

Ex.

ogp_custom_meta_tags = [
    '<meta property="og:ignore_canonical" content="true" />',
]

@Daltz333 Daltz333 merged commit 952f485 into sphinx-doc:master Jul 10, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants