Metadata-Version: 2.5
Name: sphinx-mekki
Version: 0.10.0
Summary: A Sphinx extension to embed images, download files, CSSs, and JSs into a single HTML file.
Project-URL: Homepage, https://github.com/wakinotani/sphinx-mekki
Project-URL: Issues, https://github.com/wakinotani/sphinx-mekki/issues
Author-email: Yoshiyuki Wakinotani <wakinotani@gmail.com>
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Sphinx
Classifier: Framework :: Sphinx :: Extension
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Documentation :: Sphinx
Classifier: Topic :: Software Development :: Documentation
Classifier: Topic :: Text Processing :: Markup :: HTML
Requires-Python: >=3.11
Requires-Dist: cssutils
Requires-Dist: mekki>=0.1
Requires-Dist: rjsmin
Description-Content-Type: text/x-rst

========================================================================
sphinx-mekki
========================================================================

A `Sphinx <https://www.sphinx-doc.org>`_ extension to embed images, download files, CSSs, and JSs into a single HTML file.

Installation
========================================================================

You are able to install ``sphinx-mekki`` with ``pip``.

.. code-block:: shell

   pip install sphinx-mekki

Usage
========================================================================

You must add ``sphinx_mekki`` to your extensions list in your ``conf.py``.

.. code-block:: python

   extensions = [... , "sphinx_mekki", ...]

You are optionally able to change the html_theme to ``mekki`` in the ``conf.py`` to generate simple HTML files with minimal dependency on other pages. (Hopefully, this extension should work with any HTML theme that complies with Sphinx.)

.. code-block:: python

   html_theme = "mekki"

Since version 0.10.0, the ``mekki`` theme is provided by the separate `mekki <https://github.com/wakinotani/mekki>`_ package, which is installed automatically as a dependency of ``sphinx-mekki``. The theme can also be used on its own without this extension.

Sidebar
========================================================================

Each page is meant to be used on its own, without links to the other pages.
So, since version 0.10.0, the sidebar holds only the table of
contents of the page itself, and it is shown on every page, even on a page
with only its title. The global table of contents, the previous/next links,
the source link and the search box are not shown.

This is done by setting ``html_sidebars`` to:

.. code-block:: python

   html_sidebars = {"**": ["mekki_localtoc.html"]}

``mekki_localtoc.html`` comes with ``sphinx-mekki``. It is Sphinx's
``localtoc.html`` without the "Table of Contents" heading, which links to the
root document. If your ``conf.py`` sets ``html_sidebars``, that is used
instead.

With the ``mekki`` theme, only the logo is shown at the top of the sidebar,
without the project title, and it links to the top of the page. This is done
by setting these theme options, unless your ``html_theme_options`` sets them:

.. code-block:: python

   html_theme_options = {"logo_link": "top", "show_sidebar_title": "false"}

With other themes, the logo and the title are left as the theme shows them,
and still link to the root document.

Enjoy writing docs!
