Skip to content

Commit 9ef5be9

Browse files
committed
first commit
0 parents  commit 9ef5be9

File tree

353 files changed

+109256
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

353 files changed

+109256
-0
lines changed

.codesandbox/tasks.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
// These tasks will run in order when initializing your CodeSandbox project.
3+
"setupTasks": [
4+
{
5+
"name": "Install Dependencies",
6+
"command": "npm install"
7+
}
8+
],
9+
10+
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
11+
"tasks": {
12+
"start": {
13+
"name": "dev",
14+
"command": "npm run dev -- --baseURL=/ --appendPort=false --liveReloadPort=443 --bind=0.0.0.0",
15+
"runAtStart": true
16+
},
17+
"install": {
18+
"name": "install dependencies",
19+
"command": "npm install"
20+
}
21+
}
22+
}

.devcontainer/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04
2+
3+
RUN apt-get update && \
4+
apt-get install -y \
5+
ca-certificates \
6+
nodejs \
7+
npm \
8+
wget && \
9+
update-ca-certificates
10+
11+
ARG HUGO_VERSION="0.131.0"
12+
RUN wget --quiet "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" && \
13+
tar xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz && \
14+
rm -r hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz && \
15+
mv hugo /usr/bin && \
16+
chmod 755 /usr/bin/hugo
17+
18+
WORKDIR /src
19+
COPY ./ /src

.devcontainer/devcontainer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"build": {
3+
"dockerfile": "./Dockerfile"
4+
}
5+
}

.github/workflows/cicd.yaml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Sample workflow for building and deploying a Thulite site to GitHub Pages
2+
name: Deploy docs site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches:
8+
- main
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
concurrency:
22+
group: "pages"
23+
cancel-in-progress: false
24+
25+
# Default to bash
26+
defaults:
27+
run:
28+
shell: bash
29+
30+
jobs:
31+
# Build job
32+
build:
33+
runs-on: ubuntu-latest
34+
env:
35+
HUGO_VERSION: 0.126.0
36+
steps:
37+
- name: Install Hugo CLI
38+
run: |
39+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
40+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
41+
- name: Install Dart Sass
42+
run: sudo snap install dart-sass
43+
- name: Checkout
44+
uses: actions/checkout@v4
45+
with:
46+
submodules: recursive
47+
fetch-depth: 0
48+
- name: Setup Node.js
49+
uses: actions/setup-node@v4
50+
with:
51+
node-version: '20'
52+
cache: 'npm'
53+
- name: Setup Pages
54+
id: pages
55+
uses: actions/configure-pages@v4
56+
- name: Install dependencies
57+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
58+
- name: Build production website
59+
env:
60+
# For maximum backward compatibility with Hugo modules
61+
HUGO_ENVIRONMENT: production
62+
HUGO_ENV: production
63+
run: |
64+
npm run build \
65+
-- \
66+
--baseURL "${{ steps.pages.outputs.base_url }}/"
67+
- name: Upload artifact
68+
uses: actions/upload-pages-artifact@v3
69+
with:
70+
path: ./public
71+
72+
# Deployment job
73+
deploy:
74+
environment:
75+
name: github-pages
76+
url: ${{ steps.deployment.outputs.page_url }}
77+
runs-on: ubuntu-latest
78+
needs: build
79+
steps:
80+
- name: Deploy to GitHub Pages
81+
id: deployment
82+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

.gitpod.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Source: https://github.com/gitpod-io/template-hugo/blob/main/.gitpod.yml
2+
3+
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
4+
tasks:
5+
- name: Run start up tasks
6+
before: brew install hugo
7+
init: pnpm install
8+
command: hugo server --baseURL $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0 --disableFastRender --noHTTPCache --navigateToChanged
9+
10+
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
11+
ports:
12+
- port: 1313
13+
onOpen: open-preview

.hugo_build.lock

Whitespace-only changes.

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.env
2+
.netlify
3+
.hugo_build.lock
4+
node_modules
5+
public
6+
resources

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
enable-pre-post-scripts=true
2+
auto-install-peers=true
3+
node-linker=hoisted
4+
prefer-symlinked-executables=false

.prettierignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.html
2+
*.ico
3+
*.png
4+
*.jp*g
5+
*.toml
6+
*.*ignore
7+
*.svg
8+
*.xml
9+
LICENSE
10+
.npmrc
11+
.gitkeep
12+
*.woff*

0 commit comments

Comments
 (0)