Skip to main content

A simple Sphinx theme with RTL language support.

Project description

Minoo Theme is a Sphinx theme that supports right-to-left languages like Persian. It is available on PyPI and enables developers to create documentation websites with an elegant and functional design that works well with RTL languages.

https://badge.fury.io/py/sphinx_minoo_theme.svg

Features

  • Material Colors

  • RTL language support

  • Responsive design

  • Google Analytics integration

  • Social links and avatar

  • Free to use

Installation

Via package

You can install Minoo Theme from PyPI:

$ pip install sphinx_minoo_theme

To use the theme in your Sphinx project, edit your Sphinx configuration file conf.py as follows:

# At the top.
import sphinx_minoo_theme

# ...

extensions = ["sphinxcontrib.jquery"]
html_theme = "sphinx_minoo_theme"
html_theme_path = [sphinx_minoo_theme.get_html_theme_path()]

Via git or download

Alternatively, you can download the theme from the repository and copy sphinx_minoo_theme/sphinx_minoo_theme into your documentation at _templates folder. Then, add the following lines to your conf.py file:

extensions = ["sphinxcontrib.jquery"]
html_theme = "sphinx_minoo_theme"
html_theme_path = ["_templates"]

Customisation

To customize the Minoo Theme, follow these steps:

  1. Put your avatar image file into the static folder with the name avatar.jpg.

  2. Edit the theme configuration file theme.conf:

  • Change direction:

    direction = ltr

    For “right-to-left” languages, set it to rtl

  • Add your Google Analytics ID:

    analytics_id = UA-XXXXX-X
  • Add your website address and social links:

    website =
    facebook =
    googleplus =
    linkedin =
    twitter =
    github = https://github.com/saeiddrv/SphinxMinooTheme
    gitlab =
    bitbucket =

    Leave empty whichever you don’t want.

  1. Edit the glossary.html file to change the theme words.

License

Minoo Theme is licensed under the MIT License. For more information, see the LICENSE file.

Gratitude

I would like to thank sphinx_rtd_theme for helping me build this theme.

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

sphinx_minoo_theme-1.0.1.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

sphinx_minoo_theme-1.0.1-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file sphinx_minoo_theme-1.0.1.tar.gz.

File metadata

  • Download URL: sphinx_minoo_theme-1.0.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.6 Darwin/23.2.0

File hashes

Hashes for sphinx_minoo_theme-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1e8a2bfc79ffa9e49869d3d634899a2cb43a3c0512d91085c1d0d80f3660fdfa
MD5 3c56e2e72c09425dab0434a4c303e2a9
BLAKE2b-256 d46de4a565ffe373ab330a1dd4597d941479ab99a7e03dd5f27ab3c7e4976b51

See more details on using hashes here.

File details

Details for the file sphinx_minoo_theme-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_minoo_theme-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46d3779a9efeb199c4af68bac2cb142f025a57c5debdc1841242d9bc7873c843
MD5 d3831c6fcb7c419b94b2d9e87bc52d2c
BLAKE2b-256 bd102c691f54091b68e150ddd1b960108aafb741f89642cd3abca310929b2ea1

See more details on using hashes here.

Supported by

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