Skip to content

Commit

Permalink
doc: tell Google that page.html is more interesting than jsirois-test…
Browse files Browse the repository at this point in the history
…/page.html

Testing Done:
http://pantsbuild.github.io/lahosken-demo/

Bugs closed: 831

Reviewed at https://rbcommons.com/s/twitter/r/1658/
  • Loading branch information
lahosken authored and lahosken committed Jan 24, 2015
1 parent cb8ad8c commit 37c60e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/python/internal_backend/sitegen/tasks/sitegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ def render_html(dst, config, soups, precomputed, template):
generated=generate_generated(config, dst),
site_toc=generate_site_toc(config, precomputed, dst),
has_page_toc=bool(precomputed.page[dst].toc),
page_path=dst,
page_toc=precomputed.page[dst].toc,
title=title,
topdots=topdots)
Expand Down
2 changes: 2 additions & 0 deletions src/python/pants/docs/docsite.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<script src="{{topdots}}s.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="{{topdots}}logo.ico">
<!-- In case this is a "test publish", tell search engines where real version lives: -->
<link rel="canonical" href="https://pantsbuild.github.io/{{page_path}}.html">
</head>

<body>
Expand Down

0 comments on commit 37c60e0

Please sign in to comment.