Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the correct way to add external url in mkdocs

Tags:

mkdocs

I tried this but didn't work, it still showing the index page, what is the correct way?

nav:
  - Home: index.md
  - 'Document': 'https://www.google.com/'
like image 862
user15826601 Avatar asked Dec 18 '25 14:12

user15826601


1 Answers

It should be automatically inferring that it is an external link, per the documentation:

Any path which is not found in the files is assumed to be an external link.

Have you tried it without the www, adding quotes around the index.md (although I'm not sure why that would work), and/or modifying your indents? Those are the only differences I can notice between yours and the example:

nav:
    - Introduction: 'index.md'
    - 'about.md'
    - 'Issue Tracker': 'https://example.com/'
like image 71
sno2 Avatar answered Dec 20 '25 07:12

sno2



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!