jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Infer page title from the file name

Open daliagachc opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe.

Hi, I am frustrated to have to manually add a #h1 header to all my files when all i want is to have the title from the file name.

Describe the solution you'd like

I would like to have an option that lets me add automatically the title from the file name

Describe alternatives you've considered

I can manually add the titles but this becomes a problem specially when file names are changed. also i tried adding the following options wihtout succes:

titlesonly: true

page_titles : infer # Either None, infer, or toc

Additional context Thank you!

daliagachc avatar Apr 12 '21 21:04 daliagachc

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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! :tada:

welcome[bot] avatar Apr 12 '21 21:04 welcome[bot]

all i want is to have the title from the file name

hi @daliagachc, to clarify when you say title from the file name, do you mean the exact file name, or converted in some manner, e.g. my_title.md to # My Title

chrisjsewell avatar Apr 18 '21 22:04 chrisjsewell

Hi @chrisjsewell! thank u for the reply. The conversion would be even better :).

daliagachc avatar Apr 19 '21 10:04 daliagachc

Is this issue resolved? How can we make the chapter section title the name of the ipynb file?

astronautjimbo avatar Jul 07 '22 22:07 astronautjimbo