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.

Title in `_toc.yml` and page metadata does not over-ride page titles

See original GitHub issue

Describe the bug

When I type:

- file: notebooks/asdf_example/asdf_example.ipynb title: ASDF Example

The result pulls from the title of the notebook instead. Where the notebook is located: https://github.com/spacetelescope/jdat_notebooks/blob/main/notebooks/asdf_example/asdf_example.ipynb

I expect the sidebar to read: “ASD Example”

Picture attached. Entire repo here: https://github.com/spacetelescope/jdat_notebook

Screen Shot 2022-04-27 at 2 34 37 PM s

Reproduce the bug

The result pulls from the title of the notebook instead. Where the notebook is located: https://github.com/spacetelescope/jdat_notebooks/blob/main/notebooks/asdf_example/asdf_example.ipynb

List your environment

jupyter-book 0.12.3

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
orifoxcommented, Jul 20, 2022

Yep, confirmed. That’s exactly the problem. Thanks.

0reactions
firasmcommented, Jul 20, 2022

Update: the incorrect behaviour is gone once the Non-consecutive header level increase; warnings are dealt with. IMHO, those probably need to be errors instead of warnings, but I can see how that would be incredibly disruptive.

Perhaps a workaround could be to make the warning more specific: in addition to what’s there, add “your table of content may behave in unexpected ways if these warnings are not resolved”

Read more comments on GitHub >

github_iconTop Results From Across the Web

mkdocs nav title different from page title - markdown
It seems the answer is in the mkdocs.yml file to specify a different/second "page display" name, but many Google searches have turned up...
Read more >
Configure the Table of Contents
Configure the Table of Contents#. This page covers some of the options you have available to control your book's behavior via the Table...
Read more >
9 Lesson 4: YAML Headers | R Markdown Crash Course
A YAML header contains YAML arguments, such as “title”, “author”, and “output”, demarcated by three dashes (—) on either end. 9.1 Title. The...
Read more >
meta
Add it to the top level of the siteConfig.yaml file and configure supported ... The title set here is appended to page titles...
Read more >
Head Metadata customized title!
Docusaurus automatically sets useful page metadata in <html> , <head> and <body> for you. It is possible to add extra metadata (or override...
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