Skip to content

Commit

Permalink
Hidden links to the latest releases so their docs get crawled
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Apr 25, 2024
1 parent 3f88c26 commit 6cbb147
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/css/pages/_all-releases.styl
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,5 @@
margin-top: 1em
line-height: 58px;

tr.release .doclink
.doclink
display: none
4 changes: 4 additions & 0 deletions app/views/allreleases.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ <h3>Development versions</h3>

<hr/>

<!-- Hidden links to the latest releases so their documentation pages get crawled by Algolia -->
<a class="doclink" href="https://www.playframework.com/documentation/@{releases.latest3.version}/Home">Latest Play 3 release</a>
<a class="doclink" href="https://www.playframework.com/documentation/@{releases.latest2.version}/Home">Latest Play 2 release</a>

<h3 id="older-versions">Previous releases</h3>
<table class="releases">
@releases.previous.groupBy(_.version.split('.').take(2).mkString(".")).toSeq.sortBy(_._1).reverse.map { group =>
Expand Down

0 comments on commit 6cbb147

Please sign in to comment.