Skip to content

Commit 7c7c77f

Browse files
authored
docs (#386): add mobile section (#441)
1 parent 122feb7 commit 7c7c77f

File tree

2 files changed

+76
-35
lines changed

2 files changed

+76
-35
lines changed

src/.vuepress/config.js

Lines changed: 53 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
const sidebar = {
2-
cookbook: [{
3-
title: 'Cookbook',
4-
collapsable: false,
5-
children: ['/cookbook/', '/cookbook/editable-svg-icons']
6-
}],
7-
guide: [{
2+
cookbook: [
3+
{
4+
title: 'Cookbook',
5+
collapsable: false,
6+
children: ['/cookbook/', '/cookbook/editable-svg-icons']
7+
}
8+
],
9+
guide: [
10+
{
811
title: 'Essentials',
912
collapsable: false,
1013
children: [
@@ -60,7 +63,8 @@ const sidebar = {
6063
{
6164
title: 'Advanced Guides',
6265
collapsable: false,
63-
children: [{
66+
children: [
67+
{
6468
title: 'Reactivity',
6569
children: [
6670
'/guide/reactivity',
@@ -88,7 +92,8 @@ const sidebar = {
8892
children: [
8993
'/guide/single-file-component',
9094
'/guide/testing',
91-
'/guide/typescript-support'
95+
'/guide/typescript-support',
96+
'/guide/mobile'
9297
]
9398
},
9499
{
@@ -177,21 +182,23 @@ const sidebar = {
177182
},
178183
'/api/composition-api'
179184
],
180-
examples: [{
181-
title: 'Examples',
182-
collapsable: false,
183-
children: [
184-
'/examples/markdown',
185-
'/examples/commits',
186-
'/examples/grid-component',
187-
'/examples/tree-view',
188-
'/examples/svg',
189-
'/examples/modal',
190-
'/examples/elastic-header',
191-
'/examples/select2',
192-
'/examples/todomvc'
193-
]
194-
}]
185+
examples: [
186+
{
187+
title: 'Examples',
188+
collapsable: false,
189+
children: [
190+
'/examples/markdown',
191+
'/examples/commits',
192+
'/examples/grid-component',
193+
'/examples/tree-view',
194+
'/examples/svg',
195+
'/examples/modal',
196+
'/examples/elastic-header',
197+
'/examples/select2',
198+
'/examples/todomvc'
199+
]
200+
}
201+
]
195202
}
196203

197204
module.exports = {
@@ -201,21 +208,26 @@ module.exports = {
201208
[
202209
'link',
203210
{
204-
href: 'https://fonts.googleapis.com/css?family=Inter:300,400,500,600|Open+Sans:400,600;display=swap',
211+
href:
212+
'https://fonts.googleapis.com/css?family=Inter:300,400,500,600|Open+Sans:400,600;display=swap',
205213
rel: 'stylesheet'
206214
}
207215
],
208216
[
209217
'link',
210218
{
211-
href: 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
219+
href:
220+
'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
212221
rel: 'stylesheet'
213222
}
214223
],
215-
['link', {
216-
rel: 'icon',
217-
href: '/logo.png'
218-
}],
224+
[
225+
'link',
226+
{
227+
rel: 'icon',
228+
href: '/logo.png'
229+
}
230+
],
219231
[
220232
'script',
221233
{
@@ -232,10 +244,12 @@ module.exports = {
232244
],
233245
themeConfig: {
234246
logo: '/logo.png',
235-
nav: [{
247+
nav: [
248+
{
236249
text: 'Docs',
237250
ariaLabel: 'Documentation Menu',
238-
items: [{
251+
items: [
252+
{
239253
text: 'Guide',
240254
link: '/guide/introduction'
241255
},
@@ -263,10 +277,12 @@ module.exports = {
263277
},
264278
{
265279
text: 'Ecosystem',
266-
items: [{
280+
items: [
281+
{
267282
text: 'Community',
268283
ariaLabel: 'Community Menu',
269-
items: [{
284+
items: [
285+
{
270286
text: 'Team',
271287
link: '/community/team/'
272288
},
@@ -286,7 +302,8 @@ module.exports = {
286302
},
287303
{
288304
text: 'Official Projects',
289-
items: [{
305+
items: [
306+
{
290307
text: 'Vue Router',
291308
link: 'https://next.router.vuejs.org/'
292309
},
@@ -317,7 +334,8 @@ module.exports = {
317334
{
318335
text: 'Support Vue',
319336
link: '/support-vuejs/',
320-
items: [{
337+
items: [
338+
{
321339
text: 'One-time Donations',
322340
link: '/support-vuejs/#one-time-donations'
323341
},

src/guide/mobile.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Mobile
2+
3+
## Introduction
4+
5+
While Vue.js does not natively support mobile app development, there are a number of solutions for creating native iOS and Android apps with Vue.js.
6+
7+
## Hybrid-App Development
8+
9+
### Capacitor
10+
11+
[Capacitor](https://capacitorjs.com/) is a project from the [Ionic Team](https://ionic.io/) that allows developers to build native iOS, Android, and PWA apps with a single codebase by providing an API that can be run across multiple platforms.
12+
13+
**Resources**
14+
15+
- [Capacitor + Vue.js Guide](https://capacitorjs.com/solution/vue)
16+
17+
### NativeScript
18+
19+
[NativeScript](https://www.nativescript.org) powers cross-platform (truly native) mobile apps, using the web skills you already know. Combined they are a fantastic pair for developing immersive mobile experiences.
20+
21+
**Resources**
22+
23+
- [NativeScript + Vue.js Guide](https://nativescript.org/vue/)

0 commit comments

Comments
 (0)