question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

the logo link redirect to 0.0.0.0:8000 when run mkdocs material by docker

See original GitHub issue
  1. run mkdocs material on docker in remote host:
#login to remote host
ssh 192.168.10.100
#start mkdocs-material server
sudo docker run -d --name abc -v /tmp/abc:/docs -p 5800:8000 --workdir /docs squidfunk/mkdocs-material serve -a 0.0.0.0:8000
  1. view the mkdocs via another machine:

image

Web page can be displayed normally.

  1. view the logo link tag value:

image

image

The logo button href attribute is not expected.

  1. click the logo button

When I click the button , the chrome tells me can not open this page.

image

My question is how to fix is this problem.Please help me…Thanks a lot…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dalei2019commented, Feb 15, 2020

Thank you very much , squidfunk . So I need change the deploy method. I am clear now.Thanks.

0reactions
borekbcommented, May 7, 2020

I wanted to achieve running on localhost:8000 and keeping me on localhost:8000 after clicking the home link. As per our Gitter discussion, this is currently only possibly by overriding the partial, like this:

In overrides/partials/header.html:

    <!-- Link to home -->
    <a
      href="/"
      title="{{ config.site_name }}"
      class="md-header-nav__button md-logo"
      aria-label="{{ config.site_name }}"
    >
      {% include "partials/logo.html" %}
    </a>

(I only need “/” so I removed the original, more complex expression including site_url.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing the logo and icons - Material for MkDocs
The logo can be changed to a user-provided image (any type, incl. *.png and *.svg ) located in the docs folder, or to...
Read more >
How To Install MkDocs on Linux Server and Docker - LetsCloud
The source documentation files are written in Markdown and set up with a single YAML configuration file.
Read more >
Release Notes - MkDocs
Release Notes . Upgrading . To upgrade MkDocs to the latest version, use pip: pip install -U mkdocs. You can determine...
Read more >
Image Layer Details - squidfunk/mkdocs-material:8.5.6
Wasm is a fast, light alternative to Linux containers – try it out today with the Docker+Wasm Beta. ✕.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found