1+ import { DefaultTheme } from "vitepress" ;
2+
3+ export const sidebar : DefaultTheme . Sidebar = {
4+ '/guide/' : { base : '/guide/' , items : sidebarGuide ( ) } ,
5+ '/tools/' : { base : '/tools/' , items : sidebarTools ( ) } ,
6+ }
7+
8+ function sidebarGuide ( ) : DefaultTheme . SidebarItem [ ] {
9+ return [
10+ {
11+ text : 'Introduction' ,
12+ collapsed : false ,
13+ items : [
14+ { text : 'What is webrtc-java?' , link : '/introduction' } ,
15+ { text : 'Getting Started' , link : '/get-started' } ,
16+ ] ,
17+ } ,
18+ {
19+ text : 'Media Basics' ,
20+ collapsed : false ,
21+ items : [
22+ { text : 'Media Devices' , link : '/media/media-devices' } ,
23+ { text : 'Media Constraints' , link : '/media/constraints' } ,
24+ { text : 'Media Directionality' , link : '/media/directionality' } ,
25+ ] ,
26+ } ,
27+ {
28+ text : 'Audio' ,
29+ collapsed : false ,
30+ items : [
31+ { text : 'Audio Devices' , link : '/audio/audio-devices' } ,
32+ { text : 'Audio Processing' , link : '/audio/audio-processing' } ,
33+ { text : 'Custom Audio Source' , link : '/audio/custom-audio-source' } ,
34+ { text : 'Headless Audio' , link : '/audio/headless-audio' } ,
35+ { text : 'DTMF Sender' , link : '/audio/dtmf-sender' } ,
36+ ] ,
37+ } ,
38+ {
39+ text : 'Video' ,
40+ collapsed : false ,
41+ items : [
42+ { text : 'Camera Video' , link : '/video/camera-capture' } ,
43+ { text : 'Desktop Video' , link : '/video/desktop-capture' } ,
44+ { text : 'Custom Video Source' , link : '/video/custom-video-source' } ,
45+ ] ,
46+ } ,
47+ {
48+ text : 'Data Communication' ,
49+ collapsed : false ,
50+ items : [
51+ { text : 'Data Channels' , link : '/data/data-channels' } ,
52+ ] ,
53+ } ,
54+ {
55+ text : 'Networking and ICE' ,
56+ collapsed : false ,
57+ items : [
58+ { text : 'Port Allocator Configuration' , link : '/networking/port-allocator-config' } ,
59+ ] ,
60+ } ,
61+ {
62+ text : 'Monitoring and Debugging' ,
63+ collapsed : false ,
64+ items : [
65+ { text : 'RTC Stats' , link : '/monitoring/rtc-stats' } ,
66+ { text : 'Logging' , link : '/monitoring/logging' } ,
67+ ] ,
68+ } ,
69+ ]
70+ }
71+
72+ function sidebarTools ( ) : DefaultTheme . SidebarItem [ ] {
73+ return [
74+ {
75+ text : 'Audio' ,
76+ collapsed : false ,
77+ items : [
78+ { text : 'Audio Converter' , link : '/audio/audio-converter' } ,
79+ { text : 'Audio Recorder' , link : '/audio/audio-recorder' } ,
80+ { text : 'Audio Player' , link : '/audio/audio-player' } ,
81+ { text : 'Voice Activity Detector' , link : '/audio/voice-activity-detector' } ,
82+ ] ,
83+ } ,
84+ {
85+ text : 'Video' ,
86+ collapsed : false ,
87+ items : [
88+ { text : 'Video Buffer Converter' , link : '/video/video-buffer-converter' } ,
89+ { text : 'Video Capture' , link : '/video/video-capturer' } ,
90+ ] ,
91+ } ,
92+ {
93+ text : 'Desktop' ,
94+ collapsed : false ,
95+ items : [
96+ { text : 'Screen Capturer' , link : '/desktop/screen-capturer' } ,
97+ { text : 'Window Capturer ' , link : '/desktop/window-capturer' } ,
98+ { text : 'Power Management' , link : '/desktop/power-management' } ,
99+ ] ,
100+ } ,
101+ ]
102+ }
0 commit comments