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

Link to a standalone html file in the menu #1441

Closed
jdumas opened this issue Mar 24, 2018 · 2 comments
Closed

Link to a standalone html file in the menu #1441

jdumas opened this issue Mar 24, 2018 · 2 comments

Comments

@jdumas
Copy link

jdumas commented Mar 24, 2018

Hi,

Let's suppose I have a standalone html file in my docs folder docs/foo.html. In the menu of my website I would like to have it listed correctly:

pages:
  - Home: index.md
  - Foo: foo.html

While foo.html is correctly copied by mkdocs when building, it generates an incorrect link in the menu, i.e. it will point to baseurl/foo/ instead of baseurl/foo.html. It seems related to #192 and #989, but it's not exactly the same issue.

Is there any reason that mkdocs does not detect that the file ends in .html and generates a different menu entry for this? (And also removes it from the prev/next navigation).

I couldn't figure out how to make it work, any tip would be appreciated.

@waylan
Copy link
Member

waylan commented Mar 24, 2018

This is being closed as a duplicate of #989. I realize the title specifically refers to "external" links, but in this comment the problem is summarized for both external and internal links. Regardless, the fix will be the same for both. This is being addressed as part of the Pages Refactor. See this comment for an overview.

@waylan waylan closed this as completed Mar 24, 2018
@jdumas
Copy link
Author

jdumas commented Mar 24, 2018

Ok my bad. I only skimmed the thread and wasn't sure if it was the same problem or not. Glad to see it's in your radar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants