Skip to content

Commit 693696b

Browse files
authored
Merge pull request eclipse-volttron#2 from ntenney/main
Initial Hugo site with Arcana template
2 parents d820938 + a424cfb commit 693696b

File tree

10 files changed

+139
-0
lines changed

10 files changed

+139
-0
lines changed

.github/workflows/hugo.yaml

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo 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 Pages
49+
id: pages
50+
uses: actions/configure-pages@v4
51+
- name: Install Node.js dependencies
52+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
53+
- name: Build with Hugo
54+
env:
55+
# For maximum backward compatibility with Hugo modules
56+
HUGO_ENVIRONMENT: production
57+
HUGO_ENV: production
58+
TZ: America/Los_Angeles
59+
run: |
60+
hugo \
61+
--gc \
62+
--minify \
63+
--baseURL "${{ steps.pages.outputs.base_url }}/"
64+
- name: Upload artifact
65+
uses: actions/upload-pages-artifact@v3
66+
with:
67+
path: ./public
68+
69+
# Deployment job
70+
deploy:
71+
environment:
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
74+
runs-on: ubuntu-latest
75+
needs: build
76+
steps:
77+
- name: Deploy to GitHub Pages
78+
id: deployment
79+
uses: actions/deploy-pages@v4
80+

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/arcana"]
2+
path = themes/arcana
3+
url = https://github.com/half-duplex/hugo-arcana.git

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+
+++

data/homepage.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
banner:
2+
enable: true
3+
image: "images/splash-constelation_1.jpg"
4+
contents: "**VOLTTRON:** _Devices | Data | Decisions_"
5+
# button:
6+
# contents: "Learn More"
7+
# url: "#"
8+
items:
9+
- type: highlights
10+
items_per_row: 3
11+
items:
12+
- title: This Is Important
13+
icon: fa-paper-plane
14+
content: >
15+
Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl
16+
amet mattis, sed a rutrum accumsan sed. Suspendisse eu.
17+
- title: Also Important
18+
icon: fa-pencil-alt
19+
content: >
20+
Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl
21+
amet mattis, sed a rutrum accumsan sed. Suspendisse eu.
22+
- title: Probably Important
23+
icon: fa-wrench
24+
content: >
25+
Duis neque nisi, dapibus sed mattis et quis, nibh. Sed et dapibus nisl
26+
amet mattis, sed a rutrum accumsan sed. Suspendisse eu.
27+
- title: Another thing
28+
icon: fa-brush
29+
content: >
30+
This is something I added
31+
- type: heading
32+
heading: A gigantic heading you can use for whatever
33+
contents: With a much smaller subtitle hanging out just below it
34+
- type: posts
35+
#heading: Recent Posts
36+
content_type: posts
37+
max: 4
38+
- type: cta
39+
contents: Are you ready to continue your quest?
40+
button:
41+
contents: Insert Coin
42+
url: "#"

hugo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
baseURL = 'https://eclipse-volttron.github.io/'
2+
languageCode = 'en-us'
3+
title = 'VOLTTRON'
4+
theme = 'arcana'

resources/_gen/assets/scss/sass/main.scss_88528c88a2009b0911739d7978a182fe.content

+3
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"Target":"style.css","MediaType":"text/css","Data":{}}

static/images/banner.jpg

59.5 KB
Loading
17.9 KB
Loading

themes/arcana

Submodule arcana added at 4243c0f

0 commit comments

Comments
 (0)