initial homepage

This commit is contained in:
mahula 2023-11-21 21:41:57 +01:00
parent 9cac850355
commit 1feb885bde
13 changed files with 290 additions and 0 deletions

20
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
rebase-strategy: "disabled"
schedule:
interval: weekly
day: "saturday"
timezone: "Europe/Berlin"
time: "03:00"
- package-ecosystem: npm
directory: "/"
rebase-strategy: "disabled"
schedule:
interval: weekly
day: "saturday"
timezone: "Europe/Berlin"
time: "03:00"

22
.github/workflows/test-build.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: build test CI
on: push
jobs:
build-test:
name: Build Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: '20'
- name: npm-install
run: npm install
- name: npm-build
run: npm run build

22
.github/workflows/test-lint.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: lint test CI
on: push
jobs:
build-test:
name: Lint Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: '20'
- name: npm-install
run: npm install
- name: npm-test
run: npm test

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

10
docs/.vuepress/config.js Normal file
View File

@ -0,0 +1,10 @@
import { defineUserConfig } from 'vuepress'
import meta from './config/meta'
import theme from './config/theme'
import plugins from './config/plugins'
export default defineUserConfig({
...meta,
theme,
plugins,
})

View File

@ -0,0 +1,7 @@
export default {
title: 'Ocelot-Social',
// description: 'Free and open-source social network for active citizenship.',
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,36 @@
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: 'docs',
editLink: true,
lastUpdated: false,
contributors: false,
displayFooter: true,
print: false,
copyright: 'CC BY busFaktor() e.V. & Authors',
footer: 'Released under the <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a>.',
navbar: [
{ text: 'Documentation', link: 'https://docs.ocelot.social/' },
{ text: 'Demo', link: 'https://stage.ocelot.social/' },
{
text: 'Github',
link: 'https://github.com/Ocelot-Social-Community'
},
],
plugins: {
mdEnhance: {
align: true,
demo: true,
imgLazyload: true,
imgMark: true,
imgSize: true,
sub: true,
sup: true,
vPre: true,
}
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 28 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1 @@
$theme-color: #17b53f;

13
docs/README.md Normal file
View File

@ -0,0 +1,13 @@
---
home: true
# layout: BlogHome
icon: home
title: Ocelot-Social
heroFullScreen: false
heroImage: /logo.svg
heroText: Free and open-source social network for active citizenship.
tagLine:
# actions:
# - text: Demo
# link: https://stage.ocelot.social/
---