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

feat: Support i18n for documentation #34

Merged
merged 1 commit into from
May 4, 2020

Conversation

brendangadd
Copy link
Contributor

This commit overhauls the project structure and build process to support
documentation in both official languages. Because of the limitations of
mkdocs, it is necessary to treat each language as a distinct site. The
general approach used here is to mkdocs build each language, then copy
over a static landing page.

  • One folder under docs/ per language for content
  • One config file per language at the project root
  • One output folder per language at site/<lang>
  • Images are no longer shared, as they generally have unilingual text

Having multiple sites means mkdocs gh-deploy is no longer effective.
So the CI configuration was also updated to a generic GitHub action for
publication of a directory to the gh-pages branch.

This commit overhauls the project structure and build process to support
documentation in both official languages. Because of the limitations of
`mkdocs`, it is necessary to treat each language as a distinct site. The
general approach used here is to `mkdocs build` each language, then copy
over a static landing page.

  * One folder under `docs/` per language for content
  * One config file per language at the project root
  * One output folder per language at `site/<lang>`
  * Images are no longer shared, as they generally have unilingual text

Having multiple sites means `mkdocs gh-deploy` is no longer effective.
So the CI configuration was also updated to a generic GitHub action for
publication of a directory to the `gh-pages` branch.
@brendangadd brendangadd added kind/docs Improvements or additions to documentation kind/feature New feature or request priority/blocker size/M 2-3 days labels May 4, 2020
@brendangadd brendangadd linked an issue May 4, 2020 that may be closed by this pull request
Copy link
Contributor

@blairdrummond blairdrummond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@blairdrummond blairdrummond merged commit 3f74101 into master May 4, 2020
@zachomedia zachomedia deleted the 31-support-i18n-for-documentation branch December 7, 2020 21:08
@wg102 wg102 mentioned this pull request Jul 12, 2022
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/docs Improvements or additions to documentation kind/feature New feature or request priority/blocker size/M 2-3 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support i18n for documentation
2 participants