WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit b48b9a4

Browse files
committed
docs: fix canonical URL
1 parent 4aa753f commit b48b9a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mkdocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
site_name: Nitpick
22
site_description: Command-line tool and flake8 plugin to enforce the same settings across multiple language-independent projects
3-
site_url: https://nitpick.rtfd.io/
3+
# ReadTheDocs serves versioned docs at /latest/, /stable/, etc.
4+
# The site_url must include the version path so MkDocs generates correct canonical URLs.
5+
# Without /latest/, canonical URLs would be https://nitpick.rtfd.io/cli/ (404)
6+
# instead of https://nitpick.rtfd.io/latest/cli/ (correct).
7+
site_url: https://nitpick.rtfd.io/latest/
48
repo_url: https://github.com/andreoliwa/nitpick
59
repo_name: andreoliwa/nitpick
610
edit_uri: edit/master/docs/

0 commit comments

Comments
 (0)