Skip to content

Japanese homepage uses regular layout #2637

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

Merged
merged 1 commit into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions _data/overviews-ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,30 @@
- category: 言語
description: "Scala 言語の機能をカバーするガイドと概要"
overviews:
- title: "Scala 2 から Scala 3 への移行"
icon: suitcase
root: "scala3/guides/"
url: "migration/compatibility-intro.html"
description: "Scala 3 との互換性と移行について知っておくべきことすべて"
- title: "Scala 3 マクロ"
by: Nicolas Stucki
icon: magic
root: "scala3/guides/"
url: "macros"
description: "Scala 3 のマクロの書き方に関係する全ての機能をカバーする詳しいチュートリアル"
label-text: new in Scala 3
- title: 値クラスと汎用トレイト
by: Mark Harrah
description: "値クラスは Scala で実行時のオブジェクトアロケーションを避ける新しい仕組みだ。これは新しい AnyVal サブクラスを定義することで達成できる。"
icon: gem
url: "core/value-classes.html"
- title: TASTyの概要
by: Alvin Alexander
icon: birthday-cake
root: "scala3/guides/"
url: "tasty-overview.html"
description: "Scala のエンドユーザー向けの TASTy のフォーマットの概要"
label-text: new in Scala 3
- title: 文字列補間
icon: dollar-sign
url: "core/string-interpolation.html"
Expand All @@ -70,11 +94,6 @@
by: Josh Suereth
description: "Scala 2.10 は暗黙クラス(implicit class)と呼ばれる新しい機能を導入した。暗黙クラスは implicit キーワードでマークされたクラスだ。このキーワードはそのクラスがスコープ内にあるとき、そのプライマリコンストラクターが暗黙変換に利用可能にする。"
url: "core/implicit-classes.html"
- title: 値クラスと汎用トレイト
by: Mark Harrah
description: "値クラスは Scala で実行時のオブジェクトアロケーションを避ける新しい仕組みだ。これは新しい AnyVal サブクラスを定義することで達成できる。"
icon: gem
url: "core/value-classes.html"

- category: ライブラリの作成
description: "Scala エコシステム向けのオープンソースライブラリの貢献方法のガイド"
Expand Down
91 changes: 45 additions & 46 deletions _ja/index.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,14 @@
---
layout: landing-page-deprecated
title: ドキュメント
layout: landing-page
title: Learn Scala
language: ja
partof: documentation
more-resources-label: その他のリソース


# Content masthead links

scala3-sections:
- title: "First steps"
links:
- title: "Scala 3 の新機能"
description: "Scala 3 で追加されたさまざまな新機能の概要"
icon: "fa fa-star"
link: /ja/scala3/new-in-scala3.html
- title: "Scala 3 をはじめる"
description: "あなたのコンピューターに Scala 3 をインストールしてScalaコードを書きはじめよう!"
icon: "fa fa-rocket"
link: /ja/scala3/getting-started.html
- title: "Scala 3 Book"
description: "主要な言語仕様のイントロダクションをオンラインブックで読む"
icon: "fa fa-book"
link: /scala3/book/introduction.html
- title: "More detailed information"
links:
- title: "Migration Guide"
description: "Scala 2 から Scala 3 へ移行するためのガイド"
icon: "fa fa-suitcase"
link: /scala3/guides/migration/compatibility-intro.html
- title: "Guides"
description: "Scala 3 の言語仕様からピックアップして解説"
icon: "fa fa-map"
link: /ja/scala3/guides.html
- title: "API"
description: "Scala 3 の全バージョンのAPIドキュメント"
icon: "fa fa-file-alt"
link: https://scala-lang.org/api/3.x/
- title: "Language Reference"
description: "Scala 3 の言語仕様"
icon: "fa fa-book"
link: https://docs.scala-lang.org/scala3/reference

scala2-sections:

