Skip to main content

Relative access between translations using mkdocs-material theme.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file mkdocs_material_relative_language_selector-1.1.3.tar.gz.

File metadata

  • Download URL: mkdocs_material_relative_language_selector-1.1.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using 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.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for mkdocs_material_relative_language_selector-1.1.3.tar.gz
Algorithm Hash digest
SHA256 49147450bd4b3e6d87876ad2077e81573e2473160d36a582940304c26ec89166
MD5 5c0ca78a7d07cf87dff5205cf58a7ad6
BLAKE2b-256 f792b0081ed5e6d74b964f243f88969c703a4d56a363a8a76824df8f331e0324

See more details on using hashes here.

File details

Details for the file mkdocs_material_relative_language_selector-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_material_relative_language_selector-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using 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.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for mkdocs_material_relative_language_selector-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 78b3060a11fe563fc2b33ea46582acc778a0dd8f32bfb70ea9497f251297723f
MD5 399cc06afcef182ea7f72ced1454d520
BLAKE2b-256 ea2786cb9be4bba8ffea93c9047fb952d48704c406362248abc4caa0e85f41b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page