Skip to content

Commit d84fd55

Browse files
committed
Updated docs
1 parent 359736d commit d84fd55

File tree

20 files changed

+3193
-1998
lines changed

20 files changed

+3193
-1998
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
name: Deploy Docs
3+
4+
on:
5+
push:
6+
branches:
7+
- support_dbapi
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
deploy-gh-pages:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
# if your docs needs submodules, uncomment the following line
21+
# submodules: true
22+
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 22
31+
cache: pnpm
32+
33+
- name: Install Deps
34+
run: |
35+
corepack enable
36+
pnpm install --frozen-lockfile
37+
38+
- name: Build Docs
39+
env:
40+
NODE_OPTIONS: --max_old_space_size=8192
41+
run: |-
42+
pnpm run docs:build
43+
> docs/.vuepress/dist/.nojekyll
44+
45+
- name: Deploy Docs
46+
uses: JamesIves/github-pages-deploy-action@v4
47+
with:
48+
# Deploy Docs
49+
branch: gh-pages
50+
folder: docs/.vuepress/dist

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,8 @@ _load_test
7777

7878
# JS
7979
node_modules
80-
.temp
80+
.temp
81+
node_modules/
82+
docs/.vuepress/.cache/
83+
docs/.vuepress/.temp/
84+
docs/.vuepress/dist/

docs/.vuepress/config.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import { defineUserConfig } from "vuepress";
22
import { hopeTheme } from "vuepress-theme-hope";
33
import sidebar from "./sidebar.js";
4-
5-
import { viteBundler } from '@vuepress/bundler-vite'
4+
import { markdownTabPlugin } from '@vuepress/plugin-markdown-tab'
65

76
export default defineUserConfig({
87
lang: "en-US",
98
title: "PSQLPy",
109
description: "PSQLPy Documentation",
1110

12-
bundler: viteBundler(),
11+
// bundler: viteBundler(),
1312

1413
theme: hopeTheme({
1514
repo: "psqlpy-python/psqlpy",
@@ -22,22 +21,20 @@ export default defineUserConfig({
2221

2322
hostname: "https://psqlpy-python.github.io/",
2423

24+
markdown: {
25+
tabs: true,
26+
mermaid: true,
27+
chartjs: true,
28+
},
29+
2530
plugins: {
2631
readingTime: false,
27-
2832
copyCode: {
2933
showInMobile: true,
3034
},
3135

32-
searchPro: {
36+
slimsearch: {
3337
indexContent: true,
34-
autoSuggestions: false,
35-
},
36-
37-
mdEnhance: {
38-
tabs: true,
39-
mermaid: true,
40-
chart: true,
4138
},
4239

4340
sitemap: {

docs/.vuepress/sidebar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default sidebar({
2323
"connection",
2424
"transaction",
2525
"cursor",
26+
"prepared_statement",
2627
"listener",
2728
"results",
2829
"exceptions",

docs/.vuepress/styles/config.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$code-dark-theme: dracula;
2+
$code-light-theme: one-light;
3+
$theme-color: #264934;

docs/.vuepress/styles/index.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// place your custom styles here
2+
.vp-site-name {
3+
visibility: hidden;
4+
}
5+
6+
.vp-hero-info {
7+
img {
8+
max-width: 60% !important;
9+
padding: 1rem;
10+
}
11+
}
12+
13+
.vp-hero-title {
14+
font-size: 3rem;
15+
}
16+
17+
.vp-actions {
18+
align-items: flex-end;
19+
}

docs/.vuepress/styles/palette.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// you can change colors here

docs/.vuepress/theme.ts

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

0 commit comments

Comments
 (0)