X Tutup
The Wayback Machine - https://web.archive.org/web/20210120023936/https://github.com/mkdocs/mkdocs/issues/2177
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing file in sitemap #2177

Open
vbd opened this issue Sep 1, 2020 · 1 comment
Open

Missing file in sitemap #2177

vbd opened this issue Sep 1, 2020 · 1 comment

Comments

@vbd
Copy link

@vbd vbd commented Sep 1, 2020

I link to a markdown file from index.md with [test](test.md).
test.md is not listed in mkdocs.yml but exists in the docs folder.

Running mkdocs build and deploying it to my webserver, results in:

  • Content of test.md is rendered as test.html and included in search results. That's ok!
  • But test.html can't be found in sitemap.xml / sitemap.xml.gz

Any ideas? Thanks in advance.

@vbd vbd changed the title Missing files in sitemap Missing file in sitemap Sep 1, 2020
@waylan
Copy link
Member

@waylan waylan commented Oct 28, 2020

This is the intended behavior. sitemap.xml replicates the site navigation. Therefore, any files not in the navigation defined in mkdocs.yml are no listed in sitemap.xml.

That said, support for these "hidden" files was only recently added. When sitemap.xml was designed, all files were always listed in the nav. Perhaps we need to rethink sitemap.xml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup