solidjs / solid-docs-next

SolidJS Docs.
https://docs.solidjs.com/
208 stars 225 forks source link

[Request]: Export the documentation to PDF #788

Closed ajsb85 closed 2 weeks ago

ajsb85 commented 2 weeks ago

What is this request related to?

Request

📋 Suggested

I propose adding an "Export to PDF" button or option to all documentation pages on the SolidJS website. This feature would allow users to easily download a neatly formatted PDF version of any page for offline reading, reference, or sharing.

📋 General description or bullet points

Benefits:

Technical Considerations:

Additional Considerations:

This feature would be a valuable addition to the SolidJS documentation, enhancing its usability and accessibility for a wider range of users.

🖥️ Reproduction of code samples in StackBlitz

No response

atilafassina commented 2 weeks ago

Hello, @ajsb85

This does sound like an interesting suggestion. It would address the offline support story. But a PDF opens up a second problem that we have been bitten in the past and I'd be reluctant to accept again: people using outdated documentation.

The PDF is a snapshot of that point in time, and documentation evolves a lot - not only through API breaking changes, but we're also constantly learning on how to improve the education experience. Not to say that, as you mentioned, it opens a bunch of extra challenges (figuring out a11y for PDFs, allowing some customization and print stylesheets, caching the artifact so we don't create cost for ourselves by processing all the 300 entries of the doc every time someone asks for the PDF. Etc.

So, as a built-in solution for offline support, I'd say that a PDF export is a no-go for us. Of course we welcome you to build it externally and if you need any support from us, let us know on discord.

In another issue, I'm opened to discussing how a service worker implementation would work to provide the offline support on the website itself - in case you feel like working on it yourself. I must say that, at the moment, we have all our energy focused in bulking up the content of our docs - with more thorough API references and Guides on how to solve common problems in Solid / SolidStart.

Cheers 🩵