feat(i18n): translate navbar and preferences page (#223) #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Documentation | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'docs-src/**' | |
| - '.github/workflows/docs.yml' | |
| - 'README.md' | |
| - 'CHANGELOG.md' | |
| - 'UNLICENSE.md' | |
| - 'src/**' | |
| - 'typedoc.json' | |
| - 'phpdoc.dist.xml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction | |
| - name: Build VitePress docs | |
| run: npm run docs:build | |
| - name: Build TypeDoc API docs | |
| run: ./node_modules/.bin/typedoc | |
| - name: Build phpDoc API docs | |
| run: ./vendor/bin/phpdoc | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v6 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: docs | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |