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
PDF: add support for a cover page #2004
Comments
Current idea: use naming convention to find cover page |
Looks good to me. It would be cool if we could define custom margins just for the cover page. Not sure if wkhtmltopdf support this (wkhtmltopdf/wkhtmltopdf#3635). |
If (once) wkthmltopdf supports custom margins for the cover page, the easiest way to support this in docfx is to set the magines for the cover page to 0. This would allow the user to fully control the margins via CSS. |
Hello there, Currently working on a documentation using DocFx and PDF generator. The feature here asked for would be helpful to me. Was it implemented yet ? I see the topic is still set to "open". Kind regards. |
FYI @partychen |
I created PR #4342 which implements this feature request. Basically, if It doesn't get passed as the There's currently no support for setting the margins of the page here, but this is what I'm currently doing after the PDF is generated by DocFx:
This works for me because:
|
* Added support for a cover page when generating a PDF (#2004) * Updated release notes * Using cover.html from template * Updated docfx.exe_user_manual.md * Updated code comments * Updated code comments * Finding cover page relative to TOC Added {{{conceptual}}} to cover HTML template Removed unneeded cover page processor * Setting the default table of contents bookmark/outline to "Table of Contents" Using FilePathComparer.OSPlatformSensitiveRelativePathComparer to compare directory names Require cover.md to be in the same directory as toc.yml
PR #4342 was merged and so I think this issue should be closed.
To use the default cover template, here's a sample
The generated For new feature requests like having custom margins only for the cover page, it would be best to create a new issue. |
It would really helpful if there way any way to define custom html for a cover page (that is not the TOC).
It should be put before the TOC and not be included in the page count.
wkhtmltopdf
supports this with thecover
object.The text was updated successfully, but these errors were encountered: