在 mkdocs 中添加外部 url 的正确方法是什么

what is the correct way to add external url in mkdocs

我试过了但是没有用,它仍然显示索引页,正确的方法是什么?

nav:
  - Home: index.md
  - 'Document': 'https://www.google.com/'

根据 the documentation:

,它应该自动推断它是外部 link

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

您是否尝试过不使用 www,在 index.md 周围添加引号(虽然我不确定为什么会这样),and/or 修改您的缩进?这些是您和示例之间我能注意到的唯一区别:

nav:
    - Introduction: 'index.md'
    - 'about.md'
    - 'Issue Tracker': 'https://example.com/'