Skip to content

Commit 83eb82c

Browse files
authored
Merge pull request nuxt#36 from nuxt/master
Upstream Merge
2 parents b34c360 + 5c7213a commit 83eb82c

File tree

631 files changed

+32175
-2448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

631 files changed

+32175
-2448
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
22
'extends': 'standard',
3-
'installedESLint': true,
43
'plugins': [
54
'standard',
65
'promise'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ node_modules
55
# logs
66
npm-debug.log
77
.DS_Store
8+
.vscode
9+
.idea

README.md

Lines changed: 61 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,89 @@
44
55
## Developing
66

7-
:warning: You must at least use `node >= 7` to start the server.
7+
:warning: You must at least use `node >= 8.0.0` (supports async/await) to start the server.
88

9-
Start a dev server on `localhost:4000`
9+
:warning: You must also have the main [nuxtjs.org](https://github.com/nuxt/nuxtjs.org) website repo up and running on localhost to be able to run the docs...
10+
11+
Start a dev server on `localhost:4000`:
1012

1113
```bash
1214
npm install
1315
npm run dev
1416
```
1517

18+
Then access the docs via the website running on `http://nuxt:3000` (see instructions on [nuxtjs.org](https://github.com/nuxt/nuxtjs.org) repo).
19+
1620
## On Translations
1721

1822
### Russian
1923

2024
Russian translation is maintained by Translation Gang.
21-
* Translation Repo — [/translation-gang/ru.docs.nuxtjs](https://github.com/translation-gang/ru.docs.nuxtjs)
25+
26+
* Translation Repo - [/translation-gang/ru.docs.nuxtjs](https://github.com/translation-gang/ru.docs.nuxtjs)
2227
* Primary maintainer - [Grigoriy Beziuk](https://gbezyuk.github.io)
2328
* Primary translator - [Nicholas Shachmatov](https://github.com/theOnlyBoy)
2429

2530
### Chinese
2631

2732
Chinese translation is maintained by AOTU Labs from China, Shenzhen.
28-
* Translation Repo — [/o2team/i18n-cn-nuxtjs-docs](https://github.com/o2team/i18n-cn-nuxtjs-docs)
33+
34+
* Translation Repo - [/o2team/i18n-cn-nuxtjs-docs](https://github.com/o2team/i18n-cn-nuxtjs-docs)
2935
* Primary maintainer - [AOTU Labs](https://aotu.io)
3036
* Primary translator - [Levin Wong](http://faso.me), [Edward Chu](https://github.com/chuyik)
3137

38+
### Japanese
39+
40+
Japanese translation team is using a translation tool called [GitLocalize](https://gitlocalize.com) in principle. See the following "Want to help with the translation?" section.
41+
42+
Japanese translation is maintained by INOUE Takuya.
43+
44+
* Translation Repo - [https://gitlocalize.com/repo/100/ja](https://gitlocalize.com/repo/100/ja)
45+
* Primary maintainer - [INOUE Takuya](http://blog.inouetakuya.info/)
46+
* Primary translator - [INOUE Takuya](https://github.com/inouetakuya)
47+
48+
### Korean
49+
50+
Korean translation is maintained by Taewoong La.
51+
52+
* Translation Repo - [/DiyLecko/ko.docs.nuxtjs](https://github.com/DiyLecko/ko.docs.nuxtjs)
53+
* Primary maintainer - [Taewoong La](http://blog.naver.com/diy_lecko)
54+
* Primary translator - [june](http://jicjjang.github.io), [wanybae](https://github.com/wanybae), [rellario](https://github.com/rellario)
55+
56+
### French
57+
58+
French translation is maintained by [Vuejs-FR](https://github.com/vuejs-fr/nuxt/issues/1) Team.
59+
60+
* Translation Repo - [/vuejs-fr/nuxt](https://github.com/vuejs-fr/nuxt)
61+
* Primary maintainer - [Bruno Lesieur](https://www.lesieur.name/) ([Orchard ID](https://www.orchard-id.com/))
62+
* Primary translator - [Julien Grünhagel](https://rspt.io/) ([laruche](https://laruche.io))
63+
64+
### Indonesian
65+
66+
Indonesian translation is maintained by [Nuxt.js Indonesian Community](https://github.com/nuxtjs-id) Team.
67+
68+
* Translation Repo - [https://gitlocalize.com/repo/100/id](https://gitlocalize.com/repo/100/id)
69+
* Primary maintainer - [Achan](http://achan.id/)
70+
* Primary translator - [afrianjunior](https://github.com/afrianjunior), [fikrizufri](https://github.com/fikrizufri), [huiralb](https://github.com/huiralb), [jefrydco](https://github.com/jefrydco), [muhibbudins](https://github.com/muhibbudins), [nusendra](https://github.com/nusendra), [perjakasunda](https://github.com/perjakasunda), [tapitapeh](https://github.com/tapitapeh), [wahwahid](https://github.com/wahwahid)
71+
72+
73+
3274
### Want to help with the translation?
3375

34-
If you feel okay with translating sorta alone, just fork the repo, create a "work-in-progress" pull request (mark it with [WIP], see [Russian translation](https://github.com/nuxt/docs/pull/3) if you need an example) — and just go on.
76+
[gl]: https://gitlocalize.com
77+
[gl-help]: https://docs.gitlocalize.com/
78+
[gl-issue-tracker]: https://github.com/gitlocalize/feedback
79+
[gl-repo]: https://gitlocalize.com/repo/100
80+
81+
We are using a translation tool called [GitLocalize][gl].
82+
83+
Follow these steps to get started with your contribution:
3584

36-
If you are more of a team player, maybe Translation Gang is for you? Then just let us know somehow that you're ready to join this international open-source translators community. Feel free to contact [Grigoriy Beziuk](https://gbezyuk.github.io) or anybody else from the team.
85+
1. Go to [GitLocalize's nuxt/docs repository][gl-repo].
86+
1. Sign up using your GitHub account :octocat:.
87+
1. Find the document you are going to translate.
88+
1. Happy translating :sparkles: .
89+
1. When you are done, send the translation for reviews.
90+
1. Reviewed translation will be sent as a Pull Request to GitHub by language admin in the community.
3791

38-
And thank you in advance ;)
92+
To learn more about how GitLocalize works, visit their [help page][gl-help]. If you find any issues or feature requests, please file them in [GitLocalize's issue tracker][gl-issue-tracker].

api.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,18 @@ async function getReleases () {
4040
if (process.env.GITHUB_TOKEN) {
4141
options.headers = { 'Authorization': `token ${process.env.GITHUB_TOKEN}` }
4242
}
43-
const res = await axios(options)
44-
RELEASES = res.data.filter((r) => !r.draft).map((release) => {
45-
return {
46-
name: release.name,
47-
date: release.published_at,
48-
body: marked(release.body)
49-
}
50-
})
43+
try {
44+
const res = await axios(options)
45+
RELEASES = res.data.filter((r) => !r.draft).map((release) => {
46+
return {
47+
name: release.name,
48+
date: release.published_at,
49+
body: marked(release.body)
50+
}
51+
})
52+
} catch (e) {
53+
console.error('Could not fetch nuxt.js release notes.')
54+
}
5155
// Refresh every 15 minutes
5256
setTimeout(getReleases, 15 * 60 * 1000)
5357
}
@@ -217,7 +221,7 @@ const server = micro(async function (req, res) {
217221
send(res, 200, _DOC_FILES_[path])
218222
})
219223

220-
getFiles()
224+
module.exports = getFiles()
221225
.then(() => getReleases())
222226
.then(() => {
223227
if (process.env.NODE_ENV !== 'production') {
@@ -226,4 +230,5 @@ getFiles()
226230
const port = process.env.PORT || 4000
227231
server.listen(port)
228232
console.log(`Server listening on localhost:${port}`)
233+
return server
229234
})

cn/api/configuration-build.md

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

cn/api/configuration-cache.md

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

cn/api/configuration-css.md

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

cn/api/configuration-env.md

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

cn/api/configuration-generate.md

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

cn/api/configuration-head.md

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

0 commit comments

Comments
 (0)