-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged internationalisation into main
fixed all other issues
- Loading branch information
1 parent
408216f
commit 1e31eef
Showing
25 changed files
with
601 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Generate BuildingBloCS Static Site | ||
on: | ||
push: | ||
branches: [main, dev] | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
gen-site: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks out all history | ||
- name: Checkout main brach | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Setup ruby build environment | ||
- name: Setup ruby environment | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.1.2' | ||
|
||
# Setup yarn build environment | ||
- name: Setup yarn environment | ||
uses: mskelton/setup-yarn@v1 | ||
|
||
# Build necessary dependencies | ||
- name: Install gems and node modules | ||
run: | | ||
git checkout -b _site | ||
bundle install --full-index | ||
yarn install | ||
# Build site | ||
- name: Build css and site | ||
yarn build | ||
bundle exec jekyll build | ||
|
||
# Cleanup repository root | ||
- name: Clearing all other files | ||
run: ls | grep -v _site | xargs rm -r | ||
|
||
# Move site to repository root | ||
- name: moving and cleaning up site folder | ||
run: | | ||
mv _site/* ./ | ||
find . -name yarn.lock -delete | ||
# Commit to _site and activate github pages action | ||
- name: Commit to branch | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
add: '. -f' | ||
default_author: github_actions | ||
message: "Pushing new version of i18n site" | ||
push: 'origin _site --force' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ _site | |
.jekyll-cache | ||
node_modules | ||
.jekyll-metadata | ||
assets/css/style.css* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "_plugins/multiple-languages"] | ||
path = _plugins/multiple-languages | ||
url = https://github.com/screeninteraction/jekyll-multiple-languages-plugin.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
# gem "rails" | ||
|
||
# group :jekyll_plugins do | ||
# gem "jekyll-polyglot" | ||
# end | ||
gem "webrick", "~> 1.7" | ||
gem "jekyll-polyglot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.8.0) | ||
public_suffix (>= 2.0.2, < 5.0) | ||
colorator (1.1.0) | ||
concurrent-ruby (1.1.10) | ||
em-websocket (0.5.3) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0) | ||
eventmachine (1.2.7) | ||
ffi (1.15.5) | ||
forwardable-extended (2.6.0) | ||
http_parser.rb (0.8.0) | ||
i18n (1.10.0) | ||
concurrent-ruby (~> 1.0) | ||
jekyll (4.2.2) | ||
addressable (~> 2.4) | ||
colorator (~> 1.0) | ||
em-websocket (~> 0.5) | ||
i18n (~> 1.0) | ||
jekyll-sass-converter (~> 2.0) | ||
jekyll-watch (~> 2.0) | ||
kramdown (~> 2.3) | ||
kramdown-parser-gfm (~> 1.0) | ||
liquid (~> 4.0) | ||
mercenary (~> 0.4.0) | ||
pathutil (~> 0.9) | ||
rouge (~> 3.0) | ||
safe_yaml (~> 1.0) | ||
terminal-table (~> 2.0) | ||
jekyll-polyglot (1.5.0) | ||
jekyll (>= 3.0) | ||
jekyll-sass-converter (2.2.0) | ||
sassc (> 2.0.1, < 3.0) | ||
jekyll-watch (2.2.1) | ||
listen (~> 3.0) | ||
kramdown (2.4.0) | ||
rexml | ||
kramdown-parser-gfm (1.1.0) | ||
kramdown (~> 2.0) | ||
liquid (4.0.3) | ||
listen (3.7.1) | ||
rb-fsevent (~> 0.10, >= 0.10.3) | ||
rb-inotify (~> 0.9, >= 0.9.10) | ||
mercenary (0.4.0) | ||
pathutil (0.16.2) | ||
forwardable-extended (~> 2.6) | ||
public_suffix (4.0.7) | ||
rb-fsevent (0.11.1) | ||
rb-inotify (0.10.1) | ||
ffi (~> 1.0) | ||
rexml (3.2.5) | ||
rouge (3.28.0) | ||
safe_yaml (1.0.5) | ||
sassc (2.4.0) | ||
ffi (~> 1.9) | ||
terminal-table (2.0.0) | ||
unicode-display_width (~> 1.1, >= 1.1.1) | ||
unicode-display_width (1.8.0) | ||
webrick (1.7.0) | ||
|
||
PLATFORMS | ||
x86_64-linux | ||
|
||
DEPENDENCIES | ||
jekyll-polyglot | ||
webrick (~> 1.7) | ||
|
||
BUNDLED WITH | ||
2.3.13 |
Oops, something went wrong.