-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from Telegram-Mini-Apps/feature/split-docs
Feature/split docs
- Loading branch information
Showing
58 changed files
with
2,007 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
function prefixed(value: string): string { | ||
return `/packages${value}`; | ||
} | ||
|
||
export const packagesNavItem = { | ||
text: 'Packages', | ||
link: prefixed('/typescript/tma-js-bridge'), | ||
}; | ||
|
||
export const packagesSidebar = { | ||
[prefixed('/')]: [ | ||
{ | ||
text: 'TypeScript', | ||
items: [ | ||
{ text: '@tma.js/bridge', link: prefixed('/typescript/tma-js-bridge') }, | ||
{ | ||
text: '@tma.js/init-data', | ||
collapsed: true, | ||
items: [ | ||
{ text: 'About', link: prefixed('/typescript/tma-js-init-data/about') }, | ||
{ text: 'InitData', link: prefixed('/typescript/tma-js-init-data/init-data') }, | ||
{ text: 'Chat', link: prefixed('/typescript/tma-js-init-data/chat') }, | ||
{ text: 'User', link: prefixed('/typescript/tma-js-init-data/user') }, | ||
], | ||
}, | ||
{ | ||
text: '@tma.js/launch-params', | ||
link: prefixed('/typescript/tma-js-launch-params'), | ||
}, | ||
{ text: '@tma.js/theme-params', link: prefixed('/typescript/tma-js-theme-params') }, | ||
{ text: '@tma.js/navigation', link: prefixed('/typescript/tma-js-navigation') }, | ||
{ | ||
text: '@tma.js/sdk', | ||
collapsed: true, | ||
items: [ | ||
{ text: 'About', link: prefixed('/typescript/tma-js-sdk/about') }, | ||
{ | ||
text: 'Components', | ||
collapsed: true, | ||
items: [ | ||
{ | ||
text: 'BackButton', | ||
link: prefixed('/typescript/tma-js-sdk/components/back-button'), | ||
}, | ||
{ | ||
text: 'ClosingBehavior', | ||
link: prefixed('/typescript/tma-js-sdk/components/closing-behaviour'), | ||
}, | ||
{ | ||
text: 'HapticFeedback', | ||
link: prefixed('/typescript/tma-js-sdk/components/haptic-feedback'), | ||
}, | ||
{ | ||
text: 'InitData', | ||
link: prefixed('/typescript/tma-js-sdk/components/init-data'), | ||
}, | ||
{ | ||
text: 'MainButton', | ||
link: prefixed('/typescript/tma-js-sdk/components/main-button'), | ||
}, | ||
{ | ||
text: 'Popup', | ||
link: prefixed('/typescript/tma-js-sdk/components/popup'), | ||
}, | ||
{ | ||
text: 'QRScanner', | ||
link: prefixed('/typescript/tma-js-sdk/components/qr-scanner'), | ||
}, | ||
{ | ||
text: 'ThemeParams', | ||
link: prefixed('/typescript/tma-js-sdk/components/theme-params'), | ||
}, | ||
{ | ||
text: 'Viewport', | ||
link: prefixed('/typescript/tma-js-sdk/components/viewport'), | ||
}, | ||
// TODO: Rename? | ||
{ | ||
text: 'WebApp', | ||
link: prefixed('/typescript/tma-js-sdk/components/web-app'), | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
{ text: '@tma.js/sdk-react', link: prefixed('/typescript/tma-js-sdk-react') }, | ||
{ text: '@tma.js/sdk-solid', link: prefixed('/typescript/tma-js-sdk-solid') }, | ||
], | ||
}, | ||
{ | ||
text: 'Node', | ||
items: [ | ||
{ text: '@tma.js/init-data-node', link: prefixed('/node/tma-js-init-data-node') }, | ||
], | ||
}, | ||
{ | ||
text: 'GoLang', | ||
items: [ | ||
{ text: 'init-data-golang', link: prefixed('/golang/init-data-golang') }, | ||
], | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
function prefixed(value: string): string { | ||
return `/platform${value}`; | ||
} | ||
|
||
export const platformNavItem = { | ||
text: 'Platform', | ||
link: prefixed('/about-platform'), | ||
}; | ||
|
||
export const platformSidebar = { | ||
[prefixed('/')]: [ | ||
{ | ||
text: 'Common information', | ||
items: [ | ||
{ text: 'About platform', link: prefixed('/about-platform') }, | ||
{ text: 'Test environment', link: prefixed('/test-environment') }, | ||
], | ||
}, | ||
|
||
{ | ||
text: 'Apps communication', | ||
items: [ | ||
{ text: 'Flow definition', link: prefixed('/apps-communication/flow-definition') }, | ||
{ text: 'Methods', link: prefixed('/apps-communication/methods') }, | ||
{ text: 'Events', link: prefixed('/apps-communication/events') }, | ||
], | ||
}, | ||
|
||
{ | ||
text: 'Launch parameters', | ||
items: [ | ||
{ text: 'Common information', link: prefixed('/launch-parameters/common-information') }, | ||
{ text: 'Init data', link: prefixed('/launch-parameters/init-data') }, | ||
], | ||
}, | ||
|
||
{ | ||
text: 'Functionality', | ||
items: [ | ||
{ text: 'Closing behavior', link: prefixed('/functionality/closing-behavior') }, | ||
{ text: 'Haptic feedback', link: prefixed('/functionality/haptic-feedback') }, | ||
{ text: 'Theming', link: prefixed('/functionality/theming') }, | ||
{ text: 'Viewport', link: prefixed('/functionality/viewport') }, | ||
], | ||
}, | ||
|
||
{ | ||
text: 'UI', | ||
items: [ | ||
{ text: 'Back Button', link: prefixed('/ui/back-button') }, | ||
{ text: 'Main Button', link: prefixed('/ui/main-button') }, | ||
{ text: 'Popup', link: prefixed('/ui/popup') }, | ||
{ text: 'Settings Button', link: prefixed('/ui/settings-button') }, | ||
], | ||
}, | ||
|
||
{ | ||
text: 'Guides', | ||
items: [ | ||
{ text: 'Creating new app', link: prefixed('/guides/creating-new-app') }, | ||
], | ||
}, | ||
], | ||
}; |
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.
Oops, something went wrong.