Skip to content

Commit 3aa7439

Browse files
committed
i18n.
1 parent 6a0c0b9 commit 3aa7439

31 files changed

+714
-201
lines changed

docs/dart-sip-ua/_category_.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Dart SIP UA - API",
3+
"position": 3
4+
}

docs/doc-flutter-webrtc/manage-docs-versions.md renamed to docs/dart-sip-ua/manage-docs-versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
sidebar_position: 1
33
---
44

5-
# Manage Docs Versions
5+
# Introduction
66

77
Docusaurus can manage multiple versions of your docs.
88

docs/doc-flutter-webrtc/translate-your-site.md

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

docs/docs.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,29 @@
22
sidebar_position: 1
33
---
44

5-
# Flutter Webrtc Docs
5+
# Getting Started
66

7-
Let's discover **Docusaurus in less than 5 minutes**.
7+
Let's discover **Flutter-WebRTC in less than 5 minutes**.
8+
9+
## Introduction
10+
11+
### What can you find in the Flutter-WebRTC community?
12+
13+
Flutter-WebRTC community is an open source project derived from the [dart/flutter](https://flutter.dev/) framework. We packaged the [WebRTC](https://webrtc.org/) library into a flutter plugin to create modern WebRTC/VoIP applications that can cross all platforms.
14+
15+
16+
### Projects under maintenance
17+
18+
- [flutter-webrtc](https://github.com/flutter-webrtc/flutter-webrtc) - [WebRTC](https://webrtc.org/) plugin for Flutter Mobile/Desktop/Web/Fuchsia/Embedded
19+
- [dart-sip-ua](https://github.com/flutter-webrtc/dart-sip-ua) - A SIP Stack developed using [dart-lang](https://dart.dev/)
20+
- [callkeep](https://github.com/flutter-webrtc/callkeep) - iOS CallKit and Android ConnectionService for Flutter
21+
- [flutter-webrtc-server](https://github.com/flutter-webrtc/flutter-webrtc-server) - A simple WebRTC signaling server for flutter-webrtc.
22+
- [flutter-webrtc-demo](https://github.com/flutter-webrtc/flutter-webrtc-demo) - Simple p2p call example based on flutter-webrtc.
23+
24+
### About this Docs.
25+
26+
This document site will cover all projects under the Flutter-WebRTC community.
27+
28+
### How to help the open source community?
829

9-
## Getting Started
1030

11-
Get started by **creating a new site**.

docs/flutter-webrtc/introduction.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Introduction
6+
7+
Docusaurus can manage multiple versions of your docs.

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 2
2+
sidebar_position: 4
33
---
44

55
# Tutorial Intro

docs/tutorial-basics/_category_.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"label": "Tutorial - Basics",
3-
"position": 2
3+
"position": 5
44
}

docs/tutorial-extras/_category_.json

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

docs/tutorial-extras/translate-your-site.md

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

docusaurus.config.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ module.exports = {
1212
favicon: 'img/favicon.ico',
1313
organizationName: 'flutter-webrtc', // Usually your GitHub org/user name.
1414
projectName: 'flutter-webrtc', // Usually your repo name.
15+
i18n: {
16+
defaultLocale: 'en',
17+
locales: ['en', 'zh-cn'],
18+
},
1519
themeConfig: {
1620
navbar: {
1721
title: 'Flutter WebRTC Community',
@@ -21,16 +25,14 @@ module.exports = {
2125
},
2226
items: [
2327
{
24-
type: 'doc',
25-
docId: 'docs',
26-
position: 'left',
27-
label: 'Docs',
28+
type: 'localeDropdown',
29+
position: 'right',
2830
},
2931
{
3032
type: 'doc',
31-
docId: 'intro',
33+
docId: 'docs',
3234
position: 'left',
33-
label: 'Tutorial',
35+
label: 'Docs',
3436
},
3537
{to: '/blog', label: 'Blog', position: 'left'},
3638
{

0 commit comments

Comments
 (0)