{"repo":"kernoeb/docker-docsify-pdf","free":true,"listed":false,"github":"https://github.com/kernoeb/docker-docsify-pdf","clone":"git clone https://github.com/kernoeb/docker-docsify-pdf.git","description":"Docker way to convert Docsify pages to PDF (with Puppeteer)","language":"JavaScript","stars":34,"topics":["pdf","markdown","docsify","toc","table-of-contents","docker"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"Docker Docsify PDF This project is based on meff34/docsify-to-pdf-converter repository. Features - Custom icons - Codeblocks - Table of contents (auto-generated) - Multilingual support (multiple sidebars) - PDF cover page - PlantUML (.puml) diagrams - SVG support All improvements and fixes from original repository are here. Screenshots Usage First, create a documentation in a docs directory (like the repository example). You need a sidebar.md [^1]. Pull the image and create output directory : Run the container (volumes are mandatory) : And voilà ! :tada: --- You can use zx to generate the PDF in one command : zx README.md . You can also add custom js files (plugins) : All the resources can be replaced (images, css, js, ...) as well It can be useful if you want to change the CSS theme The PDF cover is optional : just remove the mapping on the command. Differences from original repository - Fix : - Slugify / internal URL (some URLs were not properly encoded) - localhost links are now disabled - Codeblocks (some code blocks were sliced) - Better margins in the final PDF - Page breaks between sections - If an image was used multiple times in the same section, it was not working - Security / performance : - Update dependencies (Puppeteer, Docsify, ...) - Docker container is running with current user rights (optional) - Feats : - Table of content (based on sidebar) - Custom cover PDF page - Docker way to generate PDF - Highlight code blocks (with PrismJS) - Multilingual support - F","default_branch":null,"files":null,"tree":[],"storefront":"/r/kernoeb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kernoeb/docker-docsify-pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}