Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Remove some i18n strings moved to a-wild-theme #46

Merged
merged 2 commits into from
Oct 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/audit-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
base-url: "https://example.com/"
build-for-downstream: true
config-file: tests/config/hugo.toml
config-file: tests/config/test-config.toml
hugo-version: latest
# source-directory: tests/config
- name: Validate HTML and CSS of website
Expand Down
2 changes: 1 addition & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
],
"filename": [
"**/layouts/**/*.html",
"config.toml",
"test-config.toml",
"hugo.toml",
"theme.toml"
],
Expand Down
6 changes: 0 additions & 6 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ other = "Page authored by"
[poweredByTheme]
other = "Powered by <a href=\"https://github.com/wildtechgarden/wild-theme-shell-mod-hugo\">'Wild' theme shell</a> for <a href=\"https://gohugo.io/\">Hugo</a>"

[recentInSectionOnSite]
other = "Recent content in '{{ .pageTitle }}' section on {{ .siteTitle }}"

[sectionOnSite]
other = "{{ .pageTitle }} on {{ .siteTitle }}"

[siteCopyright]
other = "Site {{ . }}"

Expand Down
6 changes: 0 additions & 6 deletions i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ other = "Page créée par"
[poweredByTheme]
other = "Powered by <a href=\"https://github.com/wildtechgarden/wild-theme-shell-mod-hugo\">Une coquille de thème «sauvage»</a> à <a href=\"https://gohugo.io/\">Hugo</a>"

[recentInSectionOnSite]
other = "Contenu récent au section «{{ .pageTitle }}» de {{ .siteTitle }}"

[sectionOnSite]
other = "{{ .pageTitle }} de {{ .siteTitle }}"

[siteCopyright]
other = "Site {{ . }}"

Expand Down
2 changes: 1 addition & 1 deletion scripts/local_build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export BASEURL="https://www.wild-theme-shell.wtg-demos.ca/"
export HUGO_RESOURCEDIR="$(pwd)"/resources
# export HUGO_MODULE_REPLACEMENTS="github.com/wildtechgarden/wild-theme-shell-mod-hugo -> $(pwd)"
export SITEROOT="$(pwd)"
export SITECONFIG="$(pwd)"/tests/config/hugo.toml
export SITECONFIG="$(pwd)"/tests/config/test-config.toml
export TARGET="$(pwd)"/public
export CURDIR="$(pwd)"

Expand Down
3 changes: 0 additions & 3 deletions tests/config/go.mod

This file was deleted.

