Skip to content

Commit 436ac13

Browse files
authored
Merge pull request #35 from yamanoku/init-jp-docs
settings: ja locale config
2 parents 245f06d + e3e9291 commit 436ac13

29 files changed

+815
-13
lines changed

src/.vuepress/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ module.exports = {
1212
postcss: require('./config/postcss'),
1313
locales: {
1414
'/': require('./config/languages/en/localeConfig'),
15-
'/pt/': require('./config/languages/pt/localeConfig')
15+
'/pt/': require('./config/languages/pt/localeConfig'),
16+
'/jp/': require('./config/languages/jp/localeConfig')
1617
},
1718
themeConfig: require('./config/themeConfig'),
1819
markdown: {

src/.vuepress/config/languages/jp/blog.js

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
1-
const posts = {}
1+
const posts = {
2+
id: 'jpPost',
3+
title: 'すべての投稿',
4+
layout: 'Posts',
5+
itemLayout: 'Post',
6+
dirname: 'jp/posts',
7+
path: '/jp/posts/',
8+
itemPermalink: '/posts/:slug',
9+
frontmatter: {
10+
meta: [
11+
{
12+
name: 'description',
13+
content: 'Vue.js 開発を中心としたアクセシビリティに関するコミュニティの投稿'
14+
}
15+
]
16+
},
17+
pagination: {
18+
layout: 'Posts',
19+
prevText: '<<',
20+
nextText: '>>',
21+
getPaginationPageTitle (pageNumber) {
22+
return `すべての投稿 - ${pageNumber}ページ目`
23+
}
24+
}
25+
}
226

3-
const categories = {}
27+
const categories = {
28+
id: 'categories',
29+
keys: ['category', 'categories'],
30+
title: 'カテゴリ',
31+
scopeLayout: 'Posts',
32+
path: '/jp/category/',
33+
pagination: {
34+
layout: 'Posts',
35+
getPaginationPageTitle (pageNumber, key) {
36+
return `カテゴリ: ${key} - ${pageNumber}ページ目`
37+
}
38+
}
39+
}
440

541
module.exports = {
642
posts,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
lang: 'ja',
33
title: 'Vue A11y',
4-
description: ''
4+
description: 'Web アクセシビリティ向上のための Vue.js コミュニティの取り組み'
55
}
Lines changed: 94 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,96 @@
11
module.exports = {
2-
project: [],
3-
posts: [],
4-
recipes: []
2+
project: [
3+
{
4+
title: 'プロジェクト',
5+
children: [
6+
'',
7+
['ロードマップ', 'https://github.com/vue-a11y/vue-a11y.com/projects/2'],
8+
['参加者', 'people'],
9+
['コントリビュート', 'how-to-contribute'],
10+
]
11+
},
12+
{
13+
title: 'アクセシビリティ',
14+
children: [
15+
['リソース', 'resources'],
16+
['Vue A11Y チェックリスト', 'vue-a11y-checklist'],
17+
]
18+
},
19+
{
20+
title: 'コミュニティ',
21+
children: [
22+
['パッケージ', 'https://github.com/vue-a11y/awesome-a11y-vue#components-and-plugins'],
23+
['UI プロジェクト', 'https://github.com/vue-a11y/awesome-a11y-vue#accessible-libraries'],
24+
['Awesome', 'https://github.com/vue-a11y/awesome-a11y-vue']
25+
]
26+
}
27+
],
28+
29+
posts: [
30+
{
31+
title: 'カテゴリ',
32+
type: 'manual',
33+
children: [
34+
['ニュース', '/jp/category/news/'],
35+
['HTML', '/jp/category/html/'],
36+
['ARIA', '/jp/category/aria/'],
37+
['WCAG', '/jp/category/wcag/'],
38+
['ツール', '/jp/category/tools/'],
39+
['パッケージ', '/jp/category/packages/'],
40+
['Single Page App', '/jp/category/spa/']
41+
]
42+
},
43+
// SOON
44+
// {
45+
// title: '24 Vue A11y',
46+
// type: 'manual',
47+
// children: [
48+
// ['2020', '/category/24-vue-a11y-2020/']
49+
// ]
50+
// },
51+
{
52+
title: 'Twitter でフォローする',
53+
children: [
54+
['Sarah Drasner', 'https://twitter.com/sarah_edo'],
55+
['Maria Lamardo', 'https://twitter.com/MariaLamardo'],
56+
['Alan Ktquez', 'https://twitter.com/ktquez'],
57+
['Jinjiang', 'https://twitter.com/zhaojinjiang'],
58+
['Marcus Herrmann', 'https://twitter.com/_marcusherrmann'],
59+
['Austin Gil', 'https://twitter.com/Stegosource'],
60+
['Callum Macrae', 'https://twitter.com/callumacrae'],
61+
['Kevin Deisz', 'https://twitter.com/kddeisz'],
62+
['Victoria Bergquist', 'https://twitter.com/vicbergquist']
63+
]
64+
}
65+
],
66+
67+
recipes: [
68+
{
69+
title: 'レシピ',
70+
children: [
71+
''
72+
]
73+
},
74+
{
75+
title: 'ウィジェット',
76+
children: [
77+
['アコーディオン', 'widgets/accordion'],
78+
['アラート', 'widgets/alert'],
79+
['パンくず', 'widgets/breadcrumbs'],
80+
['カード', 'widgets/card'],
81+
['カルーセル', 'widgets/carousel'],
82+
['ダイアログ', 'widgets/dialog'],
83+
['モバイルナビゲーション', 'widgets/mobile-navigation'],
84+
['スキップリンク', 'widgets/skip-links'],
85+
['タブ', 'widgets/tabs'],
86+
['トースト', 'widgets/toast']
87+
]
88+
},
89+
{
90+
title: 'ヒント',
91+
children: [
92+
['Vue における ARIA 属性', 'tips/aria-attributes-in-vue']
93+
]
94+
}
95+
]
596
}
Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,83 @@
1+
const sidebar = require('./sidebarStructure')
2+
13
module.exports = {
2-
enabled: false,
4+
enabled: true,
35
label: '日本語',
4-
nav: []
6+
editLinkText: 'GitHub で編集する',
7+
lastUpdatedText: '最終更新',
8+
backToTopText: 'ページトップに戻る',
9+
backToText: '戻る',
10+
shareLinksText: 'シェア',
11+
externalLinkText: '新しいタブで開く',
12+
skipTo: {
13+
label: 'コンテンツにスキップする',
14+
to: '#main'
15+
},
16+
newsletter: {
17+
title: 'ニュースレターを購読する',
18+
label: 'Eメールアドレス',
19+
description: 'メールアドレスを入力すると、記事、ビデオ、アップデート、イベントの情報を Vue.js アクセシビリティコミュニティから受け取ることができます。',
20+
textButton: '購読する'
21+
},
22+
toc: {
23+
title: '目次'
24+
},
25+
nav: [
26+
{
27+
text: 'プロジェクト',
28+
link: '/jp/project/'
29+
},
30+
{
31+
text: '投稿',
32+
link: '/jp/posts/'
33+
},
34+
{
35+
text: 'レシピ',
36+
link: '/jp/recipes/'
37+
},
38+
{
39+
text: '設定',
40+
link: '/jp/settings/'
41+
}
42+
],
43+
sidebar: {
44+
'/jp/project/': sidebar.project,
45+
'/jp/posts/': sidebar.posts,
46+
'/jp/category/': '/jp/posts/',
47+
'/jp/recipes/': sidebar.recipes
48+
},
49+
a11y: {
50+
codeSnippet: {
51+
copy: {
52+
text: 'クリップボードにコピーしました',
53+
ariaLabel: 'コードスニペットをクリップボードにコピー',
54+
textCopied: 'コードをコピーしました!'
55+
},
56+
skip: {
57+
text: 'スキップ',
58+
ariaLabel: 'スニペットコードをスキップ'
59+
}
60+
},
61+
labels: {
62+
menuButton: {
63+
open: 'サブナビゲーションを開く',
64+
close: 'サブナビゲーションを閉じる'
65+
}
66+
},
67+
settings: {
68+
theme: {
69+
altText: 'ブラウザテーマのイラスト'
70+
}
71+
},
72+
landmarks: {
73+
nav: {
74+
main: 'メインナビゲーション',
75+
secondary: 'サブナビゲーション'
76+
},
77+
post: {
78+
summary: 'Summary',
79+
content: 'Content post'
80+
}
81+
}
82+
}
583
}

src/.vuepress/config/plugins.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ const resolve = pathName => path.join(__dirname, pathName)
33

44
const blogConfig = {
55
en: require('./languages/en/blog'),
6-
pt: require('./languages/pt/blog')
6+
pt: require('./languages/pt/blog'),
7+
jp: require('./languages/jp/blog'),
78
}
89

910
const customBlock = {
@@ -45,11 +46,13 @@ module.exports = [
4546
},
4647
directories: [
4748
blogConfig.en.posts,
48-
blogConfig.pt.posts
49+
blogConfig.pt.posts,
50+
blogConfig.jp.posts
4951
],
5052
frontmatters: [
5153
blogConfig.en.categories,
52-
blogConfig.pt.categories
54+
blogConfig.pt.categories,
55+
blogConfig.jp.categories
5356
]
5457
}
5558
],

src/.vuepress/config/themeConfig.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ module.exports = {
4848
authors: require('./authors'),
4949
locales: {
5050
'/': require('./languages/en/themeLocaleConfig'),
51-
'/pt/': require('./languages/pt/themeLocaleConfig')
51+
'/pt/': require('./languages/pt/themeLocaleConfig'),
52+
'/jp/': require('./languages/jp/themeLocaleConfig'),
5253
}
5354
}

src/jp/index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
layout: Full
3+
view: Home
4+
5+
actionText: Get Started
6+
actionLink: /jp/project/
7+
8+
heroImage: /hero-accessibility.svg
9+
heroImageAlternativeText: Illustration of a visually impaired man standing and a woman in a wheelchair
10+
11+
sponsorsText: Sponsors
12+
supportersText: Supporters
13+
14+
features:
15+
- title: Examples
16+
details: Several examples of how to apply ARIA, the techniques of WCAG and the best practices in your Vue.js components.
17+
- title: Packages
18+
details: Developing and helping the most used Vue.js components to keep their components accessible.
19+
- title: A11y contents
20+
details: Useful links, articles, videos, Web accessibility events, both in the context of Vue.js and in others.
21+
22+
---

src/jp/posts/2020-09-01-post-test.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: 'Example post: The first post'
3+
description: Description test page
4+
summary: Summary test page
5+
6+
categories: [news, aria, wcag, tools, packages, spa, html]
7+
author: ktquez
8+
9+
date: 2020-09-01 16:00:00
10+
---
11+
12+
## Test post (please ignore)
13+
14+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer risus nulla, viverra a porttitor eu, euismod eget nisl. Pellentesque pharetra diam orci, id blandit metus pretium ac.
15+
16+
Suspendisse rhoncus mauris a sapien gravida, ut pulvinar urna ultrices. Aenean semper nisi vitae laoreet semper. Sed convallis massa ut commodo gravida.
17+
18+
Praesent vehicula pharetra tincidunt. Proin nec elit volutpat, lobortis dui eu, hendrerit sapien. Donec sapien quam, dictum sit amet neque eu, malesuada ultrices libero. Morbi blandit augue in turpis porttitor porta.
19+
20+
:::: fig code
21+
::: headerCode index.html
22+
```html
23+
<small>
24+
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
25+
Creative Commons Attribution Share-alike license
26+
</a>
27+
</small>
28+
```
29+
:::
30+
::: figcap
31+
Using &lt;small&gt; around a [Creative Commons license](http://creativecommons.org/choose/) link with `rel="license"`
32+
:::
33+
::::
34+
35+
Nullam aliquet quam a eros mollis, eu rhoncus magna imperdiet. Donec quis scelerisque nulla.
36+
37+
Donec auctor, neque eget imperdiet consequat, sapien massa suscipit orci, quis condimentum dolor nisl dapibus nisl.
38+
39+
:::: fig bq
40+
::: bq
41+
VuePress is composed of two parts: a minimalistic static site generator with a Vue-powered theming system and Plugin API, and a default theme optimized for writing technical documentation.
42+
:::
43+
::: figcap
44+
[W3C, HTML draft documentation 2020](https://google.com)
45+
:::
46+
::::
47+
48+
Praesent mollis ornare felis vel egestas. Ut sit amet ex imperdiet, suscipit urna vel, vestibulum ex.
49+
50+
Nam iaculis nisl at diam suscipit tincidunt. Nam sit amet magna vitae velit sodales feugiat.
51+
52+
Donec feugiat sagittis metus, non rutrum turpis. Fusce turpis dolor, feugiat sit amet interdum nec, ultrices eget metus.
53+
54+
::: alert warning
55+
This is a warning
56+
:::

0 commit comments

Comments
 (0)