Skip to content

Commit

Permalink
update MkDos + static i18n plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 15, 2024
1 parent 6f93dbc commit 7984de8
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 32 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"

- package-ecosystem: "pip"
directory: "docs/"
schedule:
interval: "monthly"
38 changes: 32 additions & 6 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
name: doc
on:
pull_request:
branches:
- master
paths:
- 'docs/**'
- '.github/workflows/doc.yml'
push:
branches:
- master
paths:
- 'docs/**'
- '.github/workflows/doc.yml'
workflow_dispatch: # useful for testing tx pushes
workflow_call:

permissions:
contents: write

defaults:
run:
working-directory: docs

jobs:
deploy:
Expand All @@ -25,31 +40,42 @@ jobs:
python-version: '3.10'

- name: Install Python requirements
run: pip install -r ./docs/.utils/requirements.txt
run: pip install -r requirements.txt

- name: Install Transifex client
run: |
curl -OL https://github.com/transifex/cli/releases/download/v1.6.10/tx-linux-amd64.tar.gz
tar -xvzf tx-linux-amd64.tar.gz
- name: Configure Transifex
run: |
python ./docs/.utils/transifex_utils.py
run: scripts/transifex_utils.py
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}

- name: Push source files to Transifex
run: |
./tx push
if: ${{ github.event_name == 'push' }}
run: ./tx push
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}

- name: Pull translations from Transifex
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'opengisch/QgisModelBaker' }}
run: |
./tx pull --translations --all --minimum-perc 10
./tx status
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}

- name: Build docs
- name: Build documentation
run: mkdocs build

- uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'pull_request' }}
with:
name: docs
path: docs/site
if-no-files-found: error

- name: Deploy to GitHub Pages
if: ${{ github.event_name == 'push' }}
run: mkdocs gh-deploy --force
5 changes: 0 additions & 5 deletions docs/.utils/requirements.txt

This file was deleted.

3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mkdocs-material==9.5.9
mkdocs-static-i18n==1.2.0
python-slugify
File renamed without changes.
47 changes: 26 additions & 21 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Project information
site_name: QGIS Model Baker Documenation
site_name: QGIS Model Baker Documentation
site_description: >-
This site contains documentation about QGIS Model Baker
site_url: https://opengisch.github.io/QgisModelBaker/
Expand Down Expand Up @@ -67,23 +67,28 @@ plugins:
- i18n:
default_language: en
languages:
en: English
de: Deutsch
nav_translations:
de:
User Guide: Benutzerhandbuch
Get Started: Loslegen
Model and Data Import Workflow: Modell und Daten Import Workflow
Export Data Workflow: Daten Export Workflow
Validate Data: Daten Validierung
Plugin Configuration: Plugin Konfiguration
Repositories: Repositories
Basket and Dataset Handling: Dataset und Basket Handling
OID Generator: OID Generator
Optimized Projects for Extended Models : Optimierte Projekte für erweiterte Modelle
Model Baker Integration: Model Baker Integration
Technical Concept: Technisches Konzept
Catalogues and their special cases: Kataloge und ihre Spezialfälle
Meta Attributes: Metaattribute
Migrate from ili2db 3 to 4: Migration von ili2db 3 zu 4
Development: Enwicklung
- locale: en
default: true
name: English
site_name: QGIS Model Baker Documentation

- locale: de
name: Deutsch
site_name: QGIS Model Baker Dokumentation
nav_translations:
User Guide: Benutzerhandbuch
Get Started: Loslegen
Model and Data Import Workflow: Modell und Daten Import Workflow
Export Data Workflow: Daten Export Workflow
Validate Data: Daten Validierung
Plugin Configuration: Plugin Konfiguration
Repositories: Repositories
Basket and Dataset Handling: Dataset und Basket Handling
OID Generator: OID Generator
Optimized Projects for Extended Models : Optimierte Projekte für erweiterte Modelle
Model Baker Integration: Model Baker Integration
Technical Concept: Technisches Konzept
Catalogues and their special cases: Kataloge und ihre Spezialfälle
Meta Attributes: Metaattribute
Migrate from ili2db 3 to 4: Migration von ili2db 3 zu 4
Development: Enwicklung

0 comments on commit 7984de8

Please sign in to comment.