Skip to content

Commit

Permalink
Merged internationalisation into main
Browse files Browse the repository at this point in the history
fixed all other issues
  • Loading branch information
ThinkerPal committed May 27, 2022
1 parent 408216f commit 1e31eef
Show file tree
Hide file tree
Showing 25 changed files with 601 additions and 173 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/gen-site.yml
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'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ _site
.jekyll-cache
node_modules
.jekyll-metadata
assets/css/style.css*
3 changes: 3 additions & 0 deletions .gitmodules
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
11 changes: 11 additions & 0 deletions Gemfile
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"
71 changes: 71 additions & 0 deletions Gemfile.lock
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
Loading

0 comments on commit 1e31eef

Please sign in to comment.