Get rich tool tips in your sphinx book!
Project description
TeachBooks Sphinx extension: Rich hover over tips
Rich tool tips in your TeachBook!
Introduction
Sphinx-tippy allows you to create rich hover over tips as demonstrated here: https://sphinx-tippy.readthedocs.io/en/latest/. This TeachBooks Tippy extension makes it plug-and-play within a TeachBook.
The differences with Sphinx-tippy are:
- Default inclusion of useful CSS-file.
- Default activation of sphinx.ext.mathjax.
- Default loading method of defer changed to None for supporting JavaScript.
- Default support for TeachBooks Sphinx Grasple such that images are shown (as iframes are not loaded).
Future differences with Sphinx-tippy are:
- Addition of a directive repeat to show content explicity.
What does it do?
You can see how the this works in the example book.
Installation
To install TeachBooks-Sphinx-Tippy, follow these steps:
Step 1: Install the Package
Install the teachbooks-sphinx-tippy package using pip:
pip install teachbooks-sphinx-tippy
Step 2: Add to requirements.txt
Make sure that the package is included in your project's requirements.txt to track the dependency:
teachbooks-sphinx-tippy
Step 3: Enable in _config.yml
In your _config.yml file, add the extension to the list of Sphinx extra extensions (important: underscore, not dash this time):
sphinx:
extra_extensions:
- teachbooks_sphinx_tippy
Usage
By following the steps above, the extension will be added automatically.
Contribute
This tool's repository is stored on GitHub. The README.md of the branch Manual is also part of the TeachBooks manual as a submodule. If you'd like to contribute, you can create a fork and open a pull request on the GitHub repository. To update the README.md shown in the TeachBooks manual, create a fork and open a merge request for the GitHub repository of the manual. If you intent to clone the manual including its submodules, clone using: git clone --recurse-submodulesgit@github.com:TeachBooks/manual.git.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file teachbooks_sphinx_tippy-1.0.3.tar.gz.
File metadata
- Download URL: teachbooks_sphinx_tippy-1.0.3.tar.gz
- Upload date:
- Size: 122.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df25b38f8bc94cd4e8ab902fa81ec9badd4a96635a7803a8a813693ab541cde6
|
|
| MD5 |
eba6015e42145c07facb22460b89d766
|
|
| BLAKE2b-256 |
beaa17596f65c709ce36a47f74ca4ce53a2ebbfe18e7c793e2916277a549c145
|
Provenance
The following attestation bundles were made for teachbooks_sphinx_tippy-1.0.3.tar.gz:
Publisher:
python-publish.yml on TeachBooks/teachbooks-sphinx-tippy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
teachbooks_sphinx_tippy-1.0.3.tar.gz -
Subject digest:
df25b38f8bc94cd4e8ab902fa81ec9badd4a96635a7803a8a813693ab541cde6 - Sigstore transparency entry: 154696551
- Sigstore integration time:
-
Permalink:
TeachBooks/teachbooks-sphinx-tippy@a56ac53cda164810cea8abe2696de473e4d93c78 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/TeachBooks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a56ac53cda164810cea8abe2696de473e4d93c78 -
Trigger Event:
push
-
Statement type:
File details
Details for the file teachbooks_sphinx_tippy-1.0.3-py3-none-any.whl.
File metadata
- Download URL: teachbooks_sphinx_tippy-1.0.3-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1017d10f0d31b3e72de53f1b93c0e53267a807966c4cc21991a04b8ea8b53508
|
|
| MD5 |
7ca3b60040b364508973c96d26f6c252
|
|
| BLAKE2b-256 |
422bbfa5ff61af27b381c8eee31d4f3efc9acd2c01ac21d79be0187c57b82d09
|
Provenance
The following attestation bundles were made for teachbooks_sphinx_tippy-1.0.3-py3-none-any.whl:
Publisher:
python-publish.yml on TeachBooks/teachbooks-sphinx-tippy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
teachbooks_sphinx_tippy-1.0.3-py3-none-any.whl -
Subject digest:
1017d10f0d31b3e72de53f1b93c0e53267a807966c4cc21991a04b8ea8b53508 - Sigstore transparency entry: 154696553
- Sigstore integration time:
-
Permalink:
TeachBooks/teachbooks-sphinx-tippy@a56ac53cda164810cea8abe2696de473e4d93c78 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/TeachBooks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a56ac53cda164810cea8abe2696de473e4d93c78 -
Trigger Event:
push
-
Statement type: