Skip to content

Commit

Permalink
Merge pull request #7016 from Ocelot-Social-Community/7015-refactor
Browse files Browse the repository at this point in the history
refactor(other): adapt docs website navbar and footer to ocelot.social website
  • Loading branch information
mahula authored Feb 17, 2024
2 parents 8e9e9e7 + 2b5183f commit da3ce4f
Show file tree
Hide file tree
Showing 3 changed files with 414 additions and 456 deletions.
94 changes: 56 additions & 38 deletions .vuepress/config/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,63 @@ import { hopeTheme } from 'vuepress-theme-hope'

export default hopeTheme({
favicon: 'favicon.ico',
logo: '/logo.svg',
docsRepo: 'https://github.com/Ocelot-Social-Community/Ocelot-Social',
docsBranch: 'master',
docsDir: '.',
editLink: true,
lastUpdated: false,
contributors: false,
print: false,
pure: true,
displayFooter: true,
footer: 'CC BY busFaktor() e.V. & Authors',
sidebar: generateSidebar('../../SUMMARY.md'),
navbar: [
{ text: 'Home', link: '/' },
{
text: 'Github',
link: 'https://github.com/Ocelot-Social-Community/Ocelot-Social'
},
],
plugins: {
mdEnhance: {
tabs: true,
imgSize: true
},
searchPro: {
indexContent: true,
autoSuggestions: true,
customFields: [
{
getter: (page) => page.frontmatter.category,
formatter: "Category: $content",
},
{
getter: (page) => page.frontmatter.tag,
formatter: "Tag: $content",
},
],
}
logo: '/logo.svg',
docsRepo: 'https://github.com/Ocelot-Social-Community/Ocelot-Social',
docsBranch: 'master',
docsDir: '.',
editLink: true,
lastUpdated: false,
contributors: false,
print: false,
pure: true,
navbarLayout: {
start: ['Brand'],
center: ['Links'],
end: ['Repo', 'Outlook', 'Search'],
},
repo: 'Ocelot-Social-Community/Ocelot-Social',
repoLabel: 'GitHub',
repoDisplay: true,


displayFooter: true,
copyright: '&copy; by <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authors | <a href="https://ocelot.social/en/impressum/">Imprint</a>',
footer: 'Released under the <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a>.',
sidebar: generateSidebar('../../SUMMARY.md'),
navbar: [
{
text: 'Demo',
link: 'https://stage.ocelot.social/',
target: '_self',
},
],
plugins: {
mdEnhance: {
align: true,
demo: true,
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) {
Expand Down
Loading

0 comments on commit da3ce4f

Please sign in to comment.