Skip to content

Setup mkdocs-materials #7793

Closed Answered by kamilkrzyskow
gh-repo-status-check asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @gh-repo-status-check,
the way links are processed is related to the use_directory_urls config option. MkDocs generates static HTML pages, and it's either .../docker.html or .../docker/index.html, where the latter can be opened with .../docker/. Notice the / at the end which "opens" the directory, and the web browser automatically loads the index.html file.

There is no official way to setup direct link to docker.html pages without the .html part. You could theoretically modify the links with a hook, however some plugins could rely on the .html suffix for processing, so I wouldn't personally try to hack it. Therefore my recommendation is to enable the directory urls (which is the def…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@gh-repo-status-check
Comment options

Comment options

You must be logged in to vote
4 replies
@gh-repo-status-check
Comment options

@kamilkrzyskow
Comment options

@gh-repo-status-check
Comment options

@niclasheinz
Comment options

Answer selected by kamilkrzyskow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants