Skip to main content

mkdocs-material-relative-language-selector

PyPI version Downloads

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 URL https://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: true to 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)

Source distribution for mkdocs-material-relative-language-selector 1.1.4
File Size Uploaded
mkdocs_material_relative_language_selector-1.1.4.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-material-relative-language-selector 1.1.4
File Interpreter ABI Platform
mkdocs_material_relative_language_selector-1.1.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page