Skip to content

Commit 7176004

Browse files
committed
docs: resturcture docs
1 parent ac62045 commit 7176004

27 files changed

+62
-53
lines changed

docs/.vuepress/config.js

+36-27
Original file line numberDiff line numberDiff line change
@@ -52,38 +52,47 @@ module.exports = {
5252
docsDir: 'docs',
5353
editLinks: true,
5454
sidebarDepth: 2,
55-
sidebar: {
56-
'/guide/': [
57-
'',
58-
'battery',
59-
'clipboard',
60-
'device-light',
61-
'device-motion',
62-
'device-orientation',
63-
'document-visibility',
64-
'fetch',
65-
'fullscreen',
66-
'geolocation',
67-
'intersection-observer',
68-
'local-storage',
69-
'media-query',
70-
'mouse-position',
71-
'network',
72-
'preferred-color-scheme',
73-
'preferred-languages',
74-
'script',
75-
'websocket',
76-
'scroll-position',
77-
'window-size'
78-
],
79-
'/examples/': []
80-
},
55+
sidebar: [
56+
{
57+
title: 'Composition Functions',
58+
collapsable: false,
59+
children: [
60+
'/functions/battery',
61+
'/functions/clipboard',
62+
'/functions/device-light',
63+
'/functions/device-motion',
64+
'/functions/device-orientation',
65+
'/functions/document-visibility',
66+
'/functions/fetch',
67+
'/functions/fullscreen',
68+
'/functions/geolocation',
69+
'/functions/hardware-concurrency',
70+
'/functions/intersection-observer',
71+
'/functions/local-storage',
72+
'/functions/media-query',
73+
'/functions/memory-status',
74+
'/functions/mouse-position',
75+
'/functions/network',
76+
'/functions/preferred-color-scheme',
77+
'/functions/preferred-languages',
78+
'/functions/script',
79+
'/functions/websocket',
80+
'/functions/scroll-position',
81+
'/functions/window-size'
82+
]
83+
},
84+
{
85+
title: 'Cook Book (WIP)',
86+
collapsable: false,
87+
children: []
88+
}
89+
],
8190
locales: {
8291
'/': {
8392
label: 'English',
8493
selectText: 'Languages',
8594
editLinkText: 'Help us improve this page!',
86-
nav: [{ text: 'Guide', link: '/guide/' }]
95+
nav: [{ text: 'Functions', link: '/functions' }]
8796
}
8897
}
8998
}

docs/README.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lang: en-US
44
home: true
55
# heroImage:
66
actionText: Get Started →
7-
actionLink: ./guide/
7+
actionLink: ./functions/
88
features:
99
- title: Reactive
1010
details: All the APIs have been repurposed to be reactive so you can use them directly in your components.
@@ -37,30 +37,30 @@ npm install @vue/composition-api vue-use-web
3737

3838
## Web APIs
3939

40-
- [Battery Status API](./guide/battery.md).
41-
- [Clipboard API](./guide/clipboard.md).
42-
- [Device Light](./guide/device-light.md).
43-
- [Device Motion](./guide/device-motion.md).
44-
- [Device Orientation](./guide/device-orientation.md).
45-
- [Document Visibility](./guide/document-visibility.md).
46-
- [Event Listener](./guide/event-listener).
47-
- [Fetch API](./guide/fetch.md).
48-
- [Full-screen](./guide/fullscreen.md).
49-
- [Geo-location API](./guide/geolocation.md).
50-
- [Hardware Concurrency](./guide/hardware-concurrency.md).
51-
- [Intersection Observer](./guide/intersection-observer.md).
52-
- [Local-storage API](./guide/local-storage.md)
53-
- [Media Query](./guide/media-query.md)
54-
- [Memory Status](./guide/memory-status.md).
55-
- [Mouse Position](./guide/mouse-position.md)
56-
- [Network Information API](./guide/network.md).
57-
- [Preferred Color Scheme](./guide/preferred-color-scheme.md).
58-
- [Preferred Languages](./guide/preferred-languages.md).
59-
- [Script](./guide/script.md).
60-
- [WebSocket](./guide/websocket.md).
61-
- [Window Scroll Position](./guide/scroll-position.md).
62-
- [Window Size](./guide/window-size.md).
63-
- [Worker](./guide/worker.md).
40+
- [Battery Status API](./functions/battery.md).
41+
- [Clipboard API](./functions/clipboard.md).
42+
- [Device Light](./functions/device-light.md).
43+
- [Device Motion](./functions/device-motion.md).
44+
- [Device Orientation](./functions/device-orientation.md).
45+
- [Document Visibility](./functions/document-visibility.md).
46+
- [Event Listener](./functions/event-listener).
47+
- [Fetch API](./functions/fetch.md).
48+
- [Full-screen](./functions/fullscreen.md).
49+
- [Geo-location API](./functions/geolocation.md).
50+
- [Hardware Concurrency](./functions/hardware-concurrency.md).
51+
- [Intersection Observer](./functions/intersection-observer.md).
52+
- [Local-storage API](./functions/local-storage.md)
53+
- [Media Query](./functions/media-query.md)
54+
- [Memory Status](./functions/memory-status.md).
55+
- [Mouse Position](./functions/mouse-position.md)
56+
- [Network Information API](./functions/network.md).
57+
- [Preferred Color Scheme](./functions/preferred-color-scheme.md).
58+
- [Preferred Languages](./functions/preferred-languages.md).
59+
- [Script](./functions/script.md).
60+
- [WebSocket](./functions/websocket.md).
61+
- [Window Scroll Position](./functions/scroll-position.md).
62+
- [Window Size](./functions/window-size.md).
63+
- [Worker](./functions/worker.md).
6464
- Bluetooth <Badge text="WIP" type="warn" />.
6565
- Notification <Badge text="WIP" type="warn" />.
6666
- Share <Badge text="WIP" type="warn" />.

docs/guide/README.md docs/functions/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ I initially was choosing to expose this as a [Stateful functional components](ht
1717
- Maintains similarities to the original APIs as close as possible.
1818
- Written in TypeScript.
1919

20-
## Web APIs
20+
## Available Functions
2121

2222
These are the currently implemented Web APIs and the planned ones.
2323

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)