This commit is contained in:
commit
9c827c14cd
22 changed files with 297 additions and 0 deletions
18
.dockerignore
Normal file
18
.dockerignore
Normal file
|
@ -0,0 +1,18 @@
|
|||
###############
|
||||
# Directories #
|
||||
###############
|
||||
|
||||
.concourse/
|
||||
public/
|
||||
deploy/helm/
|
||||
.git/
|
||||
|
||||
#########
|
||||
# Files #
|
||||
#########
|
||||
|
||||
Dockerfile
|
||||
LICENSE
|
||||
README.md
|
||||
.gitignore
|
||||
.dockerignore
|
19
.drone.yml
Normal file
19
.drone.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: Build image
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
commands:
|
||||
- |
|
||||
echo "{\"auths\": {\"https://code.icb4dc0.de\": {\"auth\" : \"$(printf '%s:%s' $GITEA_USER $GITEA_TOKEN | base64)\" }}}" > /kaniko/.docker/config.json
|
||||
/kaniko/executor \
|
||||
--destination code.icb4dc0.de/buildr/docs:latest \
|
||||
--destination code.icb4dc0.de/buildr/docs:$DRONE_COMMIT_SHA \
|
||||
--context .
|
||||
environment:
|
||||
GITEA_USER: prskr
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
14
.gitignore
vendored
Normal file
14
.gitignore
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
# ---> Hugo
|
||||
# Generated files by hugo
|
||||
/public/
|
||||
/resources/_gen/
|
||||
/assets/jsconfig.json
|
||||
hugo_stats.json
|
||||
|
||||
# Executable may be added to repository
|
||||
hugo.exe
|
||||
hugo.darwin
|
||||
hugo.linux
|
||||
|
||||
# Temporary lock file while building
|
||||
/.hugo_build.lock
|
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM docker.io/golang:1.20-alpine as builder
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
RUN apk add -U --no-cache hugo git
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
COPY . /src/
|
||||
|
||||
RUN hugo --minify --environment production --config config.toml
|
||||
|
||||
FROM code.icb4dc0.de/prskr/ci-images/caddy:latest as final
|
||||
|
||||
COPY --from=builder /src/public /usr/share/caddy/docs/
|
||||
COPY deploy/caddy/Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
CMD [ "run", "--config=/etc/caddy/Caddyfile" ]
|
1
archetypes/default.md
Normal file
1
archetypes/default.md
Normal file
|
@ -0,0 +1 @@
|
|||
title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} draft: true
|
0
assets/.gitkeep
Normal file
0
assets/.gitkeep
Normal file
19
config.toml
Normal file
19
config.toml
Normal file
|
@ -0,0 +1,19 @@
|
|||
baseURL = 'https://docs.buildr.icb4dc0.de/'
|
||||
languageCode = 'en-us'
|
||||
theme = ['github.com/McShelby/hugo-theme-relearn']
|
||||
pluralizelisttitles = false
|
||||
title = "BuildR"
|
||||
|
||||
[Params]
|
||||
author = "Peter Kurfer"
|
||||
description = "BuildR docs"
|
||||
style= "auto"
|
||||
copyCodeButton = true
|
||||
rssAsSocialIcon = true
|
||||
ordersectionsby = "weight"
|
||||
themeVariant = "relearn-light"
|
||||
collapsibleMenu = true
|
||||
|
||||
|
||||
[outputs]
|
||||
home = [ "HTML", "RSS", "JSON"]
|
11
content/01-installation/01-basics.md
Normal file
11
content/01-installation/01-basics.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
80 B
|
||||
Markdown
|
||||
+++
|
||||
title = "Basics"
|
||||
chapter = true
|
||||
weight = 15
|
||||
pre = "<b>1. </b>"
|
||||
+++
|
||||
|
||||
# Basics
|
8
content/01-installation/_index.md
Normal file
8
content/01-installation/_index.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
title = "Installation"
|
||||
chapter = true
|
||||
weight = 10
|
||||
pre = "<b>1. </b>"
|
||||
+++
|
||||
|
||||
# Installation
|
8
content/02-getting-started/01-tools.md
Normal file
8
content/02-getting-started/01-tools.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
+++
|
||||
title = "Tools"
|
||||
chapter = true
|
||||
weight = 15
|
||||
pre = "<b>1. </b>"
|
||||
+++
|
||||
|
||||
# Tools
|
6
content/02-getting-started/_index.md
Normal file
6
content/02-getting-started/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "Getting started"
|
||||
chapter = true
|
||||
weight = 20
|
||||
pre = "<b>2. </b>"
|
||||
+++
|
6
content/03-components/_index.md
Normal file
6
content/03-components/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "Components"
|
||||
chapter = true
|
||||
weight = 30
|
||||
pre = "<b>3. </b>"
|
||||
+++
|
1
content/_index.md
Normal file
1
content/_index.md
Normal file
|
@ -0,0 +1 @@
|
|||
# BuildR documentation
|
0
data/.gitkeep
Normal file
0
data/.gitkeep
Normal file
8
deploy/caddy/Caddyfile
Normal file
8
deploy/caddy/Caddyfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
:3000
|
||||
|
||||
encode zstd gzip
|
||||
|
||||
file_server {
|
||||
index index.html
|
||||
root /usr/share/caddy/docs
|
||||
}
|
59
deploy/k8s/deployment.yaml
Normal file
59
deploy/k8s/deployment.yaml
Normal file
|
@ -0,0 +1,59 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: buildr-docs
|
||||
namespace: buildr
|
||||
labels:
|
||||
app.kubernetes.io/name: buildr-docs
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: buildr-docs
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: buildr-docs
|
||||
spec:
|
||||
containers:
|
||||
- name: inetmock-docs
|
||||
image: code.icb4dc0.de/buildr/docs
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 3000
|
||||
protocol: TCP
|
||||
resources:
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 60Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 20Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
scheme: HTTP
|
||||
timeoutSeconds: 1
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
scheme: HTTP
|
||||
timeoutSeconds: 1
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
runAsUser: 65532
|
||||
runAsNonRoot: true
|
||||
readOnlyRootFilesystem: true
|
||||
allowPrivilegeEscalation: false
|
21
deploy/k8s/ingress.yaml
Normal file
21
deploy/k8s/ingress.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: buildr-docs
|
||||
namespace: buildr
|
||||
labels:
|
||||
app.kubernetes.io/name: buildr-docs
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: docs.buildr.icb4dc0.de
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: buildr-docs
|
||||
port:
|
||||
number: 3000
|
2
deploy/k8s/kustomization.yaml
Normal file
2
deploy/k8s/kustomization.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
17
deploy/k8s/service.yaml
Normal file
17
deploy/k8s/service.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: buildr-docs
|
||||
namespace: buildr
|
||||
labels:
|
||||
app.kubernetes.io/name: buildr-docs
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 3000
|
||||
targetPort: http
|
||||
selector:
|
||||
app.kubernetes.io/name: buildr-docs
|
||||
type: ClusterIP
|
5
go.mod
Normal file
5
go.mod
Normal file
|
@ -0,0 +1,5 @@
|
|||
module code.icb4dc0.de/buildr/docs
|
||||
|
||||
go 1.20
|
||||
|
||||
require github.com/McShelby/hugo-theme-relearn v0.0.0-20230328175528-8d474ed3b16b // indirect
|
2
go.sum
Normal file
2
go.sum
Normal file
|
@ -0,0 +1,2 @@
|
|||
github.com/McShelby/hugo-theme-relearn v0.0.0-20230328175528-8d474ed3b16b h1:jxQtSeFMg84UClWIS1sxQXCraGeGmTsq+SBFHvaN4/k=
|
||||
github.com/McShelby/hugo-theme-relearn v0.0.0-20230328175528-8d474ed3b16b/go.mod h1:mKQQdxZNIlLvAj8X3tMq+RzntIJSr9z7XdzuMomt0IM=
|
54
layouts/partials/logo.html
Normal file
54
layouts/partials/logo.html
Normal file
|
@ -0,0 +1,54 @@
|
|||
<style>
|
||||
#logo svg,
|
||||
#logo svg * {
|
||||
color: #282828;
|
||||
color: var(--MENU-SECTIONS-BG-color);
|
||||
fill: #282828 !important;
|
||||
fill: var(--MENU-SECTIONS-BG-color) !important;
|
||||
opacity: .945;
|
||||
}
|
||||
a#logo {
|
||||
color: #282828;
|
||||
color: var(--MENU-SECTIONS-BG-color);
|
||||
font-family: 'Work Sans', 'Helvetica', 'Tahoma', 'Geneva', 'Arial', sans-serif;
|
||||
font-size: 30px;
|
||||
font-weight: 300;
|
||||
margin-top: -13px;
|
||||
margin-left: -100px;
|
||||
max-width: 60%;
|
||||
text-transform: uppercase;
|
||||
width: 226px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
a#logo:hover {
|
||||
color: #282828;
|
||||
color: var(--MENU-SECTIONS-BG-color);
|
||||
}
|
||||
#logo svg {
|
||||
margin-bottom: -20px;
|
||||
margin-left: -23.5px;
|
||||
width: 40.5%;
|
||||
}
|
||||
@media only all and (max-width: 59.938em) {
|
||||
a#logo {
|
||||
font-size: 25px;
|
||||
margin-top: -3px;
|
||||
}
|
||||
#logo svg {
|
||||
margin-bottom: -12px;
|
||||
margin-left: -23px;
|
||||
}
|
||||
}
|
||||
@media all and (-ms-high-contrast:none) {
|
||||
{{ "/* IE11s understanding of positioning is weird at best */" | safeCSS }}
|
||||
a#logo {
|
||||
margin-top: -58px;
|
||||
}
|
||||
#logo svg {
|
||||
margin-bottom: -62px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<a id="logo" href="{{ partial "relLangPrettyUglyURL.hugo" (dict "to" .Site.Home) }}">
|
||||
BuildR docs
|
||||
</a>
|
Loading…
Reference in a new issue