A Sphinx extension for generating Ubuntu image download lists.
Project description
sphinx-ubuntu-images
sphinx-ubuntu-images is a Sphinx extension that provides a custom directive to generate bulleted download lists of supported Ubuntu distro images for specific release ranges, suffixes, image-types, and architectures.
Basic usage
To generate a list of Ubuntu images, add the ubuntu-images directive to your document:
.. ubuntu-images::
This will generate a bulleted list of all supported Ubuntu images with download links.
Filtering options
The directive supports various filtering options:
Filter by release
.. ubuntu-images::
:releases: jammy-
Examples of valid release values:
jammy- Just the 22.04 releasejammy, noble- Just the 22.04 and 24.04 releasesfocal-noble- All releases from 20.04 to 24.04jammy-- All releases from 22.04 onwards-noble- All releases up to 24.04
Filter by architecture
.. ubuntu-images::
:archs: armhf, arm64
Filter by image type
.. ubuntu-images::
:image-types: preinstalled-server
Filter by suffix
.. ubuntu-images::
:suffix: +raspi
LTS releases only
.. ubuntu-images::
:lts-only:
Handle empty results
.. ubuntu-images::
:empty: No images available at this time
Complete examples
All supported raspi images from jammy onwards:
.. ubuntu-images::
:releases: jammy-
:suffix: +raspi
All supported LTS armhf and arm64 images:
.. ubuntu-images::
:archs: armhf, arm64
:lts-only:
Project setup
sphinx-ubuntu-images can be installed with:
pip install sphinx-ubuntu-images
After installation, update your Sphinx's conf.py file to include sphinx-ubuntu-images as one of its extensions:
extensions = [
"sphinx_ubuntu_images"
]
Directive Options Reference
The ubuntu-images directive supports the following options:
-
:releases:releases (list of ranges) - A comma or space-separated list of partial dash-delimited release ranges (as release codenames). If unspecified, all releases will be included. -
:lts-only:(no value) - If specified, only LTS releases will be included in the output. Interim releases are excluded. -
:image-types:image types (list of strings) - Filter images by their "type". This is the string after the release version, and before the architecture. The list may be comma or space separated. If unspecified, all image types are included. -
:archs:architectures (list of strings) - Filter images by their architecture. The list may be comma or space separated. If unspecified, all architectures are included. -
:suffix:image +suffix (string) - Filter images by their (plus-prefixed) suffix. If unspecified, any suffix (including images with no suffix) will be included. If specified but blank, only images with no suffix will be included. -
:matches:regular expression (string) - Filter images to those with filenames matching the specified regular expression. Use of this filter is discouraged; try using other filters first. -
:empty:string - If no images match the specified filters, output the given string instead of reporting an error and failing the build. The string may be blank for no output.
Advanced Usage
Regular Expression Filtering
For complex filtering requirements, you can use regular expressions:
.. ubuntu-images::
:matches: .*server.*arm64.*
:empty: No ARM64 server images found
Combining Multiple Filters
You can combine multiple filters for precise control:
.. ubuntu-images::
:releases: focal-jammy
:archs: arm64
:image-types: preinstalled-server, live-server
:suffix: +raspi
:empty: No Raspberry Pi images found for the specified criteria
Community and support
You can report any issues or bugs on the project's GitHub repository.
sphinx-ubuntu-images is covered by the Ubuntu Code of Conduct.
License and copyright
sphinx-ubuntu-images is released under the GPL-3.0 license.
© 2025 Canonical Ltd.
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
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_ubuntu_images-0.0.2.tar.gz.
File metadata
- Download URL: sphinx_ubuntu_images-0.0.2.tar.gz
- Upload date:
- Size: 83.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b91b2ce11b9c40dd1fd437423705a0a4f76509d2bbf784faa9c877a958a706ac
|
|
| MD5 |
83bde6ddc26f70c937384635c0814840
|
|
| BLAKE2b-256 |
a8653ae6c3afeb2a9257168e4eac469baebb0962d72bf8e80e37a3a4e87909a7
|
Provenance
The following attestation bundles were made for sphinx_ubuntu_images-0.0.2.tar.gz:
Publisher:
release-publish.yaml on canonical/sphinx-ubuntu-images
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_ubuntu_images-0.0.2.tar.gz -
Subject digest:
b91b2ce11b9c40dd1fd437423705a0a4f76509d2bbf784faa9c877a958a706ac - Sigstore transparency entry: 576446933
- Sigstore integration time:
-
Permalink:
canonical/sphinx-ubuntu-images@091d0e54a214ec4bf727ae18e1b66ba1511acdca -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@091d0e54a214ec4bf727ae18e1b66ba1511acdca -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_ubuntu_images-0.0.2-py3-none-any.whl.
File metadata
- Download URL: sphinx_ubuntu_images-0.0.2-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
071ba47e6bc0e54235f1251530c810f83dff4ddd7c93700ebb14b1a4e8b82359
|
|
| MD5 |
8cb8300a0a3ac1e78fd5daf0591dc1ba
|
|
| BLAKE2b-256 |
1bc03a6ce61a778c0af99659a5ad5b9458f6d2b2a48fdc548824d9b99a683130
|
Provenance
The following attestation bundles were made for sphinx_ubuntu_images-0.0.2-py3-none-any.whl:
Publisher:
release-publish.yaml on canonical/sphinx-ubuntu-images
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_ubuntu_images-0.0.2-py3-none-any.whl -
Subject digest:
071ba47e6bc0e54235f1251530c810f83dff4ddd7c93700ebb14b1a4e8b82359 - Sigstore transparency entry: 576446960
- Sigstore integration time:
-
Permalink:
canonical/sphinx-ubuntu-images@091d0e54a214ec4bf727ae18e1b66ba1511acdca -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@091d0e54a214ec4bf727ae18e1b66ba1511acdca -
Trigger Event:
push
-
Statement type: