-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdoczrc.js
89 lines (87 loc) · 1.89 KB
/
doczrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import { css } from 'docz-plugin-css';
//import { createPlugin } from 'docz-core';
// https://github.com/pedronauck/docz/issues/150
/*const staticServePlugin = () => createPlugin({
onCreateApp: app => {
app.use(mount(somePath, serveStatic(publicPath)))
}
});*/
export default {
title: 'Replay',
description: 'A React video player with adaptive streaming support',
src: './src/replay',
dest: './docs',
public: '/public',
base: '/replay/',
hashRouter: true,
plugins: [
css({
preprocessor: 'postcss',
cssmodules: false
})
],
htmlContext: {
head: {
links: [{
rel: 'stylesheet',
href: 'https://codemirror.net/theme/dracula.css'
}]
}
},
themeConfig: {
showPlaygroundEditor: true,
codemirrorTheme: 'dracula'
},
menu: [
'Replay',
{
name: 'Using the Replay player',
menu: [
'Inserting Replay',
'Setting startup options',
'Controlling playback programmatically',
'Replay component API'
]
},
{
name: 'Advanced playback',
menu: [
'Adaptive streaming',
'DRM',
'Subtitles and audio tracks',
'Bitrates and adaptive quality selection'
]
},
'Customising Replay',
{
name: 'Architecture and patterns',
menu: [
'Overview',
'Video streamers',
'Player controller',
'Connected controls',
'Background'
]
},
{
name: 'Building a custom player',
menu: [
'Overview',
'How to add new controls or overlays',
'How to change graphics or texts'
]
},
{
name: 'Reference',
menu: [
'Stream state properties',
'Settable properties',
'Replay component reference'
]
},
'Controls reference',
'Containers/helpers reference',
'Generic controls reference'
],
debug: false
};