Skip to content

Commit bc993a5

Browse files
committed
feat: apply CYBERTEC changes after fork
1 parent d5952d7 commit bc993a5

32 files changed

+961
-215
lines changed

.github/workflows/release.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
env:
9+
RELEASE_TAR: ./dist/hugo-geekdoc.tar.gz
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build assets
26+
run: npm run build
27+
28+
- name: Pack
29+
run: npm run pack
30+
31+
- name: Extract release to directory
32+
run: |
33+
tar -xf ./dist/hugo-geekdoc.tar.gz -C ./dist; rm ./dist/hugo-geekdoc.tar.gz
34+
35+
- name: Push to main branch
36+
uses: s0/git-publish-subdir-action@develop
37+
env:
38+
REPO: self
39+
BRANCH: main
40+
FOLDER: dist
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
SQUASH_HISTORY: true

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# local environments
2+
.idea
23
.swp
34
.env*
45
/dist/
@@ -15,9 +16,8 @@ VERSION
1516
exampleSite/content/de
1617

1718
# auto-generated files
18-
/data/
19+
/data/assets.json
1920
/static/
20-
/assets/sprites/
2121
/resources/
2222
/exampleSite/resources/
2323
/exampleSite/data/sprites/

.tarignore

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ local*
2020
dist
2121
src
2222
build
23+
images
2324
renovate*
2425
resources
2526
CONTRIBUTING.md

README.md

+67-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,70 @@
1-
# Geekdoc
1+
# CYBERTEC Geekdoc
2+
3+
A CYBERTEC themed fork of [geekdoc](https://github.com/thegeeklab/hugo-geekdoc), a Hugo theme made for documentation.
4+
5+
---
6+
7+
## Requirements
8+
9+
- [`go`](https://go.dev/doc/install)
10+
- [`hugo`](https://gohugo.io/installation/)
11+
12+
## Usage
13+
14+
Initialize a new hugo site:
15+
16+
```shell
17+
hugo new site <site-name>
18+
cd <site-name>
19+
```
20+
21+
Initialize the site as a go module:
22+
23+
```shell
24+
hugo mod init github.com/cybertec-postgresql/<repository-name>
25+
```
26+
27+
Add the following to your `hugo.toml` to use this theme, including functional code-highlighting:
28+
29+
```toml
30+
# hugo.toml
31+
pygmentsCodeFences = true
32+
pygmentsUseClasses = true
33+
34+
[module]
35+
[[module.imports]]
36+
path = 'github.com/cybertec-postgresql/hugo-geekdoc'
37+
```
38+
39+
Fetch the module
40+
41+
```shell
42+
hugo mod get -u
43+
```
44+
45+
Build your page
46+
```shell
47+
hugo --minify
48+
# You may optionally overwrite the `baseURL`
49+
hugo --minify -b "/docs/"
50+
```
51+
52+
## Update
53+
54+
To retrieve the latest version of this theme, simply run
55+
56+
```shell
57+
hugo mod get -u
58+
hugo mod tidy
59+
```
60+
61+
## Development
62+
63+
The fork and source code is located inside the `dev` branch. On push, a GitHub Actions workflow will build and push the release to the `main` branch.
64+
65+
The contents below are from the original Geekdoc README.
66+
67+
---
268

369
[![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/hugo-geekdoc/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/hugo-geekdoc)
470
[![Hugo Version](https://img.shields.io/badge/hugo-0.112-blue.svg)](https://gohugo.io)

assets/sprites/cpo.svg

+44
Loading

assets/sprites/cybertec.svg

+67
Loading

assets/sprites/cypex.svg

+61
Loading

assets/sprites/geekdoc.svg

+1
Loading

assets/sprites/migrator.svg

+48
Loading

assets/sprites/pgwatch.svg

+23
Loading

0 commit comments

Comments
 (0)