Skip to content

Commit 913de80

Browse files
committed
[#1] revamp
1 parent 7df74c4 commit 913de80

58 files changed

Lines changed: 1248 additions & 1118 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Set up Node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
35+
- name: Install pnpm
36+
run: npm i -g pnpm
37+
38+
- name: Install dependencies
39+
run: pnpm install
40+
41+
- name: Build
42+
run: pnpm build
43+
44+
- name: Setup Pages
45+
uses: actions/configure-pages@v5
46+
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
name: github-pages
51+
path: ./.vitepress/dist/
52+
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,14 @@
11
_drafts/
22
_site/
3-
4-
#OS X stuff
5-
.DS_Store
6-
# temp files
7-
*~
8-
*.swp
9-
/.gitk-tmp.*
10-
atlassian-ide-plugin.xml
11-
12-
# ignore IDEA files
13-
*.iml
14-
*.ipr
15-
*.iws
16-
.idea
17-
18-
# ignore Maven generated target folders
19-
/.m2
20-
~
21-
target
22-
23-
# ignore eclipse files
24-
.project
25-
.classpath
26-
.settings
27-
.metadata
28-
.checkstyle
29-
.factorypath
30-
31-
## Environment normalization:
323
.env
334
/.bundle
5+
/build
346
/vendor/bundle
357
/lib/bundler/man/
8+
.vitepress/dist
9+
.vitepress/cache
10+
node_modules
11+
12+
# Allow only pnpm lock file
13+
*lock*
14+
!pnpm-lock.yaml

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=true

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"printWidth": 80,
3+
"semi": true,
4+
"singleQuote": false,
5+
"trailingComma": "es5",
6+
"bracketSameLine": true,
7+
"useTabs": false,
8+
"tabWidth": 3
9+
}

.vitepress/config.mts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { defineConfig } from "vitepress";
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: "AGROAL",
6+
description: "Documentation website for Agroal",
7+
themeConfig: {
8+
// https://vitepress.dev/reference/default-theme-config
9+
nav: [
10+
{ text: "News", link: "/news" },
11+
{ text: "Releases", link: "/releases" },
12+
{ text: "Docs", link: "/docs.md" },
13+
{ text: "About", link: "/about.md" },
14+
],
15+
16+
footer: {
17+
message:
18+
"<span class='vp-doc'></span>",
19+
copyright:
20+
"© 2017/2024 <a href='https://www.redhat.com/en'>RedHat Inc</a>.",
21+
},
22+
23+
sidebar: [
24+
{
25+
text: "Home",
26+
link: "/"
27+
},
28+
{
29+
text: "GitHub",
30+
link: "https://github.com/agroal",
31+
},
32+
{
33+
text: "License",
34+
link: "https://www.apache.org/licenses/LICENSE-2.0",
35+
},
36+
{
37+
text: "Issues",
38+
link: "https://issues.redhat.com/projects/AG/issues",
39+
},
40+
],
41+
42+
socialLinks: [{ icon: "github", link: "https://github.com/agroal" }],
43+
},
44+
});

Gemfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)