Merge pull request #91 from IT4Change/config-rework

fix(workflow): config rework
This commit is contained in:
Ulf Gebhardt 2023-11-07 09:13:31 +01:00 committed by GitHub
commit 0dec731128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 98 additions and 78 deletions

View File

@ -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/

View 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,
})

View File

@ -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,
})

View 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'}]
],
}

View 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",
},
],
}),
]

View 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'
]
}
],
})