MkDocs does not work properly with custom URL path

9/13/2018

Currently I'm using mkdocs, version 1.0.3 from /usr/local/lib/python2.7/dist-packages/mkdocs (Python 2.7) With mkdocs-material-3.0.4 theme.

I generated a static site using command mkdocs build and trying to deploy it. All site files are generated and use relative paths to static content (for ex. js/something.js).

The problem is that I need to use it from URL https://internal.domain.com/docs/. But I can not find the configuration to specify a relative path to generate paths with prefix (for ex. docs/js/something.js).

On the server side, I'm using k8s + ingress with rewrite rule (from https://internal.domain.com/docs/ to `https://docs_service/).

Any suggestions on how to fix it?

-- Hulii Borys
kubernetes
mkdocs
url
url-rewriting

0 Answers