Skip to content
Merged
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
26 changes: 13 additions & 13 deletions .github/workflows/linkcheck.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Broken Links Checker
on:
# Runs every Monday at 12:00 UTC
schedule:
- cron: '0 12 * * 1'
workflow_dispatch:
schedule:
- cron: "0 12 * * 1"
workflow_dispatch:

permissions:
issues: write
Expand All @@ -17,13 +17,13 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Run Broken Links Checker
run: npx broken-link-checker $WEBSITE_URL --ordered --recursive --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36" --exclude "intercity.pl"
- uses: actions/checkout@v3
if: failure()
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: ${{ env.ISSUE_TEMPLATE }}
if: failure()
- name: Run Broken Links Checker
run: npx broken-link-checker $WEBSITE_URL --ordered --recursive --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36" --exclude "intercity.pl"
- uses: actions/checkout@v3
if: failure()
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: ${{ env.ISSUE_TEMPLATE }}
if: failure()
6 changes: 4 additions & 2 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: lint

on:
push:
branches: ['**']
branches: ["**"]
pull_request:
branches: [main]

Expand All @@ -13,9 +13,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install npm packages
run: npm install
- name: Run pre-commit
run: |-
uvx --with pre-commit-uv pre-commit run --all-files
Expand Down
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,13 @@ repos:
language: system
types: [file]
files: ^i18n/.*\.ya?ml$
- repo: local
hooks:
- id: prettier
name: prettier
entry: prettier --write
language: node
types_or: [javascript, scss, html, markdown]
additional_dependencies:
- "[email protected]"
- "[email protected]"
16 changes: 4 additions & 12 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"bracketSameLine": true,
"bracketSpacing": true,
"endOfLine": "lf",
"goTemplateBracketSpacing": true,
"plugins": ["prettier-plugin-go-template"],
"overrides": [
{
"files": ["*.html", "*.gotmpl", "*.tmpl.*"],
"files": ["*.html"],
"options": {
"parser": "go-template",
"bracketSameLine": true
"parser": "go-template"
}
}
],
"plugins": ["prettier-plugin-toml", "prettier-plugin-go-template"],
"singleQuote": true,
"tabWidth": 2,
"useTabs": false
]
}
32 changes: 19 additions & 13 deletions archetypes/booking/index.de.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,47 @@
---
draft: false
title: '{{ .File.ContentBaseName | title }}' # Ändere den Titel auf den Name der Buchungsplattform
description: '' # Ergänze eine Beschreibung für die Buchungsplattform
title: "{{ .File.ContentBaseName | title }}" # Ändere den Titel auf den Name der Buchungsplattform
description: "" # Ergänze eine Beschreibung für die Buchungsplattform
params:
classes:
# Definiere Klassen und entsprechende Preise für die zugehörigen Reservierungen.
# Stelle sicher, dass die Klassen auch in den i18n-Dateien unter `booking.classes` definiert sind.
first: "X.XX€"
second: "X.XX€"
fip_50: true # Definiere, ob FIP 50 Tickets bei dem Buchungsanbieter gebucht werden können.
fip_global_fare: true # Definiere, ob FIP Globalpreise bei dem Buchungsanbieter gebucht werden können.
reservations: true # Definiere, ob Reservierungen bei dem Buchungsanbieter gebucht werden können.
booking_link: "https://example.com" # Füge ein Link zur Buchungsplattform hinzu
additional_info_link: "https://example.com/additional-info" # Füge einen Link zu zusätzlichen Informationen hinzu
type: "onsite" # Akzeptierte Typen sind: website, onsite, phone, email und machine
classes:
# Definiere Klassen und entsprechende Preise für die zugehörigen Reservierungen.
# Stelle sicher, dass die Klassen auch in den i18n-Dateien unter `booking.classes` definiert sind.
first: "X.XX€"
second: "X.XX€"
fip_50: true # Definiere, ob FIP 50 Tickets bei dem Buchungsanbieter gebucht werden können.
fip_global_fare: true # Definiere, ob FIP Globalpreise bei dem Buchungsanbieter gebucht werden können.
reservations: true # Definiere, ob Reservierungen bei dem Buchungsanbieter gebucht werden können.
booking_link: "https://example.com" # Füge ein Link zur Buchungsplattform hinzu
additional_info_link: "https://example.com/additional-info" # Füge einen Link zu zusätzlichen Informationen hinzu
type: "onsite" # Akzeptierte Typen sind: website, onsite, phone, email und machine
---

