mkdocs-pseudocode-i18n
mkdocs-pseudocode-i18n renders multilingual educational pseudocode in MkDocs with Python-like Pygments token classes, MathJax-compatible TeX, and source-preserving copy behavior.
Version 0.2.0 is coordinated with:
pseudocode-i18n >= 0.2.1, < 0.3;pygments-lexer-pseudocode-i18n >= 0.2.0, < 0.3.
Installation
python -m pip install mkdocs-pseudocode-i18n
Enable it in mkdocs.yml:
plugins:
- search
- pseudocode
Shared configuration
The plugin uses the same pseudocode.config.yml as the core and lexer:
language: fr
mkdocs:
inject_mathjax: true
The file is auto-discovered from the MkDocs configuration directory upward. An arbitrary external file can also be selected:
plugins:
- pseudocode:
config_file: ../school-pseudocode.yml
Inline plugin values override external configuration:
plugins:
- pseudocode:
language: es
inject_mathjax: false
Usage
```pseudocode-fr
Fonction moyenne(notes):
total = 0
Pour note Dans notes:
total = total + note
Renvoyer total / longueur(notes)
Saisir "n=", n
Afficher "Moyenne :", moyenne(notes)
```
Aliases:
pseudo / pseudocode
pseudo-fr / pseudocode-fr
pseudo-en / pseudocode-en
pseudo-es / pseudocode-es
pseudo-de / pseudocode-de
pseudo-it / pseudocode-it
pseudo-pt / pseudocode-pt
Both backtick and tilde fences are supported.
Development
yarn setup
yarn bfc
yarn setup prefers editable sibling checkouts of pseudocode-i18n and pygments-lexer-pseudocode-i18n when they are present.
yarn bfc runs version synchronization, Ruff, pytest, documentation synchronization/checking, strict MkDocs build and package build.
Documentation is part of every project change. Language reference pages are generated from the core language definitions.
Releases
A normal:
push "message"
updates main and GitLab Pages, but does not create a release.
A release:
push "release 0.2.0" --release
pushes the version tag after main; the tag pipeline publishes to PyPI and creates an actual GitLab Release.
Documentation
The full documentation is published at:
https://rod2ik.gitlab.io/mkdocs-pseudocode-i18n/
It is organized into Installation, Configuration, exhaustive Usage, one reference page per supported language, Development, Reference and Troubleshooting.
License
GNU GPL-3.0-or-later.
Release files for mkdocs-pseudocode-i18n 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mkdocs_pseudocode_i18n-0.2.0.tar.gz | 37.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mkdocs_pseudocode_i18n-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.3 kB
Release files / mkdocs_pseudocode_i18n-0.2.0.tar.gz
| Download URL | mkdocs_pseudocode_i18n-0.2.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6b0477b7a7098c0a56b4d96a35c678dfaa3b96247460cd95cbf28aade2c2555
|
|
BLAKE2b-256 checksum How to use checksums |
f8a2a5a286b91b6e80f339cfdcdd672d2d350b37e44ed3bcc304aebb176eed90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / mkdocs_pseudocode_i18n-0.2.0-py3-none-any.whl
| Download URL | mkdocs_pseudocode_i18n-0.2.0-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13162d83efdf976474766cb4911e03211a6479f56585846b43c3e0819002541c
|
|
BLAKE2b-256 checksum How to use checksums |
a941cf6a5e3fd3a7097ed393ba1e8bdfe78cc3f4c660e5784fd88de74b5e5ead
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|