Skip to content

sync with upstream vuepress files #326

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 12 commits into from
May 19, 2021
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
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# v3.vuejs.org
# v3.ja.vuejs.org

This site is built with [VuePress](https://vuepress.vuejs.org/). Site content is written in Markdown format located in `src`.
このサイトは [VuePress](https://vuepress.vuejs.org/) で構築されています。サイトのコンテンツは `src` ディレクトリにあるマークダウンフォーマットで書かれています。

## Writing
## 執筆する

See the [Vue Docs Writing Guide](https://v3.vuejs.org/guide/writing-guide.html) for our rules and recommendations on writing and maintaining documentation.
ドキュメントの執筆とメンテナンスに関するルールや推奨事項について、 [Vue Docs Writing Guide](https://v3.ja.vuejs.org/guide/writing-guide.html) を参照してください。

## Developing
## 開発する

1. Clone repository
1. リポジトリをクローンします

```bash
git clone [email protected]:vuejs/docs-next.git
```

2. Install dependencies
2. 依存ファイルをインストールします

```bash
yarn # or npm install
```

3. Start local development environment
3. ローカル開発環境を起動します

```bash
yarn serve # or npm run serve
```

## Deploying
## デプロイする

The site is automatically deployed when commits land in `master`, via [Netlify](https://www.netlify.com/).
サイトは `lang-ja` にコミットがあると [Netlify](https://www.netlify.com/) によって自動的にデプロイされます。
185 changes: 185 additions & 0 deletions assets/lifecycle-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions assets/scoped-slot-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions assets/slot-render-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"devDependencies": {
"@vuepress/plugin-pwa": "^1.5.4",
"node-sass": "^4.13.1",
"sass": "^1.32.0",
"sass-loader": "^8.0.2",
"shelljs": "^0.8.4",
"textlint": "^11.7.6",
Expand Down
16 changes: 13 additions & 3 deletions src/.vuepress/components/MigrationBadges.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
<script>
const validBadges = ['new', 'breaking', 'removed', 'updated']
const validBadges = {
new: 'new',
breaking: 'breaking',
removed: 'removed',
updated: 'updated'
}

export default {
props: {
badges: {
type: Array,
default: () => [],
validator(value) {
return value.every(badge => validBadges.includes(badge))
return value.every(badge => Object.keys(validBadges).includes(badge))
}
}
},
data() {
return {
validBadges
}
}
}
</script>
Expand All @@ -21,7 +31,7 @@ export default {
:class="`migration-badge is-${badgeType}`"
:key="`badge-type-${badgeType}`"
>
{{ badgeType }}
{{ validBadges[badgeType] }}
</span>
</div>
</template>
Expand Down
22 changes: 22 additions & 0 deletions src/.vuepress/components/guide/contributing/translations-data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export const labels = {
language: 'Language',
github: 'GitHub',
lastCommit: 'Last commit',
last90Days: 'Last 90 days',
loadDetails: 'Load Details',
commits: 'commits',
loading: 'Loading...'
}

// Repos are in alphabetical order by the language code
// You may need to clear your sessionStorage when adding a new item to this list
export const repos = [
{ lang: 'en-us', owner: 'vuejs', repo: 'docs-next', branch: 'master', url: 'https://v3.vuejs.org/' },
{ lang: 'fr', owner: 'demahom18', repo: 'docs-next', branch: 'master', url: 'https://vue3-fr.netlify.app' },
{ lang: 'id', owner: 'vuejs-id', repo: 'docs-next', branch: 'indonesian' },
{ lang: 'ja', owner: 'vuejs-jp', repo: 'ja.vuejs.org', branch: 'lang-ja', url: 'https://v3.ja.vuejs.org/' },
{ lang: 'ko', owner: 'vuejs-kr', repo: 'docs-next', branch: 'rootKoKr', url: 'https://v3.ko.vuejs.org/' },
{ lang: 'pt-br', owner: 'vuejs-br', repo: 'docs-next', branch: 'master', url: 'https://vuejsbr-docs-next.netlify.app/' },
{ lang: 'ru', owner: 'translation-gang', repo: 'docs-next', branch: 'master', url: 'https://v3.ru.vuejs.org/' },
{ lang: 'zh-cn', owner: 'vuejs', repo: 'docs-next-zh-cn', branch: 'master', url: 'https://v3.cn.vuejs.org/' }
]
Loading