mkpdfs-mkdocs-plugin
mkpdfs-mkdocs-plugin copied to clipboard
Feature: export only one page, or a selection of pages
Hello,
Your plugin look great, and work great.
But we need to export only one page or some pages that we choose. Our documentation website is huge and we don't need to export the full content...
I took a look on pdf export plugin but the export look weird with a lot of "bug", the issues are not processed as what I saw.
Do you think it's possible to get this option?
Thanks in advance !
Hi @Anasme
Currently you have the ability to disable the generation of pdf on a specific page by using meta in your markdown file as described in the documentation (https://comwes.github.io/mkpdfs-mkdocs-plugin/getting-started.html#hide-file-content-from-the-generated-pdf)
But I think to ease the process, I'll keep the previous behaviour as default and implement the following in case you only want to generate a combined pdf for few pages:
Expose a configuration called meta_only
which if set to True
, the pdf will be generated only for pages where a meta pdf
has been defined and set to True
.
Does this sounds ok to you? Thanks for your answer.
@Anasme I'm keeping this feature on hold for another release.
Thanks to the above comment I found the "PDF: False" meta data, but this still prints the page/section header (followed by no content).
The upcoming version.
I've tested this, and seems that it's fixed in the upcoming version 1.1.0. I'm joining the working source code with the generated pdf.
KR, Gerry Ntabuhashe
LGTM, thanks.