mkdocs-material-relative-language-selector
Edit the builtin mkdocs-material site selector to make the links between languages relative.
- If you have in Github Pages the URL
https://foo.github.io/bar/es/config/, you can access it from the URLhttps://foo.github.io/bar/config/selecting Spanish in the language selector. - The current language being displayed will be removed from the language selector, so you will only capable to access to other languages than the current.
Installation
pip install mkdocs-material-relative-language-selector
Example configuration
With mkdocs-mdpo-plugin
theme:
name: material
language: en
plugins:
- search
- material-relative-language-selector
- mdpo
extra:
alternate:
- name: English
lang: en
- name: Español
link: es
lang: es
Configuration
- If you want to publish your site in Github Pages, you don't need to define any setting because is the default configuration.
- If you want to serve your site
under a custom root domain, define
root_domain: trueto get correct links between languages.
Projects using it
Metadata
Release files for mkdocs-material-relative-language-selector 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs_material_relative_language_selector-1.1.4.tar.gz | 5.1 kB | Without provenance | Details for mkdocs_material_relative_language_selector-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_material_relative_language_selector-1.1.4-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_material_relative_language_selector-1.1.4-py3-none-any.whl |
Total release size: 10.8 kB
Release files / mkdocs_material_relative_language_selector-1.1.4.tar.gz
| Download URL | mkdocs_material_relative_language_selector-1.1.4.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e678272b2aa587f39c6d0c11b9be19e1f5959714582e78a150bfda4f6c1dc69
|
|
BLAKE2b-256 checksum How to use checksums |
00374815d55adc55f5ccb80f8fcf0eeef27ada2e0f1aa91d0a1709d6026c3184
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / mkdocs_material_relative_language_selector-1.1.4-py3-none-any.whl
| Download URL | mkdocs_material_relative_language_selector-1.1.4-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9c17e6b655e87a05aea8d6a994a0b019dafe4a95f8674c6d2ffceaba0f1967a
|
|
BLAKE2b-256 checksum How to use checksums |
56310460ed7e2914b477b71c3621e62fa7da7415b60eb4ff382a6f4a361a42f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Security for mkdocs-material-relative-language-selector 1.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.