{{% booking-section "fip_50" %}}

## FIP 50 Fahrkarten

<!--
Erkläre hier die Buchungswege, um FIP 50 Tickets zu erwerben.
-->

{{% /booking-section %}}

{{% booking-section "fip_global_fare" %}}

## FIP Globalpreis

<!--
Erkläre hier die Buchungswege, um FIP Globalpreise zu erwerben.
-->

{{% /booking-section %}}

{{% booking-section "reservations" %}}

## Reservierungen

<!--
Erkläre hier die Buchungswege, um Reservierungen zu erwerben.
-->

{{% /booking-section %}}
33 changes: 19 additions & 14 deletions archetypes/booking/index.en.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,47 @@
---
draft: false
title: '{{ .File.ContentBaseName | title }}' # Change the title to the name of the booking platform
description: '' # Add a description for the booking platform
title: "{{ .File.ContentBaseName | title }}" # Change the title to the name of the booking platform
description: "" # Add a description for the booking platform
params:
classes:
# Define classes and prices for the corresponding reservations.
# Make sure that each class exists under `booking.classes` in i18n.
first: "X.XX€"
second: "X.XX€"
fip_50: true # Define if FIP 50 tickets can be booked with this booking platform
fip_global_fare: true # Define if FIP Global Fare tickets can be booked with this booking platform
reservations: true # Define if reservations can be booked with this booking platform
booking_link: "https://example.com" # Add a link to the booking platform
additional_info_link: "https://example.com/additional-info" # Add a link with additional information
type: "onsite" # Accepted types are: website, onsite, phone, email and machine
classes:
# Define classes and prices for the corresponding reservations.
# Make sure that each class exists under `booking.classes` in i18n.
first: "X.XX€"
second: "X.XX€"
fip_50: true # Define if FIP 50 tickets can be booked with this booking platform
fip_global_fare: true # Define if FIP Global Fare tickets can be booked with this booking platform
reservations: true # Define if reservations can be booked with this booking platform
booking_link: "https://example.com" # Add a link to the booking platform
additional_info_link: "https://example.com/additional-info" # Add a link with additional information
type: "onsite" # Accepted types are: website, onsite, phone, email and machine
---

{{% booking-section "fip_50" %}}

## FIP 50 Tickets

<!--
Explain the steps for booking FIP 50 tickets with this booking platform.
-->

{{% /booking-section %}}

{{% booking-section "fip_global_fare" %}}

## FIP Global Fare

<!--
Explain the steps for booking FIP Global Fares with this booking platform.
-->
{{% /booking-section %}}

{{% /booking-section %}}

{{% booking-section "reservations" %}}

## Reservations

<!--
Explain the steps for booking reservations with this booking platform.
-->

