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
7 changes: 5 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Copy sample content
run: |
cp config.toml.example config.toml
cp -r samples/* ./
- name: Build the Docker image
# run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
run: echo TODO ENT-13823 # docker build --tag nt-docs -f Containerfile .
run: docker build --tag nt-docs -f Containerfile .
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/node_modules
/public
/content
/layouts
/scripts/search/server/node_modules/
config.toml
.hugo_build.lock
4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ ARG TARGETPLATFORM
WORKDIR /docs
ADD https://github.com/gohugoio/hugo/releases/download/v0.160.0/hugo_0.160.0_Linux-64bit.tar.gz hugo.tar.gz
RUN echo "2c49f8f153b159ac81ee76ddeb126e913fadf8d5376a9ddc479e8772766dbde3 hugo.tar.gz" | sha256sum -c
RUN tar -zxvf hugo.tar.gz
RUN tar -zxvf hugo.tar.gz && mv hugo /usr/local/bin/hugo
COPY ./ /docs
RUN npm ci
RUN npm run build:all
RUN ./hugo --logLevel info
RUN hugo --logLevel info
RUN find public -type f -regex '^.*\.\(svg\|css\|html\|xml\|gif\)$' -size +1k -exec gzip -k '{}' \;

FROM nginx:stable-alpine
Expand Down
5 changes: 5 additions & 0 deletions samples/content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "Documentation"
---

Welcome to the documentation.
6 changes: 6 additions & 0 deletions samples/content/getting-started/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Getting Started"
sorting: 1
---

Getting started with the product.
6 changes: 6 additions & 0 deletions samples/content/getting-started/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Introduction"
sorting: 1
---

This is a sample introduction page.
2 changes: 2 additions & 0 deletions samples/layouts/partials/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Loading