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

robots.txt entry for print.html? #772

Closed
phansch opened this issue Aug 23, 2018 · 2 comments · Fixed by #844
Closed

robots.txt entry for print.html? #772

phansch opened this issue Aug 23, 2018 · 2 comments · Fixed by #844

Comments

@phansch
Copy link
Member

phansch commented Aug 23, 2018

I just came across a google result from the rustdoc documentation that points directly to the print.html: https://doc.rust-lang.org/rustdoc/print.html.

Would it make sense for mdbook to include a robots.txt in the generated output that prevents crawlers from indexing print.html?

@mattico mattico self-assigned this Aug 24, 2018
@mattico mattico removed their assignment Oct 12, 2018
@killercup
Copy link
Member

Yes, alternatively add <meta name="robots" content="noindex" /> to the print.html's header.

@phansch
Copy link
Member Author

phansch commented Dec 8, 2018

I didn't know that it's possible to manage robots via meta tags, nice!

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

Successfully merging a pull request may close this issue.

3 participants