mkdocs-gallery
mkdocs-gallery copied to clipboard
Fix page metadata also for gallery examples
Thanks @smarie! Just to say that `feature/96_97_issues` fixes the issue with the `README.md`!
I do have a follow up question/problem though: I'd like to use the same page setup in my examples.
examples/plot_00_test.py
"""
---
hide:
- toc
---
Plotting Overview
=================
"""
...
generated/gallery/plot_00_test.md
<!--
DO NOT EDIT.
THIS FILE WAS AUTOMATICALLY GENERATED BY mkdocs-gallery.
TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
"docs/examples/1_plotting/plot_00_plotting_intro.py"
LINE NUMBERS ARE GIVEN BELOW.
-->
!!! note
Click [here](#download_links)
to download the full example code
---
hide:
- toc
---
Plotting Overview
=================
....
Unsurprisingly mkdocs
renders this incorrectly:
Is there any chance you could pass through headers in the example files too?
Originally posted by @schlegelp in https://github.com/smarie/mkdocs-gallery/issues/96#issuecomment-2329073234