sections:
- title: "最初のステップ"
links:
- title: "入門"
Expand All @@ -54,15 +19,22 @@ scala2-sections:
description: "コア言語機能をひと口大で紹介"
icon: "fa fa-flag"
link: /ja/tour/tour-of-scala.html
- title: "Java プログラマーのための Scala"
description: "Java 経験者向けのすばやい紹介"
icon: "fa fa-coffee"
link: /ja/tutorials/scala-for-java-programmers.html
more-resources:
- title: オンラインリソース(英語のみ)
url: /learn.html
- title: "Scala 3 Book"
description: "主要な言語仕様のイントロダクションをオンラインブックで読む"
icon: "fa fa-book"
link: /scala3/book/introduction.html
- title: Online Courses
description: "MOOCs to learn Scala, for beginners and experienced programmers."
icon: "fa fa-cloud"
link: /online-courses.html
- title: 書籍(英語のみ)
url: /books.html
description: "Printed and digital books about Scala."
icon: "fa fa-book"
link: /books.html
- title: Tutorials
description: "Take you by the hand through a series of steps to create Scala applications."
icon: "fa fa-tasks"
link: /tutorials.html

- title: "リピーター向け"
links:
Expand Down Expand Up @@ -91,11 +63,38 @@ scala2-sections:
description: "Scala の形式的言語仕様(英語のみ)"
icon: "fa fa-book"
link: https://scala-lang.org/files/archive/spec/2.13/
- title: "Language Reference"
description: "Scala 3 の言語仕様"
icon: "fa fa-book"
link: https://docs.scala-lang.org/scala3/reference

- title: "Explore Scala 3"
links:
- title: "Migration Guide"
description: "Scala 2 から Scala 3 へ移行するためのガイド"
icon: "fa fa-suitcase"
link: /scala3/guides/migration/compatibility-intro.html
- title: "Scala 3 の新機能"
description: "Scala 3 で追加されたさまざまな新機能の概要"
icon: "fa fa-star"
link: /ja/scala3/new-in-scala3.html
- title: "All new Scaladoc for Scala 3"
description: "Highlights of new features for Scaladoc"
icon: "fa fa-star"
link: /scala3/scaladoc.html
- title: "Talks"
description: "Talks about Scala 3 that can be watched online"
icon: "fa fa-play-circle"
link: /scala3/talks.html

- title: "Scala の進化"
links:
- title: "SIP"
description: "Scala Improvement Process(Scala 改善プロセス)。言語とコンパイラの進化(英語のみ)"
icon: "fa fa-cogs"
link: /sips/index.html
- title: "Become a Scala OSS Contributor"
description: "From start to finish: discover how you can help Scala's open-source ecosystem"
icon: "fa fa-code-branch"
link: /contribute/
---
2 changes: 2 additions & 0 deletions _ja/overviews/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ layout: overviews
partof: overviews
title: ガイドと概要
language: ja
redirect_from:
- "/ja/scala3/guides.html"
---

<!-- Auto generated from _data/overviews-ja.yml -->
38 changes: 0 additions & 38 deletions _ja/scala3/guides.md

This file was deleted.

84 changes: 0 additions & 84 deletions _layouts/landing-page-deprecated.html

This file was deleted.

64 changes: 0 additions & 64 deletions _sass/layout/documentation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,67 +74,3 @@ a.new-version-notice {
font-size: large;
text-align: center;
}

// Styles for the index of docs.scala-lang.org
.landing-page .title-page {
background: $gray-li;

h1 {
color: rgb(134,161,166);
}
}

.landing-page .table-of-content .wrap {

position: relative;

h5 {
margin: 0;
}

.language-header {
padding: 30px;
background: $brand-tertiary;

h1 {
font-size: 1.875rem;
font-family: $base-font-family;
text-transform: uppercase;
text-shadow: $text-shadow;
color: #fff;
}
}

.language-footer {
bottom: 0;
width: 100%;

.go-btn {
display: block;
padding: 20px;
height: 66px;
background: #fff;
border-top: 1px solid lighten($base-font-color-light, 35%);
color: lighten($base-font-color-light, 10%);
font-weight: $font-regular;
font-size: $font-regular;
text-decoration: none;

&:hover {
cursor: pointer;
background: #E5EAEA;
color: rgba(0, 0, 0, 0.4);
}
}
}

&:first-of-type {
margin-bottom: 20px;
}
}

.landing-page .table-of-content .wrap.scala3 {
.language-header {
background: $brand-tertiary-dotty;
}
}