1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/data/features
Octomerger Bot ac3d59a206 repo sync (#16442)
* Updated language to reference enabling instead of opt-in

* Optimize images

* fixing broken link

* Update content/get-started/privacy-on-github/about-githubs-use-of-your-data.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Update content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Update content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Openapi update api.github.com (#26398)

* Openapi 3.0 ghae (#26400)

* Update OpenAPI  Descriptions (#26397)

* Fix a change missed in a last minute update (#26389)

* change order of some site-policy docs (#26307)

* reordering the docs

* Create codespace.md

* Update README.md

* Update README.md

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Update OpenAPI  Descriptions

* update preview env app_url to preview.ghdocs.com (#26335)

* Fix flag (#26420)

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Remove Caddy from preview envs (#26336)

* remove caddy from preview envs

* fix: remove location from template

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* Add `Ignore commits in the blame view` to blame docs (#26017)

* Connect addendum deprecation (#26296)

* temporarily commented  out

* also comment out

* also comment out

Co-authored-by: Jenni Christensen <97056108+dihydroJenoxide@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: Abby Vollmer <vollmera@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: docubot <67483024+docubot@users.noreply.github.com>
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
Co-authored-by: Billy Rusteen <birust@github.com>
2022-03-22 11:47:40 -04:00
..
2022-03-22 11:47:40 -04:00
2022-02-14 10:25:31 +00:00
2021-10-27 07:47:17 -07:00
2021-10-15 15:41:33 -05:00
2022-03-03 13:43:47 +00:00
2021-10-20 10:10:28 -04:00
2022-01-21 18:04:18 +00:00

Feature-based versioning

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.

How it works

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: '*'
  ghes: '>3.1'
  ghae: '*'

The format and allowed values are the same as the frontmatter versions property.

Liquid conditionals

Now you can use {% if meow %} ... {% endif %} in content files! Note this is the if tag, not the new ifversion tag.

Frontmatter

You can also use the feature in frontmatter in content files:

versions:
  fpt: '*'
  ghes: '>3.1'
  feature: 'meow'

If you want a content file to apply to more than one feature, you can do this:

versions:
  fpt: '*'
  ghes: '>3.1'
  feature: ['meow', 'blorp']

Schema enforcement

The schema for validating the feature versioning lives in tests/helpers/schemas/feature-versions.js and is exercised by tests/content/lint-files.js.

Script to remove feature tags

TBD!