| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Feature-based versioning allows us to define and control the versions of an arbitrarily named "feature" in one place.
Note: Do not delete data/features/placeholder.yml because it is used by tests.
Add a new YAML file with the feature name you want to use in this directory. For a feature named meow, that would be data/features/meow.yml.
Add a versions block to the YML file with the short names of the versions the feature is available in. For example:
versions:
fpt: '*'
ghec: '*'
ghes: '>3.1'The format and allowed values are the same as the frontmatter versions property.
Now you can use {% ifversion meow %} ... {% endif %} in content files!
You can also use the feature in frontmatter in content files:
versions:
fpt: '*'
ghec: '*'
ghes: '>3.1'
feature: 'meow'You cannot use feature: to specify multiple concurrent versions, as this is not supported. Alternatively, you could create a new feature-based versioning file with the required versioning.
The schema for validating the feature versioning lives in src/data-directory/lib/data-schemas/features.ts.
TBD!
| Back | FazBrowse Home | New Git URL |