A Sphinx extension that inserts a Bioschemas profiles or any kind schema.org structured metadata.
Project description
A Sphinx extension to embed Bioschemas profiles or any Schema.org structured metadata into your Sphinx documentation as <script type="application/ld+json"> tags.
Supports YAML and JSON formats
Embed metadata inline or load from an external file
Apply markup per-page (via directive) or globally for all pages (via conf.py)
Works with MyST for Markdown-based Sphinx projects
Installation
$ pip install sphinx-bioschemas
Then enable the extension in your conf.py:
extensions = ['sphinx_bioschemas']
Quick start
Per-page (in a .rst file):
.. bioschemas::
:format: yaml
"@context": https://schema.org/
"@type": LearningResource
name: My Tutorial
...
Or load from a file:
.. bioschemas:: bioschemas.yaml
Global (in conf.py):
bioschemas = ["bioschemas.yaml"]
Full documentation
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 sphinx_bioschemas-0.2.0.tar.gz.
File metadata
- Download URL: sphinx_bioschemas-0.2.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68d2cad49cea2debdfd26077f714df80b56169ade0bb52656fc0405da3f21de5
|
|
| MD5 |
2b56893f62ada1f555cc21295c2c4471
|
|
| BLAKE2b-256 |
3068c0fce030a4083498a3c00529fbda7656d4356b64ff363a7bef266fb5b7e3
|
File details
Details for the file sphinx_bioschemas-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_bioschemas-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0902719e9fc9fe4f7994d4c1f816e3ae9167cae6185838ccbcfef01b2fe7749f
|
|
| MD5 |
283da9e1c1c2b56bb02e067b7da0e08d
|
|
| BLAKE2b-256 |
fcce2a8d0df264958c6d9012f31822250c20655d1549fa6449d87d95aa5c4079
|