Skip to main content

A Sphinx extension that inserts a Bioschemas profiles or any kind schema.org structured metadata.

Project description

PyPI version

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

https://biocorecrg.github.io/sphinx-bioschemas/

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_bioschemas-0.2.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_bioschemas-0.2.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for sphinx_bioschemas-0.2.0.tar.gz
Algorithm Hash digest
SHA256 68d2cad49cea2debdfd26077f714df80b56169ade0bb52656fc0405da3f21de5
MD5 2b56893f62ada1f555cc21295c2c4471
BLAKE2b-256 3068c0fce030a4083498a3c00529fbda7656d4356b64ff363a7bef266fb5b7e3

See more details on using hashes here.

File details

Details for the file sphinx_bioschemas-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_bioschemas-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0902719e9fc9fe4f7994d4c1f816e3ae9167cae6185838ccbcfef01b2fe7749f
MD5 283da9e1c1c2b56bb02e067b7da0e08d
BLAKE2b-256 fcce2a8d0df264958c6d9012f31822250c20655d1549fa6449d87d95aa5c4079

See more details on using hashes here.

Supported by

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