Export docs to PDF #964
Replies: 5 comments 4 replies
-
This sounds really cool! I'm not sure whether this is something we'll be able to support as a core part of Starlight, but could be a good opportunity for a community tool? (Similar to the Docusaurus example you shared which is not part of the main Docusaurus project.) |
Beta Was this translation helpful? Give feedback.
-
Hey there. I just wanted to point to https://github.com/jean-humann/docs-to-pdf which is actually a generic solution to paginate through a docs page, following a "next" link. It is a hard fork from mr-pdf. Here an example on how to integrate in a ci pipeline, and the result. There is still a very important feature missing to generate an outline. Also the vitepress guys seem also to do great things in this direction. https://github.com/condorheroblog/html-export-pdf-cli/ Would be great to see synergy instead of parallel development 🚀 |
Beta Was this translation helpful? Give feedback.
-
Have you tried using md-to-pdf.fly.dev |
Beta Was this translation helpful? Give feedback.
-
I ended up using simonhaenisch/md-to-pdf with this command You can also add pagination and a title to the document and other things, check the project documentation. In my case, I have written a bash script that automates some steps and I do quite like this solution in the end, even if not "native". |
Beta Was this translation helpful? Give feedback.
-
Hello there. I recently stumbled upon the same need and built a tool for generating PDF from Starlight docs. It's not polished yet, nevertheless, it works as expected. Check it out: starlight-to-pdf. |
Beta Was this translation helpful? Give feedback.
-
What version of
starlight
are you using?0.10.2
What is your idea?
After writing documentation, sometimes we need to export it as pdf. So, an export future will be good.
Why is this feature necessary?
It will be use for offline documentation.
Do you have examples of this feature in other projects?
-DocFx
-docusaurus-prince-pdf
Participation
Beta Was this translation helpful? Give feedback.
All reactions