Skip to content

Commit b06a506

Browse files
committed
feat: initialize z5labs main site
0 parents  commit b06a506

File tree

7 files changed

+167
-0
lines changed

7 files changed

+167
-0
lines changed

.github/workflows/docs.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- docs/**
9+
- .github/workflows/docs.yaml
10+
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: false
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
env:
19+
HUGO_VERSION: 0.131.0
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
23+
24+
- name: Install Hugo CLI
25+
run: |
26+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
27+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
28+
29+
- name: Install Dart Sass
30+
run: sudo snap install dart-sass
31+
32+
- name: Install docsy prerequisites
33+
run: |
34+
cd docs
35+
npm install -D postcss postcss-cli autoprefixer
36+
37+
- name: Setup Pages
38+
id: pages
39+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
40+
41+
- name: Build with Hugo
42+
env:
43+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
44+
HUGO_ENVIRONMENT: production
45+
TZ: America/Los_Angeles
46+
run: |
47+
cd docs
48+
hugo \
49+
--gc \
50+
--minify \
51+
--baseURL "${{ steps.pages.outputs.base_url }}/"
52+
53+
- name: Upload Artifact
54+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
55+
with:
56+
path: ./docs/public
57+
58+
deploy:
59+
runs-on: ubuntu-latest
60+
needs: [ build ]
61+
permissions:
62+
pages: write
63+
id-token: write
64+
environment:
65+
name: github-pages
66+
url: ${{ steps.deployment.outputs.page_url }}
67+
steps:
68+
- name: Deploy to Github Pages
69+
id: deployment
70+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#############
2+
# Hugo #
3+
#############
4+
5+
public/
6+
resources/_gen/
7+
.hugo_build.lock
8+
package.json
9+
package-lock.json

archetypes/default.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
3+
date = {{ .Date }}
4+
draft = true
5+
+++

content/_index.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Welcome!
3+
type: docs
4+
no_list: true
5+
---
6+
7+
Hello World!

go.mod

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/z5labs/z5labs.github.io
2+
3+
go 1.23.0
4+
5+
require github.com/google/docsy v0.11.0 // indirect

go.sum

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/FortAwesome/Font-Awesome v0.0.0-20240716171331-37eff7fa00de/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
2+
github.com/google/docsy v0.11.0 h1:QnV40cc28QwS++kP9qINtrIv4hlASruhC/K3FqkHAmM=
3+
github.com/google/docsy v0.11.0/go.mod h1:hGGW0OjNuG5ZbH5JRtALY3yvN8ybbEP/v2iaK4bwOUI=
4+
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

hugo.yaml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
title: Z5Labs
2+
language: en-us
3+
4+
module:
5+
hugoVersion:
6+
extended: true
7+
min: "0.73.0"
8+
imports:
9+
- path: "github.com/google/docsy"
10+
11+
enableRobotsTXT: true
12+
13+
# Will give values to .Lastmod etc.
14+
enableGitInfo: true
15+
16+
imaging:
17+
resampleFilter: CatmullRom
18+
quality: 75
19+
anchor: smart
20+
21+
# Highlighting config
22+
pygmentsCodeFences: true
23+
pygmentsUseClasses: false
24+
# Use the new Chroma Go highlighter in Hugo.
25+
pygmentsUseClassic: false
26+
# pygmentsOptions: "linenos=table"
27+
# See https://help.farbox.com/pygments.html
28+
pygmentsStyle: tango
29+
30+
markup:
31+
goldmark:
32+
parser:
33+
attribute:
34+
block: true
35+
renderer:
36+
unsafe: true
37+
highlight:
38+
style: tango
39+
40+
outputs:
41+
section: [HTML, print, RSS]
42+
43+
params:
44+
github_repo: https://github.com/z5labs/z5labs.github.io
45+
github_project_repo: https://github.com/z5labs/z5labs.github.io
46+
47+
offlineSearch: true
48+
prism_syntax_highlighting: false
49+
50+
copyright:
51+
authors: Z5Labs and Contributors | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0)
52+
from_year: 2025
53+
54+
ui:
55+
showLightDarkModeMenu: true
56+
breadcrumb_disable: false
57+
navbar_logo: false
58+
navbar_translucent_over_cover_disable: false
59+
sidebar_menu_compact: false
60+
sidebar_search_disable: true
61+
62+
links:
63+
developer:
64+
- name: GitHub
65+
url: https://github.com/z5labs/
66+
icon: fab fa-github
67+
desc: Development takes place here!

0 commit comments

Comments
 (0)