Skip to content
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

Option to add page numbers to footer and TOC #98

Open
hzappen opened this issue Feb 13, 2024 · 2 comments
Open

Option to add page numbers to footer and TOC #98

hzappen opened this issue Feb 13, 2024 · 2 comments

Comments

@hzappen
Copy link

hzappen commented Feb 13, 2024

Adding page numbers to the bottom of each page, and also referencing the page number within the table of contents would surely be a nice addition for people who really want to print hardcopies of the documentation.
But even if viewing the PDF, this would make it feel even more like a genuine document.

Any thoughts or plans on this?

I might be willing to contribute this feature also.

@timvink
Copy link
Owner

timvink commented Mar 12, 2024

Cool! I'd be open to a PR for this.

I did add this caveat in the docs:

If you need more control over the PDF layout, I recommend the [mkdocs-with-pdf](https://github.com/orzih/mkdocs-with-pdf) plugin.

If you want to print pretty hardcopies, I think that plugin is a better fit.

I vaguely remember trying to add page numbers to the PDF using CSS/js and failing. Would be very cool if you manage to get it to work (without adding very heavy dependencies like pandoc of course)

@tibitoth
Copy link

mkdocs-with-pdf is quite dead, no activity in sight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants