-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scaladoc features parity with old scaladoc/docs.scala-lang (#13954)
* POC * Walk in order and collect previous/next * Add `Edit on Github` button and `Contriubuted` sections * Polish gathering the contributors. CSSes fixes. * Fix tooltipping snippets * Fix handling relative links for static site * Add redirects mechanism for scaladoc * Fix leftover * Fix tests * Fix gathering index html for sections without explicit index * Apply requested changes to scaladoc * Decouple Scala.js jses. Move contributors to be independent asset/ * Add support for multiple redirects * Apply requested changes. Add static site for testcases. Fix minor bugs in scaladoc. * Fix tests
- Loading branch information
1 parent
51828cc
commit f6b6e50
Showing
65 changed files
with
718 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
--- | ||
layout: main | ||
layout: static-site-main | ||
--- | ||
<main class="container"> | ||
<header> | ||
<h1>{{ page.title }}</h1> | ||
</header> | ||
{{ content }} | ||
<main> | ||
<header> | ||
<h1>{{ page.title }}</h1> | ||
{% if urls.editSource %} | ||
<div class="byline"> | ||
<a href="{{ urls.editSource }}"> | ||
<i class="far fa-edit"></i> | ||
Edit this page on GitHub | ||
</a> | ||
</div> | ||
{% endif %} | ||
</header> | ||
{{ content }} | ||
<div class="content-contributors hidden"> | ||
<h5>Contributors to this page:</h5> | ||
<div id="documentation-contributors" class="contributors-container"></div> | ||
</div> | ||
</main> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
hasFrame: false | ||
--- | ||
<!DOCTYPE html> | ||
<html lang="en-US"> | ||
<meta charset="utf-8"> | ||
<title>Redirecting…</title> | ||
<link rel="canonical" href="{{ redirectTo }}"> | ||
<script>location="{{ redirectTo }}"</script> | ||
<meta http-equiv="refresh" content="0; url={{ redirectTo }}"> | ||
<meta name="robots" content="noindex"> | ||
<h1>Redirecting…</h1> | ||
<a href="{{ redirectTo }}">Click here if you were not redirected.</a> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
layout: main | ||
--- | ||
<div class="container"> | ||
<div id="site-header"> | ||
<div class="wrap"> | ||
<nav class="navigation" role="menu"> | ||
<ul class="navigation-menu"> | ||
<li class="navigation-menu-item"> | ||
<a href="https://docs.scala-lang.org/" class="active">Documentation</a> | ||
</li> | ||
<li class="navigation-menu-item"> | ||
<a href="https://www.scala-lang.org/download/">Download</a> | ||
</li> | ||
<li class="navigation-menu-item"> | ||
<a href="https://www.scala-lang.org/community/">Community</a> | ||
</li> | ||
<li class="navigation-menu-item"> | ||
<a href="https://index.scala-lang.org">Libraries</a> | ||
</li> | ||
<li class="navigation-menu-item"> | ||
<a href="https://www.scala-lang.org/contribute/">Contribute</a> | ||
</li> | ||
<li class="navigation-menu-item"> | ||
<a href="https://www.scala-lang.org/blog/">Blog</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> | ||
{% if page.movedTo %} | ||
<aside class="warning"> | ||
The content of this page is outdated. Click <a href="{{ page.movedTo }}">here</a> to find the up to date version of this page. | ||
</aside> | ||
{% endif %} | ||
{{ content }} | ||
<nav class="arrows-wrapper" aria-label="Page navigation"> | ||
{% if page.previous %} | ||
<a rel="prev" href="{{ page.previous }}" class="arrows previous" aria-keyshortcuts="Left"> | ||
<i class="fa fa-angle-left"></i> | ||
</a> | ||
{% endif %} | ||
{% if page.next %} | ||
<a rel="next" href="{{ page.next }}" class="arrows next" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
{% endif %} | ||
</nav> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
layout: main | ||
layout: static-site-main | ||
title: Blog | ||
--- | ||
<main class="container"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.