Skip to content

Commit 4e2a505

Browse files
committed
chore(ci): deploy to pages
1 parent c9a351e commit 4e2a505

File tree

8 files changed

+55
-9
lines changed

8 files changed

+55
-9
lines changed

.github/workflows/deploy.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy VitePress to Pages
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: pages
14+
cancel-in-progress: false
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- uses: oven-sh/setup-bun@v1
25+
- name: Setup Pages
26+
uses: actions/configure-pages@v4
27+
- name: Install dependencies
28+
run: bun install
29+
- name: Build with VitePress
30+
run: bun run docs:build
31+
- name: Upload artifact
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: .vitepress/dist
35+
36+
deploy:
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
needs: build
41+
runs-on: ubuntu-latest
42+
name: Deploy
43+
steps:
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

.vitepress/config.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { defineConfig, HeadConfig, type DefaultTheme } from 'vitepress';
22

33
export default defineConfig({
44
lang: 'en-US',
5+
base: '/0x68656c70/',
56
head: headers(),
67
title: '0x68656c70',
78
description: 'help - Notes about technical stuff I wish I had before.',
@@ -11,8 +12,8 @@ export default defineConfig({
1112

1213
themeConfig: {
1314
logo: {
14-
light: '/assets/logo.svg',
15-
dark: '/assets/logo-dark.svg',
15+
light: '/logo.svg',
16+
dark: '/logo-dark.svg',
1617
},
1718

1819
nav: nav(),
@@ -105,12 +106,12 @@ function sidebarK8s(): DefaultTheme.SidebarItem[] {
105106
/* prettier-ignore */
106107
function headers(): HeadConfig[] {
107108
return [
108-
['link', { rel: 'icon', type: 'image/svg+xml', href: 'assets/logo.svg' }],
109+
['link', { rel: 'icon', type: 'image/svg+xml', href: 'logo.svg' }],
109110
['meta', { property: 'og:type', content: 'website' }],
110111
['meta', { property: 'og:locale', content: 'en' }],
111112
['meta', { property: 'og:title', content: 'Insights on cloud, devops and related topics' }],
112113
['meta', { property: 'og:site_name', content: '0x68656c70 - help' }],
113-
['meta', { property: 'og:image', content: '' }],
114+
// ['meta', { property: 'og:image', content: '' }],
114115
['meta', { property: 'og:url', content: 'https://github.com/johntrunix/0x68656c70' }],
115116
];
116117
}

bun.lockb

0 Bytes
Binary file not shown.

index.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
# https://vitepress.dev/reference/default-theme-home-page
32
layout: home
43

54
hero:
65
name: '0x68656c70'
76
text: 'Insights I wish I had earlier'
87
tagline: Insights on Cloud, DevOps and related Topics
98
image:
10-
light: assets/hero.svg
11-
dark: assets/hero-dark.svg
9+
light: /hero.svg
10+
dark: /hero-dark.svg
1211
alt: Growth
1312
actions:
1413
- theme: brand
@@ -35,7 +34,7 @@ features:
3534

3635
<style>
3736
:root {
38-
--vp-home-hero-name-color: transparent;
39-
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
37+
--vp-home-hero-name-color: transparent !important;
38+
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff) !important;
4039
}
4140
</style>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)