Adding a Previous Version Snapshot
- Check out this repository locally.
- Create a new package metadata file in
themes/default/data/registry/packagessuffixed with the major version number. E.g.aws-v6.yaml. - Copy the contents of the existing package metadata file (e.g.
aws.yaml) into the new file- Add the suffix to the provider
nameandtitlefields. - Set the version in the
versionandschema_file_urlfields to the latest patch version of the previous major version. - Ensure
featuredis set tofalse.
- Add the suffix to the provider
- Make a copy of the logo file in
themes/default/static/registry/logoswith the new package name. E.g.aws-v6.png. - Copy the content directory e.g.
cp -r themes/default/content/registry/packages/aws themes/default/content/registry/packages/aws-v6 - Run
make .make/content/registry/packages/<package_name>/api-docsto generate the API docs for the new package. - Run
make serve-allto generate output files and preview them locally at [[http://localhost:1313/registry/]] - Rename
static/registry/packages/navs/aws.jsontostatic/registry/packages/navs/aws-v6.json.
Commit all changes which are ignored by default except the schema and the original metadata file as we won't be re-generating again:
git add -f content/registry/packages/$PACKAGE_NAME
git add -f static/registry/packages/navs/$PACKAGE_NAME.json
git add -f themes/default/content/registry/packages/$PACKAGE_NAME
git add -f themes/default/static/logos/pkg/$PACKAGE_NAME.*