Skip to content

Commit 1158a76

Browse files
authored
Merge pull request #1 from tupyy/main
Add Hugo site with Docsy theme and fix SCSS build errors
2 parents 9efd7c9 + 5d4d3cf commit 1158a76

Some content is hidden

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

57 files changed

+3059
-0
lines changed

.github/workflows/hugo.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Deploy Hugo site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
defaults:
19+
run:
20+
shell: bash
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
env:
26+
HUGO_VERSION: 0.146.0
27+
steps:
28+
- name: Install Hugo CLI
29+
run: |
30+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
31+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
32+
33+
- name: Install Dart Sass
34+
run: sudo snap install dart-sass
35+
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
with:
39+
submodules: recursive
40+
fetch-depth: 0
41+
42+
- name: Setup Pages
43+
id: pages
44+
uses: actions/configure-pages@v5
45+
46+
- name: Setup Node.js
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: '20'
50+
cache: 'npm'
51+
52+
- name: Install Node.js dependencies
53+
run: npm ci
54+
55+
- name: Setup Hugo modules
56+
run: hugo mod get -u
57+
58+
- name: Build with Hugo
59+
env:
60+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
61+
HUGO_ENVIRONMENT: production
62+
TZ: America/Los_Angeles
63+
run: |
64+
hugo \
65+
--gc \
66+
--minify \
67+
--baseURL "${{ steps.pages.outputs.base_url }}/"
68+
69+
- name: Upload artifact
70+
uses: actions/upload-pages-artifact@v3
71+
with:
72+
path: ./public
73+
74+
deploy:
75+
environment:
76+
name: github-pages
77+
url: ${{ steps.deployment.outputs.page_url }}
78+
runs-on: ubuntu-latest
79+
needs: build
80+
steps:
81+
- name: Deploy to GitHub Pages
82+
id: deployment
83+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Hugo build output
2+
public/
3+
resources/
4+
.hugo_build.lock
5+
6+
# Node.js dependencies
7+
node_modules/
8+
9+
# OS files
10+
.DS_Store
11+
Thumbs.db

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/docsy"]
2+
path = themes/docsy
3+
url = https://github.com/google/docsy

Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.PHONY: serve build clean deps install-hugo
2+
3+
HUGO_VERSION ?= 0.146.0
4+
HUGO_BIN ?= $(GOPATH)/bin/hugo
5+
6+
# Run local development server
7+
serve:
8+
hugo server --buildDrafts --bind 0.0.0.0
9+
10+
# Build the static site
11+
build:
12+
hugo --minify
13+
14+
# Clean build artifacts
15+
clean:
16+
rm -rf public resources
17+
18+
# Install/update Hugo module dependencies
19+
deps:
20+
hugo mod get -u
21+
hugo mod tidy
22+
23+
# Install Hugo extended version
24+
install-hugo:
25+
CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@v$(HUGO_VERSION)
26+
@echo "Hugo extended installed. Verify with: hugo version"

archetypes/default.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
date = '{{ .Date }}'
3+
draft = true
4+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
5+
+++

assets/scss/_blog.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Blog page styles
2+
3+
.td-blog {
4+
// Add blog-specific styles here
5+
}

assets/scss/_custom_colors.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Dark blue color palette
2+
$dark-blue-primary: #0d1b2a;
3+
$dark-blue-secondary: #1b263b;
4+
$dark-blue-accent: #415a77;
5+
$dark-blue-light: #778da9;
6+
$white: #e0e1dd;
7+
8+
// Docsy theme block spacing variables
9+
$spacer: 1rem !default;
10+
$td-block-space-top-base: 4 * $spacer !default;
11+
$td-block-space-bottom-base: 4 * $spacer !default;

assets/scss/_docs.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Documentation page styles
2+
3+
.td-doc {
4+
// Add documentation-specific styles here
5+
}

assets/scss/_landing.scss

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// Landing page styles
2+
3+
.td-home {
4+
display: flex;
5+
flex-direction: column;
6+
min-height: 100vh;
7+
background-color: $dark-blue-primary;
8+
9+
.container-fluid {
10+
padding-left: 0;
11+
padding-right: 0;
12+
}
13+
14+
.td-main {
15+
flex: 1 0 auto;
16+
display: flex;
17+
flex-direction: column;
18+
background-color: $dark-blue-primary;
19+
}
20+
21+
.td-box--primary {
22+
flex: 1 0 auto;
23+
display: flex;
24+
align-items: center;
25+
justify-content: center;
26+
background-color: $dark-blue-secondary;
27+
}
28+
29+
.td-cover-block {
30+
background-color: $dark-blue-primary;
31+
}
32+
33+
.td-cover-block-0 {
34+
min-height: 70vh;
35+
flex: 0 0 70%;
36+
}
37+
38+
.td-navbar {
39+
background-color: $dark-blue-primary;
40+
}
41+
42+
.td-arrow-down svg,
43+
.td-arrow-down::before,
44+
.td-arrow-down::after {
45+
display: none;
46+
}
47+
48+
footer {
49+
margin: 0;
50+
padding: 0;
51+
width: 100%;
52+
max-width: 100%;
53+
margin-top: auto;
54+
flex-shrink: 0;
55+
background-color: $dark-blue-accent;
56+
57+
.container-fluid {
58+
margin: 0;
59+
padding-left: 0;
60+
padding-right: 0;
61+
max-width: 100%;
62+
}
63+
64+
.bg-dark {
65+
background-color: $dark-blue-accent;
66+
}
67+
68+
.bg-secondary {
69+
background-color: $dark-blue-primary;
70+
}
71+
}
72+
}

assets/scss/_styles_project.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Custom styles for Assisted Migration - Dark Blue Theme
2+
3+
// Import style partials (variables are now in _variables_project.scss)
4+
@import "landing";
5+
@import "docs";
6+
@import "blog";

0 commit comments

Comments
 (0)