Skip to content

Commit 4daeccb

Browse files
committed
make outdated notice more intrusive
1 parent 9291914 commit 4daeccb

30 files changed

+476
-923
lines changed

_getting-started/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ title: Getting Started
44
partof: getting-started
55
languages: [fr, ja, ru, uk]
66
includeTOC: true
7-
87
newcomer_resources:
98
- title: Are You Coming From Java?
109
description: What you should know to get to speed with Scala after your initial setup.

_includes/outdated-notice.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div class="inline-sticky-top inline-sticky-top-higher">
2+
<div class="wip-notice">
3+
<h4>Outdated Notice</h4>
4+
<p><a class="new-version-notice" href="{{ include.new-version }}"><i class="fa fa-info"></i><span>&nbsp;&nbsp;
5+
This page has a new version.</span></a></p>
6+
</div>
7+
</div>

_ja/scala3/contribute-to-docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: inner-page-documentation
2+
layout: singlepage-overview
33
overview-name: "Scala 3 Documentation"
44
title: Contributing to the Docs
55
language: ja

_layouts/blog-detail.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

_layouts/blog-list.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

_layouts/cheatsheet.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<div class="content-primary cheatsheet">
88
<div class="inner-box">
99
<div class="toc-context">
10+
{% if page.new-version %}
11+
{% include outdated-notice.html new-version=page.new-version %}
12+
{% endif %}
1013
{{content}}
1114
</div>
1215

_layouts/contribute.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

_layouts/documentation.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
---
3+
<!-- TODO: This is still used by `/ja/index.html`, we should revert that to use `layout: inner-page-documentation` -->
34
{% include headertop.html %} {% include headerbottom.html %}
45
{% if page.new-version %}<a class="new-version-notice" href="{{ page.new-version }}">This page has a new version.</a>{% endif %}
56

_layouts/events.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)