mirror of
https://github.com/IT4Change/IT4C.dev.git
synced 2025-12-13 09:25:49 +00:00
separate config in different files
This commit is contained in:
parent
0cf221d4c7
commit
0c9c350c0c
@ -1,79 +1,10 @@
|
|||||||
import { searchProPlugin } from 'vuepress-plugin-search-pro'
|
|
||||||
import { hopeTheme } from 'vuepress-theme-hope'
|
|
||||||
import { defineUserConfig } from 'vuepress'
|
import { defineUserConfig } from 'vuepress'
|
||||||
|
import meta from './config/meta'
|
||||||
|
import theme from './config/theme'
|
||||||
|
import plugins from './config/plugins'
|
||||||
|
|
||||||
export default defineUserConfig({
|
export default defineUserConfig({
|
||||||
title: 'IT Team for Change',
|
...meta,
|
||||||
description: 'IT4C.dev introduces the IT Team for Change, applied Philosophy and Projects.',
|
theme,
|
||||||
head: [
|
plugins,
|
||||||
['meta', {name: 'viewport', content: 'width=device-width,initial-scale=1'}]
|
|
||||||
],
|
|
||||||
theme: hopeTheme({
|
|
||||||
logo: '/it4c-logo2-clean-bg_alpha-128x128.png',
|
|
||||||
docsRepo: 'https://github.com/IT4Change/IT4C.dev',
|
|
||||||
docsBranch: 'master',
|
|
||||||
docsDir: 'docs',
|
|
||||||
editLink: true,
|
|
||||||
lastUpdated: false,
|
|
||||||
contributors: false,
|
|
||||||
navbar: [
|
|
||||||
{ text: 'IT4C', link: '/' },
|
|
||||||
{ text: 'Contact', link: '/contact' },
|
|
||||||
{
|
|
||||||
text: 'Github',
|
|
||||||
link: 'https://github.com/IT4Change'
|
|
||||||
},
|
|
||||||
],
|
|
||||||
sidebar: [
|
|
||||||
{
|
|
||||||
text: 'IT4C',
|
|
||||||
link: '/',
|
|
||||||
collapsible: false,
|
|
||||||
children: [
|
|
||||||
'/history',
|
|
||||||
'/contact'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Projects',
|
|
||||||
collapsible: false,
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
text: 'Gradido Software',
|
|
||||||
link: '/projects/gradido'
|
|
||||||
},
|
|
||||||
// { link: '/extras/contributing', text: 'Contributing ✨' },
|
|
||||||
// { link: '/extras/license', text: 'License 📚' },
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'People',
|
|
||||||
collapsible: false,
|
|
||||||
children: [
|
|
||||||
'/people/alexander-friedland',
|
|
||||||
'/people/hannes-heine',
|
|
||||||
{ link: '/people/mathias-lenz', text: 'Mathias Lenz' },
|
|
||||||
'/people/moriz-wahl',
|
|
||||||
'/people/ulf-gebhardt',
|
|
||||||
'/people/wolfgang-huss'
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
plugins: [
|
|
||||||
searchProPlugin({
|
|
||||||
indexContent: true,
|
|
||||||
autoSuggestions: true,
|
|
||||||
customFields: [
|
|
||||||
{
|
|
||||||
getter: (page) => page.frontmatter.category,
|
|
||||||
formatter: "Category: $content",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
getter: (page) => page.frontmatter.tag,
|
|
||||||
formatter: "Tag: $content",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
})
|
})
|
||||||
|
|||||||
7
docs/.vuepress/config/meta.js
Normal file
7
docs/.vuepress/config/meta.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export default {
|
||||||
|
title: 'IT Team for Change',
|
||||||
|
description: 'IT4C.dev introduces the IT Team for Change, applied Philosophy and Projects.',
|
||||||
|
head: [
|
||||||
|
['meta', {name: 'viewport', content: 'width=device-width,initial-scale=1'}]
|
||||||
|
],
|
||||||
|
}
|
||||||
18
docs/.vuepress/config/plugins.js
Normal file
18
docs/.vuepress/config/plugins.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import { searchProPlugin } from 'vuepress-plugin-search-pro'
|
||||||
|
|
||||||
|
export default [
|
||||||
|
searchProPlugin({
|
||||||
|
indexContent: true,
|
||||||
|
autoSuggestions: true,
|
||||||
|
customFields: [
|
||||||
|
{
|
||||||
|
getter: (page) => page.frontmatter.category,
|
||||||
|
formatter: "Category: $content",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
getter: (page) => page.frontmatter.tag,
|
||||||
|
formatter: "Tag: $content",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
]
|
||||||
54
docs/.vuepress/config/theme.js
Normal file
54
docs/.vuepress/config/theme.js
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
import { hopeTheme } from 'vuepress-theme-hope'
|
||||||
|
|
||||||
|
export default hopeTheme({
|
||||||
|
logo: '/it4c-logo2-clean-bg_alpha-128x128.png',
|
||||||
|
docsRepo: 'https://github.com/IT4Change/IT4C.dev',
|
||||||
|
docsBranch: 'master',
|
||||||
|
docsDir: 'docs',
|
||||||
|
editLink: true,
|
||||||
|
lastUpdated: false,
|
||||||
|
contributors: false,
|
||||||
|
navbar: [
|
||||||
|
{ text: 'IT4C', link: '/' },
|
||||||
|
{ text: 'Contact', link: '/contact' },
|
||||||
|
{
|
||||||
|
text: 'Github',
|
||||||
|
link: 'https://github.com/IT4Change'
|
||||||
|
},
|
||||||
|
],
|
||||||
|
sidebar: [
|
||||||
|
{
|
||||||
|
text: 'IT4C',
|
||||||
|
link: '/',
|
||||||
|
collapsible: false,
|
||||||
|
children: [
|
||||||
|
'/history',
|
||||||
|
'/contact'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Projects',
|
||||||
|
collapsible: false,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
text: 'Gradido Software',
|
||||||
|
link: '/projects/gradido'
|
||||||
|
},
|
||||||
|
// { link: '/extras/contributing', text: 'Contributing ✨' },
|
||||||
|
// { link: '/extras/license', text: 'License 📚' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'People',
|
||||||
|
collapsible: false,
|
||||||
|
children: [
|
||||||
|
'/people/alexander-friedland',
|
||||||
|
'/people/hannes-heine',
|
||||||
|
{ link: '/people/mathias-lenz', text: 'Mathias Lenz' },
|
||||||
|
'/people/moriz-wahl',
|
||||||
|
'/people/ulf-gebhardt',
|
||||||
|
'/people/wolfgang-huss'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user