question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Direct support for `meta` directive

See original GitHub issue

Sphinx’s meta directive adds <meta> tags to the <head> of the page.

This is very useful. One of my usecases is adding <link rel="canonical"> tags to Hypothesis-annotated Jupyterbook pages so that the annotations don’t disappear when the filename/location changes.

The meta directive doesn’t work yet alas: Directive 'meta' cannot be mocked: MockingError: MockState has not yet implemented attribute 'nested_list_parse'

I’m up for contributing a patch. This would be my first time contributing to an executablebooks project. Could a maintainer give me a pointer for getting started in the codebase here on this problem?

(my current solution is a custom build script that edits the generated html with lxml after jb build)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
chrisjsewellcommented, Jan 8, 2021

Am I right that FrontMatter is only applicable to .md files, and not Jupyter notebooks?

No, for notebooks the top-level metadata is read as the front matter.

I could envisage potentially having a sphinx setting for project wide default front-matter/metadata, of which meta could be a part

1reaction
welcome[bot]commented, Jan 7, 2021

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven’t done so already, check out EBP’s Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Direct Support Information | Meta Business Help Center
Direct Support is a private support channel that connects businesses with specific support teams at Facebook for specific business products and services ...
Read more >
Supplemental Meta Platforms Technologies Terms Of Service
Except as expressly permitted by us, you may not copy, modify, prepare directive works, distribute, sell, lease, publicly display, publicly ...
Read more >
Content security policy - web.dev
Simple, right? As you probably guessed, script-src is a directive that controls a set of script-related privileges for a specific page. We've ...
Read more >
Robots Meta Tags Specifications | Google Search Central
Learn how to add robots meta tags and read how page and text-level settings can be used to adjust how Google presents your...
Read more >
Meta Robots Tag Guide for 2021 - ContentKing
Firstly, meta robots directives give you much-needed control over search engines' crawling and indexing behavior. Without any direction, search engines will try ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found