From 72f866bbaa3e6866243fac8297f8d66810e1bb25 Mon Sep 17 00:00:00 2001 From: geoffreymcgill Date: Wed, 8 May 2024 19:35:26 -0600 Subject: [PATCH] Expand demo to include a root project --- .github/workflows/retype-action.yml | 6 ++-- README.md | 48 ++++++++++++++++++++++++++++- en/README.md | 6 ---- en/retype.yml | 11 ------- fr/README.md | 7 +++++ fr/retype.yml | 16 ++++++++++ ko/README.md | 3 +- ko/retype.yml | 12 +++++--- retype.yml | 18 +++++++++++ 9 files changed, 102 insertions(+), 25 deletions(-) delete mode 100644 en/README.md delete mode 100644 en/retype.yml create mode 100644 fr/README.md create mode 100644 fr/retype.yml create mode 100644 retype.yml diff --git a/.github/workflows/retype-action.yml b/.github/workflows/retype-action.yml index 62f9309..e808e23 100644 --- a/.github/workflows/retype-action.yml +++ b/.github/workflows/retype-action.yml @@ -21,14 +21,16 @@ jobs: - uses: retypeapp/action-build@multi with: - config: en/retype.yml - subdir: en + config: fr/retype.yml + subdir: fr - uses: retypeapp/action-build@multi with: config: ko/retype.yml subdir: ko + - uses: retypeapp/action-build@multi + - uses: retypeapp/action-github-pages@latest with: update-branch: true diff --git a/README.md b/README.md index e153005..ec68726 100644 --- a/README.md +++ b/README.md @@ -1 +1,47 @@ -# two-lang-demo \ No newline at end of file +# Welcome + +This project demonstrates configuring multiple Retype projects and deploying to GitHub Pages. + +## Workflow + +The following `.github/workflows/retype-action.yml` is used: + +```sh +name: Publish Retype powered website to GitHub Pages +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + publish: + name: Publish to retype branch + + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: retypeapp/action-build@multi + with: + config: fr/retype.yml + subdir: fr + + - uses: retypeapp/action-build@multi + with: + config: ko/retype.yml + subdir: ko + + - uses: retypeapp/action-build@multi + + - uses: retypeapp/action-github-pages@latest + with: + update-branch: true + +``` \ No newline at end of file diff --git a/en/README.md b/en/README.md deleted file mode 100644 index 75462f2..0000000 --- a/en/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# English - -Add your English documentation within this project. - -See also: - - [Korean](../ko/) \ No newline at end of file diff --git a/en/retype.yml b/en/retype.yml deleted file mode 100644 index bcab553..0000000 --- a/en/retype.yml +++ /dev/null @@ -1,11 +0,0 @@ -input: ./ -output: .retype/en -url: /two-lang-demo/en -branding: - title: Project Name - label: Docs -links: -- text: Getting Started - link: https://retype.com/guides/getting-started/ -footer: - copyright: "© Copyright {{ year }}. All rights reserved." \ No newline at end of file diff --git a/fr/README.md b/fr/README.md new file mode 100644 index 0000000..6973378 --- /dev/null +++ b/fr/README.md @@ -0,0 +1,7 @@ +# French + +Add your French documentation within this project. + +See also: + - [English](../) documentation + - [Korean](../ko/) documentation \ No newline at end of file diff --git a/fr/retype.yml b/fr/retype.yml new file mode 100644 index 0000000..6e38eeb --- /dev/null +++ b/fr/retype.yml @@ -0,0 +1,16 @@ +input: ./ +output: .retype/fr +url: /two-lang-demo/fr +branding: + title: Docs + label: FR +edit: + repo: https://github.com/retypeapp/two-lang-demo + base: /fr +links: +- text: FR + link: ../fr +- text: KO + link: ../ko +footer: + copyright: "© Copyright {{ year }}. All rights reserved." \ No newline at end of file diff --git a/ko/README.md b/ko/README.md index c7add5b..c2b0e6e 100644 --- a/ko/README.md +++ b/ko/README.md @@ -3,4 +3,5 @@ Add your Korean documentation within this project. See also: - - [English](../en/) \ No newline at end of file + - [English](../) documentation + - [French](../fr/) documentation \ No newline at end of file diff --git a/ko/retype.yml b/ko/retype.yml index 1b0ba14..7f8fb95 100644 --- a/ko/retype.yml +++ b/ko/retype.yml @@ -3,10 +3,14 @@ output: .retype/ko locale: ko url: /two-lang-demo/ko branding: - title: Project Name - label: Docs + title: Docs + label: KO +edit: + repo: https://github.com/retypeapp/two-lang-demo links: -- text: Getting Started - link: https://retype.com/guides/getting-started/ +- text: FR + link: ../fr +- text: KO + link: ../ko footer: copyright: "© Copyright {{ year }}. All rights reserved." \ No newline at end of file diff --git a/retype.yml b/retype.yml new file mode 100644 index 0000000..ceb89db --- /dev/null +++ b/retype.yml @@ -0,0 +1,18 @@ +input: ./ +output: .retype +url: /two-lang-demo/ +branding: + title: Docs + label: EN +exclude: + - "fr" + - "ko" +edit: + repo: https://github.com/retypeapp/two-lang-demo +links: +- text: FR + link: fr/ +- text: KO + link: ko/ +footer: + copyright: "© Copyright {{ year }}. All rights reserved." \ No newline at end of file