Skip to content

Commit

Permalink
Fix links in READMEs translations (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja authored Mar 7, 2024
1 parent db45558 commit d5fb0bf
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 41 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
minimum_pre_commit_version: 2.9.0
exclude: ^locale
- repo: https://github.com/mondeja/project-config
rev: v0.9.3
rev: v0.9.5
hooks:
- id: project-config
- repo: meta
Expand All @@ -33,7 +33,7 @@ repos:
- id: end-of-file-fixer
name: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.13
rev: v0.3.1
hooks:
- id: ruff
args:
Expand All @@ -44,7 +44,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/mondeja/mdpo
rev: v1.1.4
rev: v2.0.0
hooks:
- id: md2po2md
files: ^README\.md
Expand All @@ -63,11 +63,11 @@ repos:
- id: untranslated-messages
- id: remove-metadata
- repo: https://github.com/adrienverge/yamllint
rev: v1.33.0
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.0
rev: v0.12.1
hooks:
- id: markdownlint-cli2
name: markdownlint-readme
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ Paths of included files can be either:
- Absolute paths (starting with a path separator).
- Relative from the file that includes them (starting with `./` or `../`).
- Relative to the [`docs_dir`] directory. For instance if your `docs_dir` is
_./docs/_, then `includes/header.md` will match the file _./docs/includes/header.md_.
_./docs/_, then `includes/header.md` will match the file
_./docs/includes/header.md_.
- [Bash wildcard globs] matching multiple local files.

File paths to include and string arguments can be wrapped by double `"` or
Expand Down Expand Up @@ -274,6 +275,10 @@ Includes the content of a file or a group of files.
[giving me the permissions][cibuildwheel-470] to separate this plugin from the
documentation of [cibuildwheel][cibuildwheel-repo-link].

[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax

<!-- mdpo-disable -->

[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin
[pypi-version-badge-link]: https://img.shields.io/pypi/v/mkdocs-include-markdown-plugin?logo=pypi&logoColor=white
[tests-image]: https://img.shields.io/github/actions/workflow/status/mondeja/mkdocs-include-markdown-plugin/ci.yml?logo=github&label=tests&branch=master
Expand All @@ -287,5 +292,4 @@ Includes the content of a file or a group of files.
[cibuildwheel-repo-link]: https://github.com/pypa/cibuildwheel
[es-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/es/README.md
[fr-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/fr/README.md
[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax
[`docs_dir`]: https://www.mkdocs.org/user-guide/configuration/#docs_dir
6 changes: 2 additions & 4 deletions locale/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ Las rutas de los archivos a incluir pueden ser:
- Relativo al directorio [`docs_dir`]. Por ejemplo, si tu `docs_dir` es
_./docs/_, entonces `includes/header.md` coincidirá con el archivo
*_./docs/includes/header.md_*.
- [Bash wildcard globs] matching multiple local files.
[Patrones glob de Bash]
que coincidan con múltiples archivos locales.
- [Patrones glob de Bash] que coincidan con múltiples archivos locales.

Las rutas de archivo para incluir y los argumentos de cadena se pueden envolver
con comillas dobles `"` o simples `'`, que se pueden escapar anteponiendo un
Expand Down Expand Up @@ -268,6 +266,7 @@ se usará `utf-8`.
separar este plugin de la documentación de
[cibuildwheel][cibuildwheel-repo-link].

[Patrones glob de Bash]: https://facelessuser.github.io/wcmatch/glob/#syntax
[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin
[pypi-version-badge-link]: https://img.shields.io/pypi/v/mkdocs-include-markdown-plugin?logo=pypi&logoColor=white
[tests-image]: https://img.shields.io/github/actions/workflow/status/mondeja/mkdocs-include-markdown-plugin/ci.yml?logo=github&label=tests&branch=master
Expand All @@ -281,5 +280,4 @@ separar este plugin de la documentación de
[cibuildwheel-repo-link]: https://github.com/pypa/cibuildwheel
[es-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/es/README.md
[fr-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/fr/README.md
[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax
[`docs_dir`]: https://www.mkdocs.org/user-guide/configuration/#docs_dir
20 changes: 9 additions & 11 deletions locale/es/README.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@ msgstr ""
"El comportamiento global del plugin puede ser personalizado en la "
"configuración."

msgid "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin"
msgstr "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin"

msgid ""
"[coverage-image]: https://img.shields.io/codecov/c/github/mondeja/mkdocs-"
"include-markdown-plugin?logo=codecov&logoColor=white"
Expand Down Expand Up @@ -346,14 +343,7 @@ msgid "Absolute paths (starting with a path separator)."
msgstr "Rutas absolutas (comenzando con un separador de rutas)."

msgid "[Bash wildcard globs] matching multiple local files."
msgstr ""
"[Bash wildcard globs] matching multiple local files.\n"
"[Patrones glob de Bash] que coincidan con múltiples archivos locales."

msgid ""
"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax"
msgstr ""
"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax"
msgstr "[Patrones glob de Bash] que coincidan con múltiples archivos locales."

msgid ""
"Relative from the file that includes them (starting with `./` or `../`)."
Expand Down Expand Up @@ -408,3 +398,11 @@ msgstr ""
"Relativo al directorio [`docs_dir`]. Por ejemplo, si tu `docs_dir` es "
"_./docs/_, entonces `includes/header.md` coincidirá con el archivo "
"*_./docs/includes/header.md_*."

msgid ""
"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax"
msgstr ""
"[Patrones glob de Bash]: https://facelessuser.github.io/wcmatch/glob/#syntax"

msgid "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin"
msgstr "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin"
4 changes: 2 additions & 2 deletions locale/fr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Les chemins des fichiers inclus peuvent être soit:
- Relatif au répertoire [`docs_dir`]. Par exemple, si votre `docs_dir` est
_./docs/_, alors `includes/header.md` va correspondre au fichier
*_./docs/includes/header.md_*.
- Globs génériques Bash correspondant à plusieurs fichiers locaux.
- [Globs génériques Bash] correspondant à plusieurs fichiers locaux.

Les chemins d'accès aux fichiers à inclure et les arguments de chaîne peuvent
être entourés de guillemets doubles `"` ou simples `'`, qui peuvent être
Expand Down Expand Up @@ -265,6 +265,7 @@ valeurs possibles sont `true` et `false`.
autorisations][cibuildwheel-470] pour séparer ce plugin de la documentation de
[cibuildwheel][cibuildwheel-repo-link].

[Globs génériques Bash]: https://facelessuser.github.io/wcmatch/glob/#syntax
[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin
[pypi-version-badge-link]: https://img.shields.io/pypi/v/mkdocs-include-markdown-plugin?logo=pypi&logoColor=white
[tests-image]: https://img.shields.io/github/actions/workflow/status/mondeja/mkdocs-include-markdown-plugin/ci.yml?logo=github&label=tests&branch=master
Expand All @@ -278,5 +279,4 @@ autorisations][cibuildwheel-470] pour séparer ce plugin de la documentation de
[cibuildwheel-repo-link]: https://github.com/pypa/cibuildwheel
[es-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/es/README.md
[fr-readme-link]: https://github.com/mondeja/mkdocs-include-markdown-plugin/blob/master/locale/fr/README.md
[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax
[`docs_dir`]: https://www.mkdocs.org/user-guide/configuration/#docs_dir
19 changes: 10 additions & 9 deletions locale/fr/README.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@ msgstr ""
"Le comportement global du plugin peut être personnalisé dans la "
"configuration."

msgid "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin"
msgstr "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin"

msgid ""
"[coverage-image]: https://img.shields.io/codecov/c/github/mondeja/mkdocs-"
"include-markdown-plugin?logo=codecov&logoColor=white"
Expand Down Expand Up @@ -345,12 +342,7 @@ msgid "Absolute paths (starting with a path separator)."
msgstr "Chemins de fichier absolus (commençant par un séparateur de chemin)."

msgid "[Bash wildcard globs] matching multiple local files."
msgstr "Globs génériques Bash correspondant à plusieurs fichiers locaux."

msgid ""
"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax"
msgstr ""
"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax"
msgstr "[Globs génériques Bash] correspondant à plusieurs fichiers locaux."

msgid ""
"Relative from the file that includes them (starting with `./` or `../`)."
Expand Down Expand Up @@ -404,3 +396,12 @@ msgstr ""
"Relatif au répertoire [`docs_dir`]. Par exemple, si votre `docs_dir` est "
"_./docs/_, alors `includes/header.md` va correspondre au fichier "
"*_./docs/includes/header.md_*."

msgid ""
"[Bash wildcard globs]: https://facelessuser.github.io/wcmatch/glob/#syntax"
msgstr ""
"[Globs génériques Bash]: https://facelessuser.github.io/wcmatch/glob/#syntax"

#, fuzzy
msgid "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin"
msgstr "[pypi-link]: https://pypi.org/project/mkdocs-include-markdown-plugin"
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ targets = [{ file = "pyproject.toml" }]
[tool.project-config]
cache = "2 days"
style = [
"gh://mondeja/[email protected]/base/pre-commit/md2po2md.json5",
"gh://mondeja/[email protected]/python/base.json5",
"gh://mondeja/[email protected]/python/mypy.json5",
"gh://mondeja/project-config-styles@v5.2.1/base/pre-commit/md2po2md.json5",
"gh://mondeja/project-config-styles@v5.2.1/python/base.json5",
"gh://mondeja/project-config-styles@v5.2.1/python/mypy.json5",
]

[tool.coverage.run]
Expand All @@ -121,6 +121,8 @@ fail_under = 1
[tool.ruff]
line-length = 80
target-version = "py38"

[tool.ruff.lint]
select = [
"W",
"B",
Expand Down Expand Up @@ -150,19 +152,19 @@ select = [
]
ignore = ["G004"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"

[tool.ruff.flake8-pytest-style]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
parametrize-values-type = "tuple"
parametrize-values-row-type = "tuple"

[tool.ruff.isort]
[tool.ruff.lint.isort]
lines-after-imports = 2
combine-as-imports = true
force-wrap-aliases = true
Expand All @@ -176,7 +178,7 @@ extra-standard-library = [
"wsgiref.types"
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"I002",
"D100",
Expand Down

0 comments on commit d5fb0bf

Please sign in to comment.