Change log#
0.5.1 (2023-11-29)#
Bug fixes#
Add
sphinx.ext.intersphinx
to theextensions
list intechnote.sphinxconf
. This extension is required to use the[technote.sphinx.intersphinx]
configuration.
0.5.0 (2023-11-28)#
Backwards-incompatible changes#
New structure for the
PersonName
model (used for the name key in[[technote.authors]]
):Delete the
name
key to require structured namesRename the
given_names
andfamily_names
keys togiven
andfamily
, respectively, which works better in context.
New features#
Add a new
organization
key to the[technote]
table to capture information about the organization publishing the technote series.
Bug fixes#
The edit-on-GitHub link created in the Jinja context now correctly points to
index.md
if appropriate. Previously it assumed that the source page would beindex.rst
.Allow the date_created and date_modified keys in the
[technote]
table to use native TOML date formats (e.g.,2023-11-20T14:40:22Z
, without quoting as a string).
0.4.0 (2023-10-31)#
New features#
Added the myst-parser to the technote extension set. This allows Markdown files to be included in the technote build.
Bug fixes#
Images added with a plain
.. image::
directive are now constrained to a maximum size of the container width. This is the same behavior as figures.
0.3.0 (2023-10-26)#
Backwards-incompatible changes#
Require Pydantic 2 and later
Require Python 3.11 and later
The
technote.status
field is changed. The “planning” and “active” states are now “draft.” The values in thesupersceding_urls
array are now tables withurl
andtitle
(optional) keys.The metadata for creation and update dates are now maintained as full datetime objects rather than date objects.
Refactor the original
technote.config
module into separate modules and classes for modelingtechnote.toml
settings, internal representation of metadata (technote.metadata.model.TechnoteMetadata
), the front-end for bootstrapping the Sphinx configuration inconf.py
(technote.main.TechnoteSphinxConfig
), and the Jinja context for HTML templating (technote.templating.context.TechnoteJinjaContext
). A new factory class is responsible for creating these objects (technote.factory.TechnoteFactory
). The benefit of this architecture is that it’s not possible to continue building metadata from additional sources (external APIs and the technote context) since the metadata is not longer strictly tied to thetechnote.toml
file representation.
New features#
Light and dark colour themes are now set via a
html[data-theme='light']
ordark
data theme attribute. JavaScript sets this element based on the user preference of ‘light’, ‘dark’, or ‘auto’ (using media queries for system settings). New CSS classestechnote-themed-light
andtechnote-themed-dark
now determine what elements appear, or not, in certain themed contexts. This mechanism is highly inspired by pydata-sphinx-theme.Pygments highlighting CSS is now applied to all code samples, with light and dark themes using the mechanism described above. The default pygments styling comes from the
accessible-pygments
package. The mechanism for setting a light and dark Pygments theme is also based on pydata-sphinx-theme.New CSS custom properties for setting light and dark responsive colours.
Include common metadata in the technote HTML:
Standard HTML meta tags like
description
andcanonical
URL link rel.Highwire Press meta tags (used by Google Scholar)
OpenGraph meta tags (used by social media and messaging apps)
microformats2 annotations on relevant elements
Custom data attributes on relevant elements (the link to the technote source repository)
Improve styling of the local table of contents. The outline is now sticky to the document and is independently scrollable if longer than the viewport.
The content in the primary (left) sidebar is also sticky to the document and is independently scrollable if longer than the viewport.
Improved styling:
Style the permalink icon
Style code blocks
Style admonitions
Style the metadata in the sidebars
Style footnotes
Style citations
Style quotes
Style tables and add a
wraptables`` Sphinx extension (included with the technote extension set) that wraps table elements in a
figure` to ensure wide tables have horizontal scrollbarsImprove layout in the mobile view
The new “insertstatus” Sphinx extension, included in the
technote.ext
Sphinx extension, inserts an aside element below the title of the technote describing the status. The status is only published for non-stable states.Ignore common infrastructure directories and files from the Sphinx build.
Bug fixes#
The
technote.ext.toc
extension now correctly handles the case where a technote has no sections.
Other changes#
Adopt Ruff for linting
0.2.0 (2022-12-05)#
This version adds customized Jinja templates as well as CSS to implement the core technote reading experience on the web.
This version includes an abstract
reStructuredText directive, as well as a customized table of contents context variable for Jinja (technote_toc
).
0.1.0 (2022-10-21)#
First release of technote.