Skip to content

Commit

Permalink
overhaul of main docs site
Browse files Browse the repository at this point in the history
addition of fine grained hugo go module mounts to import and mount external documentation
  • Loading branch information
dean-taylor committed Jul 7, 2023
1 parent 3ea5079 commit 0dcf778
Show file tree
Hide file tree
Showing 78 changed files with 455 additions and 3,372 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/hugo.yaml
@@ -0,0 +1,79 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches:
- main
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.115.1
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./public

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,5 @@ public/
resources/
node_modules/
git_info.json
package-lock.json
.hugo_build.lock
Binary file added assets/scss/._styles_project.scss.swp
Binary file not shown.
41 changes: 2 additions & 39 deletions assets/scss/_styles_project.scss
@@ -1,40 +1,3 @@
/*
Add styles or override variables from the theme here.
*/

.code-file {
max-width: 80%;
}

.filename {
padding: 0.4em 0 0.25em 1em !important;
margin-bottom: -2.75em;
font-weight: bold;

background-color: lightgray !important;
border: 1px solid rgba(0, 0, 0, 0.125);
border-radius: 0.25rem;
}

.logo-container {
max-width: 90%;
}

.col.logo {
min-width: 205px;
}

div.logo {
.card-img-top {
height: 12em;
}

img {
object-fit: contain;
width: 100%;
height: 100%;
padding: 0.75em;
}
.centre {
text-align: center;
}
40 changes: 40 additions & 0 deletions assets/scss/_styles_project.scss-orig
@@ -0,0 +1,40 @@
/*

Add styles or override variables from the theme here.

*/

.code-file {
max-width: 80%;
}

.filename {
padding: 0.4em 0 0.25em 1em !important;
margin-bottom: -2.75em;
font-weight: bold;

background-color: lightgray !important;
border: 1px solid rgba(0, 0, 0, 0.125);
border-radius: 0.25rem;
}

.logo-container {
max-width: 90%;
}

.col.logo {
min-width: 205px;
}

div.logo {
.card-img-top {
height: 12em;
}

img {
object-fit: contain;
width: 100%;
height: 100%;
padding: 0.75em;
}
}
4 changes: 2 additions & 2 deletions assets/scss/_variables_project.scss
@@ -1,6 +1,6 @@
/*
Add styles or override variables from the theme here.
*/

$enable-gradients: false;
$enable-shadows: false;
6 changes: 6 additions & 0 deletions assets/scss/_variables_project.scss-disable
@@ -0,0 +1,6 @@
/*
Add styles or override variables from the theme here.
*/

$enable-gradients: false;
$enable-shadows: false;
File renamed without changes.
118 changes: 0 additions & 118 deletions config.toml

This file was deleted.

Binary file added config/_default/.hugo.toml.swp
Binary file not shown.

0 comments on commit 0dcf778

Please sign in to comment.