Skip to content

Commit d964660

Browse files
committed
dbgate images
1 parent eeff6b4 commit d964660

File tree

136 files changed

+818
-0
lines changed

Some content is hidden

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

136 files changed

+818
-0
lines changed

.github/workflows/hugo.yaml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Deploy Hugo site to Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches:
7+
- master
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
# Default to bash
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
env:
34+
HUGO_VERSION: 0.140.1
35+
steps:
36+
- name: Install Hugo CLI
37+
run: |
38+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40+
# - name: Install Dart Sass
41+
# run: sudo snap install dart-sass
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
with:
45+
submodules: recursive
46+
fetch-depth: 0
47+
- name: Setup Pages
48+
id: pages
49+
uses: actions/configure-pages@v5
50+
- name: Use Node.js 22.x
51+
uses: actions/setup-node@v1
52+
with:
53+
node-version: 22.x
54+
- name: yarn install
55+
run: |
56+
yarn install
57+
- name: Build with Hugo
58+
env:
59+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
60+
HUGO_ENVIRONMENT: production
61+
TZ: America/Los_Angeles
62+
run: |
63+
hugo \
64+
--gc \
65+
--minify \
66+
--baseURL "${{ steps.pages.outputs.base_url }}/"
67+
- name: Upload artifact
68+
uses: actions/upload-pages-artifact@v3
69+
with:
70+
path: ./public
71+
72+
# Deployment job
73+
deploy:
74+
environment:
75+
name: github-pages
76+
url: ${{ steps.deployment.outputs.page_url }}
77+
runs-on: ubuntu-latest
78+
needs: build
79+
steps:
80+
- name: Deploy to GitHub Pages
81+
id: deployment
82+
uses: actions/deploy-pages@v4

.hugo_build.lock

Whitespace-only changes.

hugo.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
baseURL = 'https://dbgate.io/'
2+
languageCode = 'en-us'
3+
title = 'DbGate'
4+
disableKinds = ["taxonomy"]
5+
enableRobotsTXT = true
6+
7+
[module]
8+
[module.hugoVersion]
9+
extended = false
10+
min = "0.116.0"
11+
12+
[pagination]
13+
disableAliases = false
14+
pagerSize = 50
15+
path = 'page'
16+
17+
[markup]
18+
[markup.goldmark]
19+
[markup.goldmark.renderer]
20+
unsafe = true
21+
22+
[sitemap]
23+
exclude = ["purchase"]

layouts/_default/home.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{{ $files := readDir "static/img" }}
2+
{{ $names := slice }}
3+
4+
{{ range $files }}
5+
{{ if hasSuffix .Name "-dark.png" }}
6+
{{ $names = $names | append (substr .Name 0 -9) }}
7+
{{ end }}
8+
{{ end }}
9+
10+
<table width="100%">
11+
<thead>
12+
<tr>
13+
<th>Base Name</th>
14+
<th>Dark</th>
15+
<th>Light</th>
16+
</tr>
17+
</thead>
18+
<tbody>
19+
{{ range $name := $names }}
20+
<tr>
21+
<td>{{ $name }}</td>
22+
<td>
23+
<a href="img/{{ $name }}-dark.png">
24+
<img src="img/{{ $name }}-dark.png" alt="{{ $name }} dark" width="200px" />
25+
</a>
26+
</td>
27+
<td>
28+
<a href="img/{{ $name }}-light.png">
29+
<img src="img/{{ $name }}-light.png" alt="{{ $name }} light" width="200px" />
30+
</a>
31+
</td>
32+
</tr>
33+
{{ end }}
34+
</tbody>
35+
</table>
36+

public/img/authadmin-dark.png

106 KB

public/img/authadmin-light.png

106 KB

public/img/charts-dark.png

59.4 KB

public/img/charts-light.png

58.4 KB

public/img/collection-dark.png

132 KB

public/img/collection-light.png

131 KB

0 commit comments

Comments
 (0)