Closed kohheepeace closed 3 years ago
Hey @kohheepeace, we've been using mr-pdf
for generating the Docusaurus PDF of version v2.0.0beta-0
. Will this issue solve the following issue? Or a new issue needs to be created?
But internal links have not been working.
You can find the PDF of https://zowe-docs.netlify.app/ (here). For reproducing the issue.
--initialDocsURL="http://localhost:3000/stable/getting-started/overview"
.--initialDocsURL="https://zowe-docs.netlify.app/stable/getting-started/overview"
. It redirects to https://zowe-docs.netlify.app/stable/user-guide/systemrequirements-zosmf-lite/. In both the cases it should redirect to the user to the section in the PDF only - not to the online version?
@covalentbond I will check๐
@covalentbond I confirmed that internal link works well after fixing this issue. I will PR in a week.
Thanks @kohheepeace looking forward for the fix!
Apart from this issue, I encountered another issue that:
In https://zowe-docs.netlify.app/ we are having different sections like "Get Started", "User Guide", "Extend"...
But while running the script with --initialDocsURL="https://zowe-docs.netlify.app/stable/getting-started/overview
. The PDF generated contains only "Getting Started" section - not the complete documentation. How to include all the other sections as well?
@covalentbond I came up with the idea to make multiple sections. I will tackle it.๐ also hope your star for my resume.๐
Sure, waiting for these fixes. Just FYI I'm also at the end of an internship, where fixing this PDF functionality would mostly complete all the task. The completion is also imp for my resume. ๐
@covalentbond I just implemented the feature๐
@kohheepeace the links present in the TOC are working.
But links refering to other internal doc is still not working. The second and third issue mentioned in this comment still exits.
For eg. This is a line present in any docs For more information, see [Installing Zowe SMP/E Alpha](../user-guide/install-zowe-smpe.md).
This kind of link is still not working. Please look into it.
@covalentbond Thanks that it true ๐
Borrow the @bojl idea of this PR for making internal links work.