fix: links

This commit is contained in:
George Cushen 2023-11-07 23:09:38 +00:00
commit 9b2e271c7c
830 changed files with 4612 additions and 1131 deletions

View file

@ -4,7 +4,7 @@
cd ..
cp node_modules/jquery/dist/jquery.min.js wowchemy/assets/js/_vendor/
cp node_modules/instant.page/instantpage.js wowchemy/assets/js/_vendor/
cp -r 'node_modules/@fortawesome/fontawesome-free/webfonts' wowchemy/static/
cp -r 'node_modules/@fortawesome/fontawesome-free/css/all.min.css' wowchemy/assets/css/libs/fontawesome
cp node_modules/jquery/dist/jquery.min.js blox-bootstrap/assets/js/_vendor/
cp node_modules/instant.page/instantpage.js blox-bootstrap/assets/js/_vendor/
cp -r 'node_modules/@fortawesome/fontawesome-free/webfonts' blox-bootstrap/static/
cp -r 'node_modules/@fortawesome/fontawesome-free/css/all.min.css' blox-bootstrap/assets/css/libs/fontawesome

View file

@ -1,5 +1,5 @@
#!/usr/bin/env zsh
# Generate preprocessed resources for demo site whilst also removing disused resources.
# Run this script from the root Wowchemy dir.
HUGO_THEME=wowchemy-hugo-themes hugo --source exampleSite --themesDir ../../ --gc
# Run this script from the root Hugo Blox dir.
HUGO_THEME=hugo-blox-builder hugo --source exampleSite --themesDir ../../ --gc

View file

@ -2,14 +2,14 @@
# List Available Language Packs
# Used for updating the Languages page of the documentation.
# https://wowchemy.com
# https://hugoblox.com
#
# Prerequisites: pip3 install PyYAML
import yaml
from pathlib import Path
LANG_PATH = Path(__file__).resolve().parent.parent.joinpath('wowchemy').joinpath('data').joinpath('i18n')
LANG_PATH = Path(__file__).resolve().parent.parent.joinpath('blox-tailwind').joinpath('data').joinpath('i18n')
LANG_YAML = LANG_PATH.joinpath('languages.yaml')

View file

@ -1,8 +1,8 @@
#!/usr/bin/env python3
# Sync Language Packs
# Script to synchronize each language pack's items against Wowchemy's master pack (English).
# https://wowchemy.com
# Script to synchronize each language pack's items against Hugo Blox's master pack (English).
# https://hugoblox.com
#
# Prerequisites: pip3 install ruamel.yaml
# Note: we use Ruamel rather than PyYAML in order to preserve comments in language packs.
@ -12,7 +12,7 @@ from pathlib import Path
from ruamel.yaml import YAML
I18N_PATH = Path(__file__).resolve().parents[1].joinpath(
'modules', 'wowchemy', 'i18n')
'modules', 'blox-tailwind', 'i18n')
MASTER_PACK = I18N_PATH.joinpath('en.yaml')
yaml = YAML()

View file

@ -6,8 +6,8 @@
# 3. update renamed dir in _mixins.scss to `@import "_vendor/rfs";`
# 4. update jQuery and Popper CDN dependencies
ASSETS_JS_DIR="wowchemy/assets/js/_vendor/"
ASSETS_SCSS_DIR="wowchemy/assets/scss/_vendor/"
ASSETS_JS_DIR="blox-bootstrap/assets/js/_vendor/"
ASSETS_SCSS_DIR="blox-bootstrap/assets/scss/_vendor/"
mkdir -p $ASSETS_SCSS_DIR/bootstrap/

View file

@ -1,9 +1,30 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
exitfn () {
trap SIGINT # Restore signal handling for SIGINT
cd ../..
exit # then exit script.
}
trap "exitfn" INT # Set up SIGINT trap to call function.
# export HUGO_STATS_PATH="./starters/$1/hugo_stats.json"
# printf 'HUGO_STATS_PATH: %s\n' "$HUGO_STATS_PATH"
# `--source "starters/$1"` won't work for Tailwind Module
# due to Hugo limitation requiring Hugo to be run from site dir
cd "starters/$1"
WC_DEMO=true \
HUGO_ENVIRONMENT=development \
HUGOxPARAMSxCMSxLOCAL_BACKEND=true \
HUGO_MODULE_REPLACEMENTS="github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5 -> ../../../modules/wowchemy,
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify -> ../../../modules/wowchemy-plugin-netlify,
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-reveal -> ../../../modules/wowchemy-plugin-reveal,
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify-cms -> ../../../modules/wowchemy-plugin-netlify-cms" \
hugo server --panicOnWarning --renderStaticToDisk -F --port 8081 --bind 0.0.0.0 \
--source "starters/$1"
HUGO_MODULE_REPLACEMENTS="github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 -> ../../../modules/blox-bootstrap,
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify -> ../../../modules/blox-plugin-netlify,
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal -> ../../../modules/blox-plugin-reveal,
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind -> ../../../modules/blox-tailwind,
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms -> ../../../modules/blox-plugin-decap-cms,
github.com/HugoBlox/hugo-blox-builder/modules/blox-core -> ../../../modules/blox-core,
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo -> ../../../modules/blox-seo" \
hugo server --panicOnWarning --renderStaticToDisk -F --port 8081 --bind 0.0.0.0
trap SIGINT # Restore signal handling to previous before exit.

View file

@ -1,5 +1,5 @@
#!/usr/bin/env zsh
HUGOxPARAMSxCMSxLOCAL_BACKEND=true \
hugo server --panicOnWarning --renderStaticToDisk -F --port 80 --bind 0.0.0.0 \
hugo server --panicOnWarning --renderStaticToDisk -F --port 8081 --bind 0.0.0.0 \
--source "starters/$1"

View file

@ -1,11 +1,11 @@
#!/usr/bin/env zsh
# View the demo site on any local devices by binding the local IP on port 1315.
# Run this script from the root Wowchemy dir.
HUGO_THEME=wowchemy-hugo-themes hugo \
# Run this script from the root Hugo Blox dir.
HUGO_THEME=hugo-blox-builder hugo \
--source exampleSite --themesDir ../../ \
--bind=0.0.0.0 -p 1315 --baseURL=http://0.0.0.0:1315 \
--i18n-warnings --minify -e "development" \
server
#HUGO_THEME=wowchemy-hugo hugo convert toYAML --unsafe --themesDir ../../
#HUGO_THEME=hugo-blox-builder hugo convert toYAML --unsafe --themesDir ../../