Skip to content

Commit 37598d1

Browse files
committed
cleanup
1 parent 8f3246f commit 37598d1

6 files changed

Lines changed: 24 additions & 25 deletions

File tree

modules/config/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ for(let repo in repos) {
7070
config.tutorialRepo = {
7171
github: repo,
7272
branch: repos[repo].branch || 'master',
73-
url: new URL('https://github.com/' + repo + '/tree/' + (repos[repo].branch || 'master'))
73+
tree: new URL('https://github.com/' + repo + '/tree/' + (repos[repo].branch || 'master')),
74+
blob: new URL('https://github.com/' + repo + '/blob/' + (repos[repo].branch || 'master'))
7475
}
7576
}
7677
}

modules/frontpage/locales/en.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
modern_javascript_tutorial: "The Modern Javascript Tutorial"
2-
subtitle: "From the basics to advanced topics, using simple, but detailed explanations."
3-
part: "Part #{num}"
4-
more: "More…"
5-
6-
part3:
7-
title: "Additional articles"
8-
content: "List of extra topics that are not covered by first two parts of tutorial. There is no clear hierarchy here, you can access articles in the order you want."
1+
view_github: "view on Github"
2+
search_placeholder: "Search in the tutorial"
3+
search_button: "Search"
4+
share_text: "Share"

modules/frontpage/locales/ja.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
view_github: "смотреть на Github"
2+
search_placeholder: "Поиск по учебнику"
3+
search_button: "Найти"
4+
share_text: "Поделиться"
5+
6+
17
modern_javascript_tutorial: "現代の Javascript チュートリアル"
28
subtitle: "基本から高度なテーマまで、シンプルで詳細な説明をします。"
39
part: "パート #{num}"
410
more: "もっと…"
511

612
part3:
713
title: "その他の記事"
8-
content: "チュートリアルの最初の2つの部分でカバーされていない追加のトピックのリストです。 ここには明確な階層はなく、必要な順序で記事にアクセスできます。"
14+
content: "チュートリアルの最初の2つの部分でカバーされていない追加のトピックのリストです。 ここには明確な階層はなく、必要な順序で記事にアクセスできます。"

modules/frontpage/locales/ru.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
modern_javascript_tutorial: "Современный учебник Javascript"
2-
subtitle: "Перед вами учебник по JavaScript, начиная с основ, включающий в себя много тонкостей и фишек JavaScript/DOM."
3-
part: "Часть #{num}"
4-
more: "Далее…"
1+
view_github: "смотреть на Github"
2+
search_placeholder: "Поиск по учебнику"
3+
search_button: "Найти"
4+
share_text: "Поделиться"
55

6-
7-
part3:
8-
title: "Additional articles"
9-
content: "List of extra topics that are not covered by first two parts of tutorial. There is no clear hierarchy here, you can access articles in the order you want."

modules/frontpage/templates/blocks/_frontpage-content/index.pug

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ mixin frontpage-content(data)
1414
+e.title
1515
+e('a').link(href=subTopic.getUrl())= subTopic.title
1616
if (topic.children.length > 6)
17-
+e('li').more= t('frontpage.more')
17+
+e('li').more= t('tutorial.more')
1818

1919
+b.frontpage-content
2020
+e.container
2121
- let folder = tutorialTree.bySlug('js')
2222
+e.inner
23-
+e.part= t('frontpage.part', {num: 1})
23+
+e.part= t('tutorial.part', {num: 1})
2424
+e.title= folder.title
2525
+e.description!= topArticlesRendered.js.content
2626
+b.list
@@ -29,7 +29,7 @@ mixin frontpage-content(data)
2929
+e.container
3030
- let folder = tutorialTree.bySlug('ui')
3131
+e.inner
32-
+e.part= t('frontpage.part', {num: 2})
32+
+e.part= t('tutorial.part', {num: 2})
3333
+e.title= folder.title
3434
+e.description!= topArticlesRendered.ui.content
3535
+b.list
@@ -38,9 +38,9 @@ mixin frontpage-content(data)
3838

3939
+e.container
4040
+e.inner
41-
+e.part= t('frontpage.part', {num: 3})
42-
+e.title= t('frontpage.part3.title')
43-
+e.description!= t('frontpage.part3.content')
41+
+e.part= t('tutorial.part', {num: 3})
42+
+e.title= t('tutorial.part3.title')
43+
+e.description!= t('tutorial.part3.content')
4444
+b.list
4545
+partList(tutorialTree.tree.slice(2))
4646

modules/frontpage/templates/frontpage.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extends /layouts/main
33
include blocks/_frontpage-content
44

55
block append variables
6-
- var headTitle = t('frontpage.modern_javascript_tutorial');
6+
- var headTitle = t('tutorial.modern_javascript_tutorial');
77
- var title = false
88
- var header = false
99
- var layout_main_class = 'main_width-limit-wide'

0 commit comments

Comments
 (0)