mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge pull request #7016 from Ocelot-Social-Community/7015-refactor
refactor(other): adapt docs website navbar and footer to ocelot.social website
This commit is contained in:
commit
da3ce4f0b0
@ -4,45 +4,63 @@ import { hopeTheme } from 'vuepress-theme-hope'
|
|||||||
|
|
||||||
export default hopeTheme({
|
export default hopeTheme({
|
||||||
favicon: 'favicon.ico',
|
favicon: 'favicon.ico',
|
||||||
logo: '/logo.svg',
|
logo: '/logo.svg',
|
||||||
docsRepo: 'https://github.com/Ocelot-Social-Community/Ocelot-Social',
|
docsRepo: 'https://github.com/Ocelot-Social-Community/Ocelot-Social',
|
||||||
docsBranch: 'master',
|
docsBranch: 'master',
|
||||||
docsDir: '.',
|
docsDir: '.',
|
||||||
editLink: true,
|
editLink: true,
|
||||||
lastUpdated: false,
|
lastUpdated: false,
|
||||||
contributors: false,
|
contributors: false,
|
||||||
print: false,
|
print: false,
|
||||||
pure: true,
|
pure: true,
|
||||||
displayFooter: true,
|
navbarLayout: {
|
||||||
footer: 'CC BY busFaktor() e.V. & Authors',
|
start: ['Brand'],
|
||||||
sidebar: generateSidebar('../../SUMMARY.md'),
|
center: ['Links'],
|
||||||
navbar: [
|
end: ['Repo', 'Outlook', 'Search'],
|
||||||
{ text: 'Home', link: '/' },
|
},
|
||||||
{
|
repo: 'Ocelot-Social-Community/Ocelot-Social',
|
||||||
text: 'Github',
|
repoLabel: 'GitHub',
|
||||||
link: 'https://github.com/Ocelot-Social-Community/Ocelot-Social'
|
repoDisplay: true,
|
||||||
},
|
|
||||||
],
|
|
||||||
plugins: {
|
displayFooter: true,
|
||||||
mdEnhance: {
|
copyright: '© by <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authors | <a href="https://ocelot.social/en/impressum/">Imprint</a>',
|
||||||
tabs: true,
|
footer: 'Released under the <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a>.',
|
||||||
imgSize: true
|
sidebar: generateSidebar('../../SUMMARY.md'),
|
||||||
},
|
navbar: [
|
||||||
searchPro: {
|
{
|
||||||
indexContent: true,
|
text: 'Demo',
|
||||||
autoSuggestions: true,
|
link: 'https://stage.ocelot.social/',
|
||||||
customFields: [
|
target: '_self',
|
||||||
{
|
},
|
||||||
getter: (page) => page.frontmatter.category,
|
],
|
||||||
formatter: "Category: $content",
|
plugins: {
|
||||||
},
|
mdEnhance: {
|
||||||
{
|
align: true,
|
||||||
getter: (page) => page.frontmatter.tag,
|
demo: true,
|
||||||
formatter: "Tag: $content",
|
imgLazyload: true,
|
||||||
},
|
imgMark: true,
|
||||||
],
|
imgSize: true,
|
||||||
}
|
sub: true,
|
||||||
|
sup: true,
|
||||||
|
tabs: true,
|
||||||
|
vPre: true,
|
||||||
|
},
|
||||||
|
searchPro: {
|
||||||
|
indexContent: true,
|
||||||
|
autoSuggestions: true,
|
||||||
|
customFields: [
|
||||||
|
{
|
||||||
|
getter: (page) => page.frontmatter.category,
|
||||||
|
formatter: "Category: $content",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
getter: (page) => page.frontmatter.tag,
|
||||||
|
formatter: "Tag: $content",
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
function generateSidebar(summaryFileName) {
|
function generateSidebar(summaryFileName) {
|
||||||
|
|||||||
764
package-lock.json
generated
764
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -60,10 +60,10 @@
|
|||||||
"wait-on": "^7.2.0"
|
"wait-on": "^7.2.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@vuepress/bundler-vite": "^2.0.0-rc.2",
|
"@vuepress/bundler-vite": "^2.0.0-rc.7",
|
||||||
"vuepress": "^2.0.0-rc.2",
|
"vuepress": "^2.0.0-rc.7",
|
||||||
"vuepress-plugin-search-pro": "^2.0.0-rc.15",
|
"vuepress-plugin-search-pro": "^2.0.0-rc.23",
|
||||||
"vuepress-theme-hope": "^2.0.0-rc.15"
|
"vuepress-theme-hope": "^2.0.0-rc.23"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"set-value": "^2.0.1",
|
"set-value": "^2.0.1",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user