Skip to content

Commit

Permalink
chore: add .idea to gitignore
Browse files Browse the repository at this point in the history
feat: add custom `hugo.toml`

feat: add products to more menu

feat: add `A product of CYBERTEC` at the bottom of pages

wip

ci: add release workflow

ci: add `runs-on` directive

ci: fix tar command

ci: remove tar after extract

ci: fix directory

ci: put source on `dev` and push dist to `main`

ci: squash history on main branch

ci: fix dist folder

docs: update readme
  • Loading branch information
KieranKaelin committed Aug 26, 2024
1 parent d5952d7 commit f1c3e2a
Show file tree
Hide file tree
Showing 32 changed files with 959 additions and 215 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release

on:
push:
branches:
- dev

env:
RELEASE_TAR: ./dist/hugo-geekdoc.tar.gz

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build assets
run: npm run build

- name: Pack
run: npm run pack

- name: Extract release to directory
run: |
tar -xf ./dist/hugo-geekdoc.tar.gz -C ./dist; rm ./dist/hugo-geekdoc.tar.gz
- name: Push to main branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: main
FOLDER: dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SQUASH_HISTORY: true
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# local environments
.idea
.swp
.env*
/dist/
Expand All @@ -15,9 +16,8 @@ VERSION
exampleSite/content/de

# auto-generated files
/data/
/data/assets.json
/static/
/assets/sprites/
/resources/
/exampleSite/resources/
/exampleSite/data/sprites/
Expand Down
1 change: 1 addition & 0 deletions .tarignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ local*
dist
src
build
images
renovate*
resources
CONTRIBUTING.md
66 changes: 65 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,68 @@
# Geekdoc
# CYBERTEC Geekdoc

A CYBERTEC themed fork of [geekdoc](https://github.com/thegeeklab/hugo-geekdoc), a Hugo theme made for documentation.

---

## Requirements

- [`go`](https://go.dev/doc/install)
- [`hugo`](https://gohugo.io/installation/)

## Usage

Initialize a new hugo site:

```shell
hugo new site <site-name>
cd <site-name>
```

Initialize the site as a go module:

```shell
hugo mod init github.com/cybertec-postgresql/<repository-name>
```

Add the following to your `hugo.toml` to use this theme, including functional code-highlighting:

```toml
# hugo.toml
pygmentsCodeFences = true
pygmentsUseClasses = true

[module]
[[module.imports]]
path = 'github.com/cybertec-postgresql/hugo-geekdoc'
```

Fetch the module

```shell
hugo mod get -u
```

Build your page
```shell
hugo --minify
# You may optionally overwrite the `baseURL`
hugo --minify -b "/docs/"
```

## Update

To retrieve the latest version of this theme, simply run

```shell
hugo mod get -u
hugo mod tidy
```

## Fork

The contents below are from the original Geekdoc README.

---

[![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/hugo-geekdoc/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/hugo-geekdoc)
[![Hugo Version](https://img.shields.io/badge/hugo-0.112-blue.svg)](https://gohugo.io)
Expand Down
44 changes: 44 additions & 0 deletions assets/sprites/cpo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions assets/sprites/cybertec.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions assets/sprites/cypex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/sprites/geekdoc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions assets/sprites/migrator.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions assets/sprites/pgwatch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f1c3e2a

Please sign in to comment.