Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n Foundation and adding Japanese pages #425

Merged
merged 43 commits into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d6b03d6
Merge commit
yuhattor Dec 1, 2022
ffd3aa1
Merge branch 'isc-i18n-i18n-support'
yuhattor Dec 1, 2022
3f0f8b2
Merge branch 'master' of github.com:InnerSourceCommons/innersourcecom…
yuhattor Dec 1, 2022
c789ee9
Create Japanese page foundation
yuhattor Dec 5, 2022
e8e30f3
Update action for japanese-pages branch
yuhattor Dec 5, 2022
fdc4693
Add staging deployment action
yuhattor Dec 5, 2022
396221e
Update GitHub Action workflow
yuhattor Dec 6, 2022
0e5d6a8
move footer content from params to i18n config
yuhattor Dec 6, 2022
8ae367f
Add japanese translation base
yuhattor Dec 6, 2022
6adc10d
Add and Update github actions for staging
yuhattor Dec 6, 2022
110859c
Update config
yuhattor Dec 6, 2022
4b0a79e
Fix baseURL
yuhattor Dec 6, 2022
b62348d
Update the action
yuhattor Dec 6, 2022
1ca8397
add robots.txt setting for staging
yuhattor Dec 6, 2022
596a4d9
Update robots.txt insertion github action
yuhattor Dec 6, 2022
6bac526
Fix typo
yuhattor Dec 6, 2022
8fbd56a
Fixed how to create robots.txt on GitHub Actions
yuhattor Dec 6, 2022
25d5244
Add Japanese Code of Conduct
yuhattor Dec 8, 2022
0178478
Add Japanese pages under "about"
yuhattor Dec 8, 2022
46d8bd1
Partially translated /ja/community/_index.md
yuhattor Dec 8, 2022
e37592b
Changed the entire page to support English, Japanese, German, and Rus…
yuhattor Dec 8, 2022
e7ecbc4
Changed the entire page to support English, Japanese, German, and Rus…
yuhattor Dec 8, 2022
850ea41
Add base for German language support
yuhattor Dec 8, 2022
e29d706
Add base for Russian language support
yuhattor Dec 8, 2022
97c0564
Update locale setting
yuhattor Dec 9, 2022
1de2f10
Update baseURL
yuhattor Dec 9, 2022
28695f9
Update locale settings
yuhattor Dec 9, 2022
bd50666
Fix footer image
yuhattor Dec 9, 2022
9c1b1ba
Add german and russian language for menus
yuhattor Dec 9, 2022
2a2a996
Translated Research pages into Japanese
yuhattor Dec 9, 2022
0c00554
Update GitHub Action for Staging
yuhattor Dec 9, 2022
360bfbe
Merge branch 'master' of github.com:InnerSourceCommons/innersourcecom…
yuhattor Dec 13, 2022
8c9a6a8
Update Japanese pages
yuhattor Dec 13, 2022
d4c0b4a
removed other language files experimentally created
yuhattor Dec 13, 2022
4542d63
Update header setting
yuhattor Dec 13, 2022
68410b1
Support translated books
yuhattor Dec 13, 2022
35ef19b
Update image link for Getting Started with InnerSource book
yuhattor Dec 13, 2022
6756948
There were some places where linkcheck behaved strangely, since Japan…
yuhattor Dec 13, 2022
b08b796
Small fix for lintcheck
yuhattor Dec 13, 2022
39e3160
Update slack link
yuhattor Dec 13, 2022
97d66a3
Fix Russian menu translation
yuhattor Dec 23, 2022
e404120
Merge branch 'master' of github.com:InnerSourceCommons/innersourcecom…
yuhattor Dec 23, 2022
6fc776d
Update links
yuhattor Dec 23, 2022
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
40 changes: 40 additions & 0 deletions .github/workflows/i18n-staging-deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: i18n Staging Deploy to GitHub Pages

on:
push:
branches:
- japanese-pages-staging

env:
HUGO_ENV: "production"

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.80.0'
extended: true
- name: Copy the missing files from /content/en for publishing each language site
run: |
for i in de es fr it ja ru zh; do
rsync -rv --ignore-existing content/en/ content/$i/ --log-file=content/.gitignore;
sed -i "s/^.\{37\} /$i\//g" content/.gitignore;
sed -i '/total size\|file list/d' content/.gitignore;
done
- name: set up robots.txt not to be crawled
run: |
echo 'Disallow: /' > layouts/robots.txt
- name: Build
run: hugo --minify
- name: update CNAME
run: echo innersourcecommons.jp > ./public/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./public/
publish_branch: gh-pages-staging
19 changes: 19 additions & 0 deletions .github/workflows/i18n-staging-repo-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: i18n Staging Repo Sync
on:
push:
branches:
- japanese-pages

