Skip to content

[Feature]: Add field to themes configuration for checking norgolith version #144

Description

@NTBBloodbath

Issues

  • I have checked existing issues and there no existing ones with the same request.

Feature description

Some themes might support norgolith starting from a certain version due to new features and such. Being able to let theme maintainers specify the minimum supported norgolith version might come handy.

On theme pull, norgolith would check the theme.toml to verify the minimum specified version against its own version (speaking of the lith binary, of course). If lith < minimum, a warning should be shown to the end user that the pulled theme requires version minimum in order to work properly and CTA to update Norgolith.

An additional safety check might be added later down the road as well, just in case the latest norgolith version is 0.4 and theme.toml has a higher version number specified due to a typo or something. This safety check could also be used to notify the end user about the latest available norgolith version in the lith < minimum warning. Maybe a cache file or something with the version number and that's it?

Help

Yes

Implementation help

The theme.toml field could be called min_version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions