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

Make single-page and PDF version more visible #524

Closed
SonoSooS opened this issue Dec 20, 2023 · 4 comments · Fixed by #526
Closed

Make single-page and PDF version more visible #524

SonoSooS opened this issue Dec 20, 2023 · 4 comments · Fixed by #526

Comments

@SonoSooS
Copy link
Contributor

Currently the special versions of Pan Docs are hidden so much into the end of the Foreword section, that it's safe to assume that many people don't know these versions even exist, unless they know to exactly where to look.

Adding links of these to the bottom of the sidebar for example could boost visibility to these, as zero hunting would be necessary in that case.

@ISSOtm
Copy link
Member

ISSOtm commented Dec 20, 2023

The printable version is already linked to in the top bar, so no need to do anything about it, IMO.

As for the "single page", here's an implementation:

  • Have a src/single.md, containing some placeholder text (e.g. "don't edit, this gets overwritten"); link it preferably at the bottom of the sidebar
  • In the renderer, overwrite the contents of single.html with print.html (tweaked, like we currently are)
  • Done!

Once that's done, the links at the bottom of the foreword page can be deleted.

@coffeevalenbat
Copy link

Currently I use the pdf version of the pandocs (generated from the Print option at the top right of the page) as a local copy for when the page itself gets too slow (not sure if that is a me issue, but that's besides the point) and I noticed that most hyperlinks within the PDF version that link to other parts of the pandocs still link to the web version - So if there's a hyperlink for say, the rendering page, instead of forwarding to that page in the local PDF, it opens up the web link for it, which defeats the point. Not sure if this can be fixed or if it can't due to the way the page is built, but I figured it's worth mentioning.

@ISSOtm
Copy link
Member

ISSOtm commented Jan 12, 2024

AFAICT, this is already fixed? I tested the links under this heading, and it redirected within the "single" page...

@ISSOtm
Copy link
Member

ISSOtm commented Jan 12, 2024

Actually, this is tracked in #515!

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

Successfully merging a pull request may close this issue.

3 participants