A sphinx extension for creating panels in a grid layout.
Project description
sphinx-panels
A sphinx extension for creating panels in a grid layout. utilising both the bootstrap 4 grid system, and cards layout.
.. panels::
Content of the top-left panel
---
Content of the top-right panel
---
Content of the bottom-left panel
---
Content of the bottom-right panel
The link-button
directive can be used to create buttons, which link to a URL (default) or reference.
They can be styled by Bootstrap button classes:
.. panels::
.. link-button:: https://example.com
:type: url
:tooltip: hallo
:classes: btn-success
---
This entire panel is clickable.
+++
.. link-button:: panels/usage
:type: ref
:text: Go To Reference
:classes: btn-outline-primary btn-block stretched-link
The dropdown
directive combines a Bootstrap card
with the HTML details tag to create a collapsible
drop-down panel.
.. dropdown:: Click on me to see my content!
I'm the content which can be anything:
.. link-button:: https://example.com
:text: Like a Button
:classes: btn-primary
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
sphinx-panels-0.4.1.tar.gz
(72.7 kB
view hashes)
Built Distribution
Close
Hashes for sphinx_panels-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21c86a21f1109b00be87be9e057882ac8ca559d83805e58145a9f9a90f41d4df |
|
MD5 | 970e54370606ae630e4c84feb3956a77 |
|
BLAKE2b-256 | 74277f145fcbdd6d53990df2d4d22a9766bd47fca2ddf58a77c6476a9b9d4653 |