Skip to content

Commit

Permalink
Merge pull request #647 from haoxiuwen/doc-v2
Browse files Browse the repository at this point in the history
Add Linux/Electron Docs to New Doc Framework
  • Loading branch information
haoxiuwen authored Feb 26, 2024
2 parents a03f63b + 5cc1481 commit 06b6c7c
Show file tree
Hide file tree
Showing 38 changed files with 2,961 additions and 64 deletions.
16 changes: 16 additions & 0 deletions docs/.vuepress/components/PlatformSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ const PLATFORM_ICON_MAP = {
icon : '/icon-platform.svg',
activeIcon: '/icon-platform-hover.svg',
},
electron: {
icon : '/icon-Electron.svg',
activeIcon: '/icon-Electron-hover.svg',
},
linux: {
icon : '/icon-linux.svg',
activeIcon: '/icon-linux-hover.svg',
},
}
const platform = ref('android')
Expand Down Expand Up @@ -88,6 +96,14 @@ const options = [
value: 'windows',
label: 'Windows',
},
{
value: 'electron',
label: 'Electron',
},
{
value: 'linux',
label: 'Linux',
},
],
},
{
Expand Down
25 changes: 25 additions & 0 deletions docs/.vuepress/navbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ export const zhNavbar = navbar([
icon: "/icon-windows.svg",
link: "/document/windows/quickstart.html",
},
{
text: "Electron",
icon: "/icon-Electron.svg",
link: "/document/electron/overview.html",
},
{
text: "Linux",
icon: "/icon-linux.svg",
link: "/document/linux/overview.html",
},
],
},
{
Expand Down Expand Up @@ -68,6 +78,16 @@ export const zhNavbar = navbar([
icon: "/icon-platform.svg",
link: "/document/server-side/overview.html",
},
{
text: "Java",
icon: "/icon-platform.svg",
link: "/document/server-side/java_server_sdk.html",
},
{
text: "PHP",
icon: "/icon-platform.svg",
link: "/document/server-side/php_server_sdk.html",
},
],
},
],
Expand Down Expand Up @@ -163,6 +183,11 @@ export const zhNavbar = navbar([
icon: "/icon-windows.svg",
link: "https://sdkdocs.easemob.com/apidoc/unity/annotated.html",
},
{
text: "Electron",
icon: "/icon-Electron.svg",
link: "https://downloads.easemob.com/doc/desktop/apidoc/index.html",
},
],
},
{
Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/public/icon-linux-hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 06b6c7c

Please sign in to comment.