{{% /booking-section %}}
32 changes: 19 additions & 13 deletions archetypes/booking/index.fr.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,47 @@
---
draft: false
title: '{{ .File.ContentBaseName | title }}' # Remplacez le titre par le nom de la plateforme de réservation
description: '' # Complète une description pour la plateforme de réservation
title: "{{ .File.ContentBaseName | title }}" # Remplacez le titre par le nom de la plateforme de réservation
description: "" # Complète une description pour la plateforme de réservation
params:
classes:
# Définissez les classes et les tarifs correspondants aux réservations.
# Assurez-vous que chaque classe existe sous `booking.classes` dans i18n.
first: "X,XX€"
second: "X,XX€"
fip_50: true # Indique si les billets FIP 50 peuvent être réservés via cette plateforme
fip_global_fare: true # Indique si les billets FIP Global Fare peuvent être réservés via cette plateforme
reservations: true # Indique si des réservations peuvent être effectuées via cette plateforme
booking_link: "https://example.com" # Ajoutez un lien vers la plateforme de réservation
additional_info_link: "https://example.com/additional-info" # Ajoutez un lien vers des informations supplémentaires
type: "onsite" # Types acceptés : website, onsite, phone, email et machine
classes:
# Définissez les classes et les tarifs correspondants aux réservations.
# Assurez-vous que chaque classe existe sous `booking.classes` dans i18n.
first: "X,XX€"
second: "X,XX€"
fip_50: true # Indique si les billets FIP 50 peuvent être réservés via cette plateforme
fip_global_fare: true # Indique si les billets FIP Global Fare peuvent être réservés via cette plateforme
reservations: true # Indique si des réservations peuvent être effectuées via cette plateforme
booking_link: "https://example.com" # Ajoutez un lien vers la plateforme de réservation
additional_info_link: "https://example.com/additional-info" # Ajoutez un lien vers des informations supplémentaires
type: "onsite" # Types acceptés : website, onsite, phone, email et machine
---

{{% booking-section "fip_50" %}}

## Billets FIP 50

<!--
Expliquez les étapes pour réserver des billets FIP 50 via cette plateforme de réservation.
-->

{{% /booking-section %}}

{{% booking-section "fip_global_fare" %}}

## Tarif Global FIP

<!--
Expliquez les étapes pour réserver des billets au tarif global FIP via cette plateforme de réservation.
-->

{{% /booking-section %}}

{{% booking-section "reservations" %}}

## Réservations

<!--
Expliquez les étapes pour effectuer des réservations via cette plateforme de réservation.
-->

{{% /booking-section %}}
9 changes: 5 additions & 4 deletions archetypes/country/index.de.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
draft: false
title: '{{ .File.ContentBaseName | title }}' # Ändere den Name auf den deutschen Ländernamen
description: '' # Ergänze eine Beschreibung für das Land
country: '{{ .File.ContentBaseName }}'
title: "{{ .File.ContentBaseName | title }}" # Ändere den Name auf den deutschen Ländernamen
description: "" # Ergänze eine Beschreibung für das Land
country: "{{ .File.ContentBaseName }}"
params:
operators_without_fip:
- # Liste Betreiber, die kein FIP akzeptieren
- # Liste Betreiber, die kein FIP akzeptieren
---

<!-- Entferne das "WIP" Snippet, wenn die Inhalte der Seite vollständig sind -->

{{< wip >}}

## FIP Nutzung
Expand Down
9 changes: 5 additions & 4 deletions archetypes/country/index.en.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
draft: false
title: '{{ .File.ContentBaseName | title }}' # Change the name to the English country name
description: '' # Add a description for the country
country: '{{ .File.ContentBaseName }}'
title: "{{ .File.ContentBaseName | title }}" # Change the name to the English country name
description: "" # Add a description for the country
country: "{{ .File.ContentBaseName }}"
params:
operators_without_fip:
- # List operators without FIP here
- # List operators without FIP here
---

<!-- Remove the WIP snippet if the page is complete -->

{{< wip >}}

## FIP Information
Expand Down
10 changes: 6 additions & 4 deletions archetypes/country/index.fr.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
---
draft: false
title: '{{ .File.ContentBaseName | title }}' # Change le nom par le nom du pays français
description: '' # Complète une description pour le pays
country: '{{ .File.ContentBaseName }}'
title: "{{ .File.ContentBaseName | title }}" # Change le nom par le nom du pays français
description: "" # Complète une description pour le pays
country: "{{ .File.ContentBaseName }}"
params:
operators_without_fip:
- # Listez ici les opérateurs ne participant pas au FIP
- # Listez ici les opérateurs ne participant pas au FIP
---

<!-- Supprimez ce message si la page est complète -->

{{< wip >}}

## Informations FIP
Expand Down
Loading
Loading