Replies: 7 comments 7 replies
-
After some playing around it does seem to be generating multiple pdf files in the background but still no links. I still have several other issues.
Thanks in advance for your help. |
Beta Was this translation helpful? Give feedback.
-
The "Download PDF link" and TOC page styling is currently only applied to the modern template. Is it feasible to use that template instead? |
Beta Was this translation helpful? Give feedback.
-
@yufeih Thanks for the reply. Using the modern template fixes the link issue and the formatting on the TOC page.
Update: I was able to get this working.
This still does not seem to be supported and is main pdf use case I have. My documentation is separated into multiple guides that have their own TOC's and the current design does not seem to allow for generating a single documentation PDF that can be distributed offline. Is there any way to support this? Also I am seeing some strangeness of how the top level pdf is generated. For my rest API section it generates the TOC page and the API docs for the first swagger spec but then all the others are in a different pdf under the rest API folder. Thanks again for your guidance. |
Beta Was this translation helpful? Give feedback.
-
One more additional question is it possible to template the title page to include the some additional data from the toc. I have a generic title page but I would want to possible have a sub header in it to reference the actual guide the user is looking at. E.g. User Guide, Training Guide, API, etc? Thanks. |
Beta Was this translation helpful? Give feedback.
-
I am using nested TOC's for my top level. It only generates the first article for the nested TOC's but not the rest. That is the strangeness I was talking about.
Yes I mean the cover page. The issue I am running into is that since I am forced to generate multiple pdf's instead of one I need to have a specific sub cover for each one generated. As the default cover page is shared it only can have a generic title so it makes it hard to tell the various pdf's apart if I were to distribute them outside the html site. I suppose I could try and wire up Thanks again for your help. |
Beta Was this translation helpful? Give feedback.
-
I looked into the beforePrint option and it does not look like it will work for my use case. There is no way to determine from the page which pdf is actually being generated. It seems like there should be a mechanism built into DocFX to configure the title page per generated document. Let me know your thoughts on this. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am running into a similar issue as the original poster. I configured the "pdf": true option in global metadata and followed the instructions in https://dotnet.github.io/docfx/docs/pdf.html, but there is no "Download PDF" button in the final output. I use a customized version of modern template, defined in docfx.json as follows:
I'm using a bash script to generate a local docker deployment of the docfx project output and added the "docfx pdf command to it, but that produces an error in the script execution, so I removed it again. Here is the original build script:
The customized version contains CSS customizations in public/main.css and our devops engineer added login buttons for Azure AD and MS B2C to layout/_master.tmpl. Could these somehow overwrite/push out the PDF button? The documentation gives no indication of where in the output page the PDF button should be shown. This could be made clearer. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I am attempting to follow the documentation for the new PDF engine here gttps://dotnet.github.io/docfx/docs/pdf.html. The documentation references a "Download PDF" but after following the instructions and updating my docfx.json file one does not appear after rebuilding.
To Reproduce
Steps to reproduce the behavior:
Added to my
docfx.json
Then ran
docfx build docfx.json -s
The site builds with no errors and I can open it in my browser but there is no Download PDF button.
Expected behavior
The "Download PDF" button should show as per the documentation.
Context (please complete the following information):
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions