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

Scaladoc: New UI design #15697

Merged
merged 180 commits into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
8530e26
Add separate styles for api and static site
pikinier20 Feb 16, 2022
3458b0a
add colors for new theme
Feb 17, 2022
53ac785
rename dark theme colors
Feb 21, 2022
35ade83
add typography and color tokens
Feb 22, 2022
25198fe
feat: add color tokens
Feb 22, 2022
197e831
remove theme file
Feb 22, 2022
3ef0014
Merge pull request #10 from pikinier20/scaladoc/new-colors-implementa…
pikinier20 Feb 22, 2022
c2aa2cb
update typography and color tokens
Feb 24, 2022
f8afafa
change typography tags to classes
Feb 26, 2022
c598152
implement badge style
Feb 26, 2022
53ef19a
Merge pull request #12 from pikinier20/scaladoc/badge-implementation
fanixus96 Feb 28, 2022
201ca01
Merge pull request #11 from pikinier20/scaladoc/typography-and-color-…
fanixus96 Feb 28, 2022
10f85cf
create proper folder structure
Mar 8, 2022
cabb7e1
Side menu html update
pikinier20 Mar 8, 2022
a5559c3
address review comments
Mar 15, 2022
4869cc9
fix navigation element padding
Mar 15, 2022
265a699
Remove API entry
pikinier20 Mar 16, 2022
76d5c00
Adjust navigation entries
pikinier20 Mar 16, 2022
57e263a
make top list element always extended
Mar 17, 2022
72eafab
Revert style of top-level entries. Fix styling issues in side menu
pikinier20 Mar 23, 2022
6a0035d
Temporarily turn off testing in CI
pikinier20 Mar 23, 2022
59d40a8
fix hover state for nested list item
Mar 27, 2022
467c14d
Merge pull request #13 from pikinier20/scaladoc/sidemenu
fanixus96 Mar 30, 2022
7eb67d0
share style between api and docs sidemenu elements, make sidemenu ele…
Apr 5, 2022
a42e120
add new arrow icons, propage nh click to anchor
Apr 6, 2022
bccf00d
Add separate styles for api and static site
pikinier20 Feb 16, 2022
fe6922d
add colors for new theme
Feb 17, 2022
48b93cc
rename dark theme colors
Feb 21, 2022
cd18d4f
implement badge style
Feb 26, 2022
903fe88
add typography and color tokens
Feb 22, 2022
7dd9b22
feat: add color tokens
Feb 22, 2022
e4b9bf4
remove theme file
Feb 22, 2022
9e12532
update typography and color tokens
Feb 24, 2022
665af6d
change typography tags to classes
Feb 26, 2022
946c710
create proper folder structure
Mar 8, 2022
e613719
Side menu html update
pikinier20 Mar 8, 2022
d17127a
address review comments
Mar 15, 2022
8a16af7
fix navigation element padding
Mar 15, 2022
8e856b6
Remove API entry
pikinier20 Mar 16, 2022
36ef95c
Adjust navigation entries
pikinier20 Mar 16, 2022
8cbb747
make top list element always extended
Mar 17, 2022
bfbe7e3
Revert style of top-level entries. Fix styling issues in side menu
pikinier20 Mar 23, 2022
6394bf9
Temporarily turn off testing in CI
pikinier20 Mar 23, 2022
092e688
fix hover state for nested list item
Mar 27, 2022
eb2fa66
add proper arrow buttons, add proper space for nh child
Apr 8, 2022
f2d858b
handle arrow pseudoclasses
Apr 8, 2022
7513e2b
Merge branch 'scaladoc/new-ui' of https://github.com/pikinier20/dotty…
Apr 8, 2022
944faf5
hide scrollbars, change focus to focus-visible
Apr 11, 2022
e45b1a8
Merge branch 'scaladoc/new-ui' into scaladoc/docs-navigation-fixes
Apr 11, 2022
bdf2338
split header elements
Mar 16, 2022
d2a8acf
add icons
Mar 27, 2022
adcd375
update theme switcher
Mar 28, 2022
28de89f
add dropdown links
Mar 31, 2022
e77c75d
prepare base header structure
Mar 31, 2022
e445f6c
handle header layout
Apr 3, 2022
3ddfeca
add search icon
Apr 3, 2022
ff7e5fa
connect search icon to searchbar, add basic styles
Apr 4, 2022
d651c16
add proper icons colors
Apr 8, 2022
f02a4d6
handle dropdownHandler function properly
Apr 12, 2022
cf46198
fix cherrypicked changes
pikinier20 Apr 12, 2022
5963991
Refactor some methods in scala-js
pikinier20 Apr 12, 2022
c9b461d
Add support for dark logo
pikinier20 Apr 12, 2022
021bfda
refactor version dropdown and text button component
Apr 13, 2022
69106c1
Merge pull request #15 from pikinier20/scaladoc/docs-navigation-fixes
fanixus96 Apr 13, 2022
65a472b
Merge branch 'scaladoc/new-ui' into scaladoc/header-component
Apr 13, 2022
49d75b1
add arrow to dropdown button
Apr 13, 2022
df20c3d
add searchbar basic style
Apr 14, 2022
19b4034
add missing hints style
Apr 19, 2022
6382877
add searchbar footer
Apr 21, 2022
2daee73
add margin-top to divider
Apr 22, 2022
8166a99
add footer component
Apr 23, 2022
426c0f4
add gitter link
Apr 26, 2022
611a3db
add button to controll sidemenu in mobile view
Apr 26, 2022
ae1e714
add floating button for mobile sidebar menu
Apr 27, 2022
b21b275
add review changes
fanixus96 Apr 28, 2022
676178e
add mobile-menu
fanixus96 Apr 29, 2022
b330a69
Merge pull request #16 from pikinier20/scaladoc/footer-component
fanixus96 Apr 30, 2022
b82421f
Merge branch 'scaladoc/new-ui' into scaladoc/header-component
fanixus96 Apr 30, 2022
32710a6
add mobile menu style
fanixus96 Apr 30, 2022
fb05307
layout fixes
fanixus96 May 4, 2022
b1eb113
Add recent queries and highlight matched signature fragments
pikinier20 May 4, 2022
acaf670
fix smaller resolution search footer, add search input to mobile menu
fanixus96 May 5, 2022
747eb8c
Repair test and reverse entries in recent searches
pikinier20 May 6, 2022
cff3390
handle mobile search
fanixus96 May 7, 2022
4c1fbeb
add design fixes
fanixus96 May 9, 2022
26e7ba0
Add inkuire icon to searchbar
pikinier20 May 9, 2022
1e350c9
add header fixes
fanixus96 May 10, 2022
c2b4d45
Merge pull request #14 from pikinier20/scaladoc/header-component
fanixus96 May 11, 2022
61d8bac
basic content layout
fanixus96 May 12, 2022
98bf4e4
add review fixes
fanixus96 May 12, 2022
9524c52
Merge pull request #17 from pikinier20/scaladoc/header-fixes
fanixus96 May 13, 2022
ce2b92e
Merge branch 'scaladoc/new-ui' into scaladoc/content-floating-menu
fanixus96 May 13, 2022
2b2396b
add table of content compoenent
fanixus96 May 13, 2022
46353b8
handle resoultion change
fanixus96 May 17, 2022
3f6e294
Merge pull request #18 from pikinier20/scaladoc/content-floating-menu
fanixus96 May 17, 2022
6b34195
add style for basic content text
fanixus96 May 18, 2022
645dbfa
add contributors component
fanixus96 May 18, 2022
6e38b9f
Merge pull request #19 from pikinier20/scaladoc/contributors-content-…
fanixus96 May 18, 2022
b09583f
Merge remote-tracking branch 'origin/main' into scaladoc/new-ui
pikinier20 May 19, 2022
b232f41
Make SocialLinks generic. Fix navigation. Add project name
pikinier20 May 19, 2022
a019b61
Merge pull request #20 from pikinier20/scaladoc/new-ui-fixes
fanixus96 May 20, 2022
3474830
add style for code snippet show-hide button
fanixus96 May 24, 2022
c8dd35b
Revert highlight.js version
pikinier20 May 24, 2022
b849736
handle snippet layout and line numbers
fanixus96 May 25, 2022
6141dfc
add style for documentableElement
fanixus96 May 27, 2022
dd3bfc3
Merge pull request #21 from pikinier20/scaladoc/code-snippet-style
fanixus96 May 27, 2022
1e01d61
Remove unnecessary assets from static site
pikinier20 May 27, 2022
5026059
proper signature colors
pikinier20 May 27, 2022
6029029
Merge pull request #22 from pikinier20/further-snippet-work
pikinier20 May 27, 2022
eef926a
add icons for api page header
fanixus96 May 27, 2022
adc7b7d
Merge branch 'scaladoc/new-ui' into scaladoc/api-page-content
fanixus96 May 27, 2022
35010e4
add style for api page header
fanixus96 May 27, 2022
a56e056
add filter buttons basic implementation
fanixus96 May 30, 2022
ef8acc3
Replace tabs with description list
fanixus96 May 30, 2022
a6d97bc
add logic to manage filters from pill
fanixus96 May 30, 2022
8354c08
add filter input
fanixus96 May 31, 2022
55e355f
add clear all filters button
fanixus96 Jun 1, 2022
ca8c06b
add style for supertypes and subtypes
fanixus96 Jun 1, 2022
b5b8aa3
fix filters position, trigger graph func when document is loaded
fanixus96 Jun 2, 2022
ddaf1a7
Refactor signature provider
pikinier20 Jun 1, 2022
39e2653
Add companion icons. Add fqname, companion badge. Style main signature
pikinier20 Jun 2, 2022
fadd51f
add radius to companion badge
pikinier20 Jun 2, 2022
7652341
Remove underline from signature. Fix companion kind name
pikinier20 Jun 2, 2022
4b1bfae
fix filtering visibility, add styles for diagram
fanixus96 Jun 3, 2022
6e8f61e
manage diagram visibility
fanixus96 Jun 3, 2022
98e7703
handle visibility of api page content
fanixus96 Jun 5, 2022
75cd627
add content fixes
fanixus96 Jun 6, 2022
5c9d8f7
font fixes. DocumentableList fix. minor css changes
pikinier20 Jun 6, 2022
5a0f70b
headers font, inline code font
pikinier20 Jun 6, 2022
f873bbd
searchbar font
pikinier20 Jun 6, 2022
af059e1
fix snippet rendering
pikinier20 Jun 6, 2022
0ff085f
fix badge style
fanixus96 Jun 7, 2022
40db391
handle supertypes and subtypes children visiblity
fanixus96 Jun 7, 2022
267a535
graph style
pikinier20 Jun 7, 2022
747f160
fix custom groups expansion
pikinier20 Jun 7, 2022
f87fef3
UX review
pikinier20 Jun 8, 2022
167586b
fix rwd breakpoints
fanixus96 Jun 14, 2022
9718ef8
handle content issues
fanixus96 Jun 15, 2022
276563e
fix api page content width
fanixus96 Jun 20, 2022
1a84069
Disable expansion of empty member sections
pikinier20 Jun 21, 2022
07c1e8d
css fixes
pikinier20 Jun 21, 2022
8f0a124
Bundle CSSes
pikinier20 Jun 24, 2022
e0be42b
Merge pull request #23 from pikinier20/scaladoc/api-page-content
pikinier20 Jun 27, 2022
80b21dd
Fix wrong relative path to resource
pikinier20 Jun 28, 2022
8228388
Merge pull request #25 from pikinier20/scaladoc/new-ui-fixes2
pikinier20 Jun 29, 2022
13e5024
Merge remote-tracking branch 'origin/main' into scaladoc/new-ui
pikinier20 Jun 29, 2022
989049f
Fix z-index for filters
pikinier20 Jun 29, 2022
6a24181
Repair tests
pikinier20 Jun 29, 2022
d9cfbf1
Re-enable tests in CI
pikinier20 Jun 29, 2022
937f507
Fix margin in types lists
pikinier20 Jun 29, 2022
d75c77f
Merge pull request #26 from pikinier20/scaladoc/new-ui-fixes3
pikinier20 Jul 1, 2022
4aba96a
Implement quick links setting
pikinier20 Jul 1, 2022
d77d29b
Merge pull request #27 from pikinier20/scaladoc/quick-links
fanixus96 Jul 5, 2022
c60b5a3
change color of grey-12 color token, fix header margins, change order…
fanixus96 Jul 5, 2022
fd84b31
add missing code prop background, remove link border from toc, add pr…
fanixus96 Jul 5, 2022
ed27362
add margin under divider, remove border-bottom from contributors anchors
fanixus96 Jul 6, 2022
95e35bb
check if toc exists on floating button click function
fanixus96 Jul 7, 2022
e82d4b5
add missing project name to mobile menu
fanixus96 Jul 7, 2022
6f754b1
Start line indexing from 1
pikinier20 Jul 7, 2022
6f58814
Style scrollbar in snippets
pikinier20 Jul 7, 2022
cfc4f72
reorganize contributors css. add edit on github button below
pikinier20 Jul 7, 2022
293cd13
style first paragraph in content
pikinier20 Jul 7, 2022
36f4fb7
add missing headers. fix tabs
pikinier20 Jul 7, 2022
b37a429
fix tests
pikinier20 Jul 7, 2022
74895f0
change default filters behavior
pikinier20 Jul 7, 2022
b82068d
add animation on content width change
fanixus96 Jul 8, 2022
dec3b22
Merge branch 'scaladoc/review-fixes' of https://github.com/pikinier20…
fanixus96 Jul 8, 2022
63ca286
fix tablet layout
fanixus96 Jul 8, 2022
dc1a242
Merge pull request #28 from pikinier20/scaladoc/review-fixes
pikinier20 Jul 8, 2022
3be1eac
Add Run button with scastie popup
pikinier20 Jul 13, 2022
a9d3a96
Add error tooltips to snippets
pikinier20 Jul 14, 2022
a688472
Merge pull request #29 from pikinier20/scaladoc/new-ui-scastie
pikinier20 Jul 18, 2022
26036ba
Disable ligatures in CSS
pikinier20 Jul 27, 2022
7cb6785
Implement concise view switch in API members
pikinier20 Jul 27, 2022
3aee76d
Remove console log
pikinier20 Jul 27, 2022
a05dd9d
fix the position of element with id attribute after link click, fix m…
fanixus96 Jul 29, 2022
ca1bd9c
Repair anchor bug. Fix brief colors.
pikinier20 Aug 1, 2022
01f0c3e
use base spacings in switch
pikinier20 Aug 1, 2022
93c1c08
Fix bugs with attributes display
pikinier20 Aug 4, 2022
4e9f2de
Merge pull request #30 from pikinier20/scaladoc/concise-view
pikinier20 Aug 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion docs/_assets/css/bootstrap.min.css

This file was deleted.

12 changes: 6 additions & 6 deletions docs/_assets/css/color-brewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Ported by Fabrício Tavares de Oliveira

*/

.hljs {
/* .hljs {
background: transparent;
}

.hljs,
.hljs-subst {
color: #000;
}
} */

/*.hljs-string,
.hljs-meta,
Expand All @@ -24,7 +24,7 @@ Ported by Fabrício Tavares de Oliveira
color: #756bb1;
}*/

.hljs-comment,
/* .hljs-comment,
.hljs-quote {
color: #636363;
}
Expand All @@ -40,7 +40,7 @@ Ported by Fabrício Tavares de Oliveira
.hljs-deletion,
.hljs-variable {
color: #88f;
}
} */

/*.hljs-keyword,
.hljs-selector-tag,
Expand All @@ -57,10 +57,10 @@ Ported by Fabrício Tavares de Oliveira
color: #3182bd;
}*/

.hljs-emphasis {
/* .hljs-emphasis {
font-style: italic;
}

.hljs-attribute {
color: #e6550d;
}
} */
20 changes: 5 additions & 15 deletions docs/_assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/_assets/images/logo_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions docs/_assets/js/bootstrap.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/_assets/js/highlight.pack.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/_assets/js/jquery.min.js

This file was deleted.

8 changes: 0 additions & 8 deletions docs/_layouts/base.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
---
extraCSS:
- css/bootstrap.min.css
- css/dottydoc.css
- css/color-brewer.css
extraJS:
- js/jquery.min.js
- js/bootstrap.min.js
---
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.min.css">


{{ content }}
13 changes: 5 additions & 8 deletions docs/_layouts/doc-page.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
---
layout: static-site-main
---

<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>
<a class="text-button with-link body-small" href="{{ urls.editSource }}">
Edit this page on GitHub
</a>
{% endif %}
<h1 class="h600">{{ page.title }}</h1>
</header>
{{ content }}
</main>

5 changes: 2 additions & 3 deletions docs/_layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
extraCSS:
- css/content-contributors.css
---
<div id="content-wrapper">
{{ content }}
</div>

<div id="content-wrapper">{{ content }}</div>
86 changes: 42 additions & 44 deletions docs/_layouts/static-site-main.html
Original file line number Diff line number Diff line change
@@ -1,56 +1,54 @@
---
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">Learn</a>
</li>
<li class="navigation-menu-item">
<a href="https://www.scala-lang.org/download/">Install</a>
</li>
<li class="navigation-menu-item">
<a href="https://scastie.scala-lang.org">Playground</a>
</li>
<li class="navigation-menu-item">
<a href="https://index.scala-lang.org">Find A Library</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://www.scala-lang.org/blog/">Blog</a>
</li>
</ul>
</nav>
</div>
</div>
{% if page.nightlyOf %}

<div class="site-container">
<div id="site-header"></div>
{% if page.movedTo %}
<aside class="warning">
This is a nightly documentation. The content of this page may not be consistent with the current stable version of language.
Click <a href="{{ page.nightlyOf }}">here</a> to find the stable version of this page.
This is a nightly documentation. The content of this page may not be
consistent with the current stable version of language. Click
<a href="{{ page.nightlyOf }}">here</a> to find the stable version of this
page.
</aside>
{% endif %}
{{ content }}
<nav class="arrows-wrapper" aria-label="Page navigation">
{% endif %} {{ content }}
<div class="divider" />
<nav class="arrow-navigation" aria-label="Page navigation">
{% if page.previous %}
<a rel="prev" href="{{ page.previous.url }}" class="arrows previous" aria-keyshortcuts="Left">
<span>{{ page.previous.title }}</span>
<i class="fa fa-angle-left"></i>
</a>
{% endif %}
{% if page.next %}
<a rel="next" href="{{ page.next.url }}" class="arrows next" aria-keyshortcuts="Right">
<span>{{ page.next.title }}</span>
<i class="fa fa-angle-right"></i>
</a>
<div>
<span class="body-small">Previous</span>
<a
rel="prev"
href="{{ page.previous.url }}"
aria-keyshortcuts="Left"
class="body-medium"
>
<span class="body-medium">{{ page.previous.title }}</span>
</a>
</div>
{% endif %} {% if page.next %}
<div>
<span class="body-small">Next</span>
<a
rel="next"
href="{{ page.next.url }}"
aria-keyshortcuts="Right"
class="body-medium"
>
<span class="body-medium">{{ page.next.title }}</span>
</a>
</div>
{% endif %}
</nav>
<div class="content-contributors hidden">
<span><b>Contributors to this page</b></span>
<h1 class="h200">Contributors to this page</h1>
<div id="documentation-contributors" class="contributors-container"></div>
{% if urls.editSource %}
<div class="github-edit-button">
<a class="text-button with-link body-small" href="{{ urls.editSource }}">
Edit this page on GitHub
</a>
</div>
{% endif %}
</div>
</div>
33 changes: 31 additions & 2 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,22 @@ object Build {
)
}

def bundleCSS = Def.task {
val unmanagedResources = (Compile / resourceDirectory).value
def createBundle(dir: File): Seq[File] = {
val (dirs, files) = IO.listFiles(dir).toList.partition(_.isDirectory)
val targetDir = (Compile / resourceManaged).value.toPath.resolve(unmanagedResources.toPath.relativize(dir.toPath)).toFile
val bundleFile = targetDir / "bundle.css"
if (bundleFile.exists) bundleFile.delete()
files.foreach(file => IO.append(bundleFile, IO.readBytes(file)))
bundleFile :: dirs.flatMap(createBundle)
}

val cssThemePath = unmanagedResources / "dotty_res" / "styles" / "theme"

createBundle(cssThemePath)
}

val SourceLinksIntegrationTest = config("sourceLinksIntegrationTest") extend Test

lazy val scaladoc = project.in(file("scaladoc")).
Expand All @@ -1331,7 +1347,10 @@ object Build {
SourceLinksIntegrationTest / test:= ((SourceLinksIntegrationTest / test) dependsOn generateScalaDocumentation.toTask("")).value,
).
settings(
Compile / resourceGenerators += generateStaticAssetsTask.taskValue,
Compile / resourceGenerators ++= Seq(
generateStaticAssetsTask.taskValue,
bundleCSS.taskValue
),
libraryDependencies ++= Dependencies.flexmarkDeps ++ Seq(
"nl.big-o" % "liqp" % "0.8.2",
"org.jsoup" % "jsoup" % "1.14.3", // Needed to process .html files for static site
Expand Down Expand Up @@ -1818,7 +1837,17 @@ object ScaladocConfigs {
projectFooter,
defaultTemplate,
Author(true),
Groups(true)
Groups(true),
QuickLinks(
List(
"Download::https://www.scala-lang.org/download/",
"Documentation::https://docs.scala-lang.org/",
"Libraries::https://index.scala-lang.org",
"Contribute::https://www.scala-lang.org/contribute/",
"Blog::https://www.scala-lang.org/blog/",
"Community::https://www.scala-lang.org/community/"
)
)
)
}

Expand Down
4 changes: 4 additions & 0 deletions project/ScaladocGeneration.scala
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ object ScaladocGeneration {
def key: String = "-usejavacp"
}

case class QuickLinks(value: List[String]) extends Arg[List[String]] {
def key: String = "-quick-links"
}

import _root_.scala.reflect._

trait GenerationConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: main
---

<div class="container">
<div id="site-header">
<div class="wrap">
Expand Down Expand Up @@ -31,20 +32,29 @@
{{ content }}
<nav class="arrows-wrapper" aria-label="Page navigation">
{% if page.previous %}
<a rel="prev" href="{{ page.previous.url }}" class="arrows previous" aria-keyshortcuts="Left">
<span>{{ page.previous.title }}</span>
<i class="fa fa-angle-left"></i>
<a
rel="prev"
href="{{ page.previous.url }}"
class="arrows previous"
aria-keyshortcuts="Left"
>
<span>{{ page.previous.title }}</span>
<i class="fa fa-angle-left"></i>
</a>
{% endif %}
{% if page.next %}
<a rel="next" href="{{ page.next.url }}" class="arrows next" aria-keyshortcuts="Right">
<span>{{ page.next.title }}</span>
<i class="fa fa-angle-right"></i>
{% endif %} {% if page.next %}
<a
rel="next"
href="{{ page.next.url }}"
class="arrows next"
aria-keyshortcuts="Right"
>
<span>{{ page.next.title }}</span>
<i class="fa fa-angle-right"></i>
</a>
{% endif %}
</nav>
<div class="content-contributors hidden">
<span><b>Contributors to this page</b></span>
<h1 class="h200">Contributors to this page</h1>
<div id="documentation-contributors" class="contributors-container"></div>
</div>
</div>
1 change: 1 addition & 0 deletions project/scripts/cmdScaladocTests
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ dist/target/pack/bin/scaladoc \
-project-footer "Copyright (c) 2002-2022, LAMP/EPFL" \
-default-template static-site-main \
-author -groups -revision main -project-version "${DOTTY_BOOTSTRAPPED_VERSION}" \
"-quick-links:Download::https://www.scala-lang.org/download/,Documentation::https://docs.scala-lang.org/,Libraries::https://index.scala-lang.org,Contribute::https://www.scala-lang.org/contribute/,Blog::https://www.scala-lang.org/blog/,Community::https://www.scala-lang.org/community/" \
out/bootstrap/scaladoc-testcases/scala-"${DOTTY_NONBOOTSTRAPPED_VERSION}"/classes > "$tmp" 2>&1 || echo "generated testcases project with scripts"
diff -rq "$OUT1" "scaladoc/output/testcases"
16 changes: 8 additions & 8 deletions scaladoc-js/common/css/code-snippets.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/* Snippets */

.snippet {
/* .snippet {
position: relative;
background: var(--code-bg);
margin: 1em 0px;
border-radius: 2px;
box-shadow: 0 0 2px #888;
cursor: default;
}
.snippet-error {
} */
/* .snippet-error {
border-bottom: 2px dotted red;
}
.snippet-warn {
Expand All @@ -19,17 +19,17 @@
}
.snippet-debug {
border-bottom: 2px dotted pink;
}
} */

.snippet .snippet-meta {
/* .snippet .snippet-meta {
border-top: 2px solid var(--inactive-bg);
color: var(--inactive-fg);
margin-top: 10px;
padding-top: 10px;
font-size: 0.75em;
}
} */

.snippet-meta .snippet-label {
/* .snippet-meta .snippet-label {
font-weight: bold;
}

Expand Down Expand Up @@ -319,4 +319,4 @@ input:checked + .slider:before {
--slider-width: 24px;
--slider-height: 10px;
}
}
} */
Loading