mirror of
https://github.com/IT4Change/IT4C.dev.git
synced 2025-12-13 09:25:49 +00:00
Merge pull request #91 from IT4Change/config-rework
fix(workflow): config rework
This commit is contained in:
commit
0dec731128
3
.github/workflows/vuepress-deploy.yml
vendored
3
.github/workflows/vuepress-deploy.yml
vendored
@ -18,6 +18,5 @@ jobs:
|
||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
TARGET_REPO: IT4Change/IT4C.dev
|
||||
TARGET_BRANCH: gh-pages
|
||||
BUILD_SCRIPT: npm install && npm run build-node16
|
||||
BUILD_SCRIPT: npm install && npm run build-node16 -- --config docs/.vuepress/config github.js
|
||||
BUILD_DIR: docs/.vuepress/dist
|
||||
CNAME: https://it4change.github.io/IT4C.dev/
|
||||
|
||||
11
docs/.vuepress/config.github.js
Normal file
11
docs/.vuepress/config.github.js
Normal file
@ -0,0 +1,11 @@
|
||||
import { defineUserConfig } from 'vuepress'
|
||||
import meta from './config/meta'
|
||||
import theme from './config/theme'
|
||||
import plugins from './config/plugins'
|
||||
|
||||
export default defineUserConfig({
|
||||
base: "/IT4C.dev/",
|
||||
...meta,
|
||||
theme,
|
||||
plugins,
|
||||
})
|
||||
@ -1,79 +1,10 @@
|
||||
import { searchProPlugin } from 'vuepress-plugin-search-pro'
|
||||
import { hopeTheme } from 'vuepress-theme-hope'
|
||||
import { defineUserConfig } from 'vuepress'
|
||||
import meta from './config/meta'
|
||||
import theme from './config/theme'
|
||||
import plugins from './config/plugins'
|
||||
|
||||
export default defineUserConfig({
|
||||
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'}]
|
||||
],
|
||||
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",
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
})
|
||||
...meta,
|
||||
theme,
|
||||
plugins,
|
||||
})
|
||||
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