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

POC: translation directory #109

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ jobs:
run: echo "APP_VERSION=$(cat VERSION)" >> $GITHUB_ENV
- name: 'Deploy documentation for beta version'
if: github.ref_name == 'main'
run: mike deploy --push --config-file config/en/mkdocs.yml --prefix en/ --title "${APP_VERSION} (beta)" beta
run: |
for lang in ga en; do
mike deploy --push --config-file config/$lang/mkdocs.yml --prefix $lang/ --title "${APP_VERSION} (beta)" beta
done
- name: 'Deploy documentation for stable version'
if: github.ref_name == 'stable'
run: mike deploy --push --config-file config/en/mkdocs.yml --prefix en/ --update-aliases ${APP_VERSION} current
run:
for lang in ga en; do
mike deploy --push --config-file config/$lang/mkdocs.yml --prefix $lang/ --update-aliases ${APP_VERSION} current
done
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ python -m venv venv
Activate the virtual environment. You need to do this every time you want to build the site:

```shell
source virtual_env/bin/activate
source venv/bin/activate
```

Install the dependencies:
Expand Down
38 changes: 38 additions & 0 deletions config/ga/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
site_name: K-9 Mail
site_url: https://docs.k9mail.app/ga/
docs_dir: '../../docs/ga'
site_dir: '../../site/ga'
repo_url: https://github.com/k9mail/k9mail-docs
edit_uri: edit/main/docs/ga/

theme:
name: material
custom_dir: '../../overrides/'
logo: assets/images/icon.png
favicon: assets/images/favicon.png
language: en
features:
- content.action.edit
- navigation.footer

extra_css:
- assets/stylesheets/extra.css

extra:
version:
provider: mike
default: current

markdown_extensions:
- toc:
permalink: true

plugins:
- search
- mike:
canonical_version: current
css_dir: assets/stylesheets
javascript_dir: assets/javascripts

nav:
- Fáilte: index.md
7 changes: 7 additions & 0 deletions docs/ga/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Lámhleabhar Úsáideora K-9 Mail

Fáilte chuig lámhleabhar an úsáideora do [K-9 Mail](https://k9mail.app/) 6.5xx (beta).

Cé go bhfuilimid ag obair i dtreo eisiúint sheasmhach nua, bíonn an lámhleabhar úsáideora seo as dáta go minic. Más maith leat cabhrú leis an scéal seo a réitigh, seiceáil amach an [repo k9mail-docs](https://github.com/k9mail/k9mail-docs).

Má tá ceisteanna agat nach féidir a fhreagairt leis na leathanaigh seo, téigh chuig ár [support forum](https://forum.k9mail.app/).
Loading