jobs:
git-sync:
runs-on: ubuntu-latest
steps:
- name: git-sync
uses: wei/git-sync@v3
with:
source_repo: "InnerSourceCommons/innersourcecommons.org"
source_branch: "japanese-pages"
destination_repo: "isc-i18n/innersourcecommons.org-staging"
destination_branch: "japanese-pages-staging"
source_ssh_private_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
destination_ssh_private_key: ${{ secrets.I18N_STAGING_SSH_PRIVATE_KEY }}
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ jobs:
with:
hugo-version: '0.80.0'
extended: true
- name: Copy the missing files from /content/en for publishing each language site
run: |
for i in de es fr it ja ru zh; do
rsync -rv --ignore-existing content/en/ content/$i/ --log-file=content/.gitignore;
sed -i "s/^.\{37\} /$i\//g" content/.gitignore;
sed -i '/total size\|file list/d' content/.gitignore;
done
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./public/
publish_dir: ./public/
5 changes: 3 additions & 2 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
baseURL: 'https://innersourcecommons.org/'
baseURL: '/'
title: InnerSource Commons

pluralizeListTitles: false
paginate: '3'
summaryLength: '15'
disqusShortname: ''
googleAnalytics: ''
enableRobotsTXT: true
markup:
goldmark:
renderer:
unsafe: true
minify:
disableHTML: true
defaultContentLanguage: 'en'
defaultContentLanguage: 'en'
14 changes: 7 additions & 7 deletions config/_default/languages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@ en:
weight: 1
ja:
languageName: 日本語
contentDir: content/en
contentDir: content/ja
weight: 2
de:
languageName: Deutsch
contentDir: content/en
contentDir: content/de
weight: 3
zh:
languageName: 中文
contentDir: content/en
contentDir: content/zh
weight: 3
it:
languageName: Italiano
contentDir: content/en
contentDir: content/it
weight: 3
es:
languageName: Español
contentDir: content/en
contentDir: content/es
weight: 3
ru:
languageName: Русский
contentDir: content/en
contentDir: content/ru
weight: 3
fr:
languageName: Français
contentDir: content/en
contentDir: content/fr
weight: 3
64 changes: 32 additions & 32 deletions config/_default/menus.de.yaml
Original file line number Diff line number Diff line change
@@ -1,123 +1,123 @@
main:
- name: Learn
- name: Lernen
URL: de/learn
weight: 1
identifier: learn
- name: Books
- name: Bücher
parent: learn
URL: de/learn/books
weight: 2
- name: Learning Path
- name: Lernpfad
parent: learn
URL: de/learn/learning-path
weight: 3
- name: Patterns
- name: Muster
parent: learn
URL: de/learn/patterns
weight: 4
- name: Research
- name: Forschung
parent: learn
URL: de/learn/research
weight: 5
- name: Events
- name: Ereignisse
URL: de/events
weight: 2
- name: Community
- name: Gemeinschaft
identifier: community
URL: de/community
weight: 3
- name: Stories
- name: Geschichten
URL: de/stories
weight: 4
- name: Services Directory
- name: Diensteverzeichnis
URL: de/community/services
parent: community
weight: 2
- name: About
- name: Über
identifier: about
URL: de/about
weight: 5
- name: Announcements
- name: Ankündigungen
URL: de/about/announcements
parent: about
weight: 1
- name: Board & Governance
URL: de/about/board
parent: about
weight: 2
- name: Members
- name: Mitglieder
URL: de/about/members
parent: about
weight: 3
- name: Sponsors
- name: Sponsoren
URL: de/about/sponsors
parent: about
weight: 4
- name: Code of Conduct
- name: Verhaltenskodex
URL: de/about/codeofconduct
parent: about
weight: 5
- name: Contact Us
- name: Kontaktiere uns
URL: de/about/contact
parent: about
weight: 6
footer_left:
- name: Learn
- name: Lernen
URL: de/learn
weight: 1
post: bold
- name: Books
- name: Bücher
URL: de/learn/books
weight: 2
- name: Learning Path
- name: Lernpfad
URL: de/learn/learning-path
weight: 3
- name: Patterns
- name: Muster
URL: de/learn/patterns
weight: 4
- name: Research
- name: Forschung
URL: de/learn/research
weight: 5
footer_middle:
- name: Events
- name: Ereignisse
URL: de/events
weight: 1
post: bold
- name: Community
- name: Gemeinschaft
URL: de/community
weight: 2
post: bold
pre: _blank
- name: Stories
- name: Geschichten
URL: de/stories
weight: 3
post: bold
- name: Services Directory
- name: Diensteverzeichnis
URL: de/community/services
weight: 4
- name: Announcements
- name: Ankündigungen
URL: de/about/announcements
weight: 5
footer_right:
- name: About
- name: Über
URL: de/about
weight: 1
post: bold
- name: Board & Governance
URL: de/about/board
weight: 2
- name: Members
- name: Mitglieder
URL: de/about/members
weight: 3
- name: Sponsors
- name: Sponsoren
URL: de/about/sponsors
weight: 4
- name: Code of Conduct
- name: Verhaltenskodex
URL: de/about/codeofconduct
weight: 5
- name: Contact Us
- name: Kontaktiere uns
URL: de/about/contact
weight: 6
- name: Privacy Policy
- name: Datenschutz-Bestimmungen
URL: de/about/privacy
weight: 7
weight: 7
Loading