Skip to content

Commit

Permalink
Expand demo to include a root project
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreymcgill committed May 9, 2024
1 parent 60479d1 commit 72f866b
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 25 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/retype-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
48 changes: 47 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,47 @@
# two-lang-demo
# 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

```
6 changes: 0 additions & 6 deletions en/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions en/retype.yml

This file was deleted.

7 changes: 7 additions & 0 deletions fr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# French

Add your French documentation within this project.

See also:
- [English](../) documentation
- [Korean](../ko/) documentation
16 changes: 16 additions & 0 deletions fr/retype.yml
Original file line number Diff line number Diff line change
@@ -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."
3 changes: 2 additions & 1 deletion ko/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
Add your Korean documentation within this project.

See also:
- [English](../en/)
- [English](../) documentation
- [French](../fr/) documentation
12 changes: 8 additions & 4 deletions ko/retype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
18 changes: 18 additions & 0 deletions retype.yml
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit 72f866b

Please sign in to comment.