Empty file removed tests/config/go.sum
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/scripts/hugo-audit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $Env:HUGO_MINIFY_TDEWOLFF_HTML_KEEPCOMMENTS="true"
$Env:HUGO_ENABLEMISSINGTRANSLATIONPLACEHOLDERS="true"
$curdir = Get-Location
$Env:HUGO_RESOURCEDIR = "$curdir\resources"
hugo.exe --gc --buildDrafts --buildFuture --environment "development" --destination "$curdir\public"
hugo.exe --gc --buildDrafts --buildFuture --environment "development" --destination "$curdir\public" --config "$curdir\tests\config\test-config.toml"
$lines = Get-ChildItem -Path .\public -Recurse | Select-String -Pattern $regexPattern -CaseSensitive:$false | Select-Object Filename, LineNumber, Line, Path | Format-Table
if ($lines.Count -eq 0) {
Write-Output "ok"
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/hugo-audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi
if [ -n "$SITECONFIG" ]; then
SITECONFIG="--config ""$SITECONFIG"
else
SITECONFIG="--config ""$(pwd)"/tests/config/hugo.toml
SITECONFIG="--config ""$(pwd)"/tests/config/test-config.toml
fi

if [ -z "${HUGO_CACHEDIR}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/hugo-check-links.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o pipefail
SITEROOT="$(pwd)"

export HUGO_MODULE_REPLACEMENTS="github.com/wildtechgarden/wild-theme-shell-mod-hugo -> $(pwd)"
systemd-run --working-dir "$(pwd)/tests/config" -E PATH="${PATH}" -E HUGO_RESOURCEDIR="$(pwd)"/resources -E HUGO_MODULE_REPLACEMENTS="$HUGO_MODULE_REPLACEMENTS" --unit=hugo-serve --user hugo serve --source "$(pwd)" --environment "production" --config "$(pwd)"/tests/config/hugo.toml --port 1313 --bind 127.0.0.1
systemd-run --working-dir "$(pwd)/tests/config" -E PATH="${PATH}" -E HUGO_RESOURCEDIR="$(pwd)"/resources -E HUGO_MODULE_REPLACEMENTS="$HUGO_MODULE_REPLACEMENTS" --unit=hugo-serve --user hugo serve --source "$(pwd)" --environment "production" --config "$(pwd)"/tests/config/test-config.toml --port 1313 --bind 127.0.0.1

sleep 5

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/hugo-dev-audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi
if [ -n "$SITECONFIG" ]; then
SITECONFIG="--config ""$SITECONFIG"
else
SITECONFIG="--config ""$(pwd)"/tests/config/hugo.toml
SITECONFIG="--config ""$(pwd)"/tests/config/test-config.toml
fi

if [ -z "${HUGO_CACHEDIR}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/hugo-dev-check-links.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o pipefail
SITEROOT="$(pwd)"

export HUGO_MODULE_REPLACEMENTS="github.com/wildtechgarden/wild-theme-shell-mod-hugo -> $(pwd)/../wild-theme-shell-mod-hugo, github.com/wildtechgarden/a-wild-theme-mod-hugo -> $(pwd)/../a-wild-theme-mod-hugo, github.com/wildtechgarden/demo-test-site-hugo-wtg -> $(pwd)/../demo-test-site-hugo-wtg, github.com/wildtechgarden/module-starter-hugo-wtg -> $(pwd)/../module-starter-hugo-wtg, github.com/wildtechgarden/minimal-test-theme-hugo-wtg -> $(pwd)/../minimal-test-theme-hugo-wtg"
systemd-run --working-dir "$(pwd)/tests/config" -E PATH="${PATH}" -E HUGO_RESOURCEDIR="$(pwd)"/resources -E HUGO_MODULE_REPLACEMENTS="$HUGO_MODULE_REPLACEMENTS" --unit=hugo-serve --user hugo serve --source "$(pwd)" --environment "production" --config "$(pwd)"/tests/config/hugo.toml --port 1313 --bind 127.0.0.1
systemd-run --working-dir "$(pwd)/tests/config" -E PATH="${PATH}" -E HUGO_RESOURCEDIR="$(pwd)"/resources -E HUGO_MODULE_REPLACEMENTS="$HUGO_MODULE_REPLACEMENTS" --unit=hugo-serve --user hugo serve --source "$(pwd)" --environment "production" --config "$(pwd)"/tests/config/test-config.toml --port 1313 --bind 127.0.0.1

sleep 2

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/hugo-dev-serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fi
export HUGO_MODULE_REPLACEMENTS="github.com/wildtechgarden/wild-theme-shell-mod-hugo -> $(pwd)/../wild-theme-shell-mod-hugo, github.com/wildtechgarden/a-wild-theme-mod-hugo -> $(pwd)/../a-wild-theme-mod-hugo, github.com/wildtechgarden/demo-test-site-hugo-wtg -> $(pwd)/../demo-test-site-hugo-wtg, github.com/wildtechgarden/module-starter-hugo-wtg -> $(pwd)/../module-starter-hugo-wtg, github.com/wildtechgarden/minimal-test-theme-hugo-wtg -> $(pwd)/../minimal-test-theme-hugo-wtg"
export HUGO_RESOURCEDIR="$(pwd)/resources"
export SITEROOT="$(pwd)"
export SITECONFIG="$(pwd)"/tests/config/hugo.toml
export SITECONFIG="$(pwd)"/tests/config/test-config.toml
cd tests/config && hugo serve --buildDrafts --buildFuture --source "${SITEROOT}" --environment "${HUGO_ENV:-development}" --config "${SITECONFIG}"
2 changes: 1 addition & 1 deletion tests/scripts/hugo-serve.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$Env:HUGO_RESOURCEDIR="$PWD\resources"
hugo.exe serve --buildDrafts --buildFuture --environment "development" --config '$PWD\config.toml'
hugo.exe serve --buildDrafts --buildFuture --environment "development" --config '$PWD\tests\config\test-config.toml'
2 changes: 1 addition & 1 deletion tests/scripts/hugo-serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ fi
export HUGO_MODULE_REPLACEMENTS="github.com/wildtechgarden/wild-theme-shell-mod-hugo -> $(pwd)/../wild-theme-shell-mod-hugo"
export HUGO_RESOURCEDIR="$(pwd)/resources"
export SITEROOT="$(pwd)"
export SITECONFIG="$(pwd)"/tests/config/hugo.toml
export SITECONFIG="$(pwd)"/tests/config/test-config.toml
cd tests/config && hugo serve --buildDrafts --buildFuture --source "${SITEROOT}" --environment "${HUGO_ENV:-development}" --config "${SITECONFIG}"