Skip to content

Releases: Fanchengyan/myst-sphinx-gallery

v0.3.0

06 Sep 08:29
5adfa71
Compare
Choose a tag to compare

What's new in v0.3.0

Adding gallery directives

Now, you can generate galleries directly using directives in documentation. There are three gallery directives available:

  • base-gallery: Create a base gallery.
  • gallery: Create a total gallery in which base galleries serve as sections.
  • ref-gallery: Create a gallery which items are all references to external files.

Tip

  • base-gallery and gallery directives will create toctree nodes
    automatically. They can be called multi-times in the same document.
    You can combine them to create more complex galleries.
  • ref-gallery directive can be used in your Python docs to display the related
    examples directly. Here is an example: :Using ref-gallery in code docs.

Configuration variables

  • Adding a new configuration variable myst_sphinx_gallery_files_config to
    specify the configuration for each file in the gallery.
  • myst_sphinx_gallery_config now can left examples and galleries
    dictionaries be None, which will serve as a pure global configuration.

Deprecation

In this release, we have changed the style of the gallery cards from
the Sphinx-Design to Sphinx Gallery.

Therefore, toc_tree, grid, and grid_item_card now not suggested
to be used by user in the gallery configuration. It will only be internally
used by program.

Besides, the style parameters, like margin, padding, and gutter
parameters in the Grid and GridItemCard are deprecated. This can avoid
wired layout in the gallery cards with new style. Instead, we suggest to use
CSS to adjust the layout of gallery cards. More details can be found in the
Customizing Style of Thumbnail and Card section.

V0.2.2

19 Aug 08:02
44e492f
Compare
Choose a tag to compare

What's new in v0.2.2

Thumbnails

  • ThumbnailConfig now supports a new option: max_animation_frames, to control the maximum number of frames for the animated thumbnail. This option is useful when the animation has too many frames, saving storage space and building time.
  • quality_animated changed from 15 to 50 to improve the quality of the animation thumbnail. This change will not increase the animated thumbnail file size since frames are reduced by the max_animation_frames option.

Cross-referencing

  • the target of GALLERY_HEADER.rst now will be added a suffix _header to avoid conflict with the example files.

Runtime

  • Now, the runtime of building the gallery will be displayed in the console output. This feature is useful when you want to know how long it takes to build the gallery and optimize the building time by changing the configuration options of thumbnails.

v0.2.1

17 Aug 05:33
10b64db
Compare
Choose a tag to compare

Adding

  1. Add target_prefix config to GalleryConfig to customize for cross reference
  2. Add target prefix for GALLERY_HEADER.rst
  3. add quality_static and quality_animated to ThumbnailConfig to control quality separately.

Changes:

Black -> ruff

v0.2.0: Merge pull request #3 from Fanchengyan/dev

12 Aug 17:38
2e0030b
Compare
Choose a tag to compare
  • Added support for setup through the conf.py extension list
  • Added the ThumbnailConfig option, which allows customizing the size, algorithm, parameters, etc. for generating thumbnails
  • Added support for customize grid and grid-item-grid

v0.1.1

10 Aug 09:59
Compare
Choose a tag to compare

Refine the project and docs

v0.1-rc

09 Aug 09:56
Compare
Choose a tag to compare
v0.1-rc Pre-release
Pre-release

init project test