Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[submodule "themes/github.com/twbs/bootstrap"]
path = themes/github.com/twbs/bootstrap
url = https://github.com/twbs/bootstrap.git
[submodule "themes/github.com/FortAwesome/Font-Awesome"]
path = themes/github.com/FortAwesome/Font-Awesome
url = https://github.com/FortAwesome/Font-Awesome.git
[submodule "themes/docsy"]
path = themes/docsy
url = https://github.com/google/docsy.git
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
FROM klakegg/hugo:0.111.3-ext-ubuntu as builder
FROM registry.access.redhat.com/ubi10/ubi as builder

ARG HUGO_VERSION=0.155.2

WORKDIR /src

RUN dnf install -y golang git nodejs
RUN curl -sL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz \
| tar -C /usr/bin -xzf - hugo

COPY . /src/

RUN set -x && HUGO_ENV=production make generate

FROM nginxinc/nginx-unprivileged:1.18-alpine
FROM nginxinc/nginx-unprivileged:1.29-alpine

COPY --from=builder /src/public/ /usr/share/nginx/html/
COPY --from=builder /src/static/googlea8e04f239c597b8a.html /usr/share/nginx/html/
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
generate:
npm install -D --unsafe-perm=true --save postcss postcss-cli autoprefixer && cd themes/docsy && git submodule update -f --init && cd ../.. && hugo --gc --minify
npm install --save-dev postcss postcss-cli autoprefixer && git submodule update -f --init && hugo --gc --minify
image:
podman build -t ci-docs -f Dockerfile .
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
date = '{{ .Date }}'
draft = true
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++
11 changes: 0 additions & 11 deletions hack/codeescape.sh

This file was deleted.

File renamed without changes.
3 changes: 0 additions & 3 deletions layouts/index.html

This file was deleted.

49 changes: 0 additions & 49 deletions layouts/partials/head-css.html

This file was deleted.

Loading