Add sidebar for photos features
This commit is contained in:
parent
00ee42cf61
commit
2ec760c4d1
12 changed files with 57 additions and 11 deletions
|
@ -11,18 +11,63 @@ export default defineConfig({
|
|||
{ text: 'Authenticator', link: '/authenticator/index' }
|
||||
],
|
||||
|
||||
sidebar: [
|
||||
{
|
||||
text: 'Examples',
|
||||
items: [
|
||||
{ text: 'Markdown Examples', link: '/markdown-examples' },
|
||||
{ text: 'Runtime API Examples', link: '/api-examples' }
|
||||
]
|
||||
}
|
||||
],
|
||||
sidebar: {
|
||||
'/': sidebarphotos(),
|
||||
'/photos/': sidebarphotos(),
|
||||
'/common/': sidebarphotos(),
|
||||
'/authenticator/': sidebarAuth()
|
||||
},
|
||||
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/ente-io/' }
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
function sidebarphotos() {
|
||||
return [
|
||||
{
|
||||
text: 'Examples',
|
||||
items: [
|
||||
{ text: 'Markdown Examples', link: '/markdown-examples' },
|
||||
{ text: 'Runtime API Examples', link: '/api-examples' }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'User Guide',
|
||||
items: [
|
||||
{
|
||||
text: 'Features',
|
||||
collapsed: true,
|
||||
// link: '/photos/features/',
|
||||
items: [
|
||||
{ text: 'Archive', link: '/photos/features/archive' },
|
||||
{ text: 'Hidden', link: '/photos/features/hidden' },
|
||||
{ text: 'Family Plan', link: '/photos/features/family-plan' },
|
||||
{ text: 'Map', link: '/photos/features/map' },
|
||||
{ text: 'Location Tags', link: '/photos/features/location' },
|
||||
{ text: 'Collect Photos', link: '/photos/features/collect' },
|
||||
{ text: 'Public link', link: '/photos/features/public-link' },
|
||||
{ text: 'Quick link', link: '/photos/features/quick-link' },
|
||||
{ text: 'Referral Plan', link: '/photos/features/referral' },
|
||||
{ text: 'Live & Motion Photos', link: '/photos/features/live-photos' },
|
||||
|
||||
]
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
function sidebarAuth() {
|
||||
return [
|
||||
{
|
||||
text: 'Examples',
|
||||
items: [
|
||||
{ text: 'Markdown Examples', link: '/markdown-examples' },
|
||||
{ text: 'Runtime API Examples', link: '/api-examples' }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -9,10 +9,10 @@ hero:
|
|||
actions:
|
||||
- theme: brand
|
||||
text: Photos
|
||||
link: /markdown-examples
|
||||
link: /photos/
|
||||
- theme: brand
|
||||
text: Authenticator
|
||||
link: /api-examples
|
||||
link: /authenticator/
|
||||
|
||||
features:
|
||||
- title: Private
|
||||
|
|
1
docs/photos/features/archive.md
Normal file
1
docs/photos/features/archive.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Archive
|
0
docs/photos/features/collect.md
Normal file
0
docs/photos/features/collect.md
Normal file
0
docs/photos/features/family-plan.md
Normal file
0
docs/photos/features/family-plan.md
Normal file
0
docs/photos/features/hidden.md
Normal file
0
docs/photos/features/hidden.md
Normal file
0
docs/photos/features/live-photos.md
Normal file
0
docs/photos/features/live-photos.md
Normal file
0
docs/photos/features/location.md
Normal file
0
docs/photos/features/location.md
Normal file
0
docs/photos/features/map.md
Normal file
0
docs/photos/features/map.md
Normal file
0
docs/photos/features/public-link.md
Normal file
0
docs/photos/features/public-link.md
Normal file
0
docs/photos/features/quick-link.md
Normal file
0
docs/photos/features/quick-link.md
Normal file
0
docs/photos/features/referral.md
Normal file
0
docs/photos/features/referral.md
Normal file
Loading…
Add table
Reference in a new issue