Skip to content
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

Document links don't work in pdf #3

Closed
binnes opened this issue Jul 17, 2020 · 4 comments
Closed

Document links don't work in pdf #3

binnes opened this issue Jul 17, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@binnes
Copy link

binnes commented Jul 17, 2020

If I include a link to another page in the Markdown using [link description](page.md) syntax the link doesn't not work in the generated PDF - the generated web site works OK.

There is an error output when the mkdocs build command is run, that corresponds to each instance of a page link in the Markdown docs : ERROR - No anchor #page.html: for internal URI reference.

It doesn't matter if the Markdown pages are in the same directory, in the root docs directory or in a subdirectories of the docs directory - none of the internal links work.

I have the recommended toc extension with the permalink: true option set and the use_directory_urls option set to false as specified in the documentation.

Using the debug_html option I can see there is no id attribute on the article tag for a page, so looks like there is no anchor being created for pages, just a data-url tag.

@orzih orzih closed this as completed in dee170f Jul 24, 2020
@orzih orzih reopened this Jul 24, 2020
@orzih
Copy link
Owner

orzih commented Jul 24, 2020

Thank you for your report.

I fixed this bug.
Could you try it in your case?

@orzih orzih added the bug Something isn't working label Jul 24, 2020
@binnes
Copy link
Author

binnes commented Jul 24, 2020

Thanks for fixing, all working now

@binnes binnes closed this as completed Jul 24, 2020
@binnes
Copy link
Author

binnes commented Jul 24, 2020

Just tested on another project and the No anchor messages are back - not investigated yet, but this could be the hanging : issue that was included in the PR?

If you want to see the Markdown that is generating the issue it is in this git repo : https://github.com/binnes/Node-RED-container-prod

@binnes
Copy link
Author

binnes commented Jul 27, 2020

Thanks for the quick fix, all pdf generation works now

@binnes binnes closed this as completed Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants