Hydrospheredata / hydro-serving

MLOps Platform
http://docs.hydrosphere.io
Apache License 2.0
271 stars 42 forks source link

Documentation release script implementation #321

Closed KineticCookie closed 4 years ago

KineticCookie commented 4 years ago

Reimplemented old faulty sh script using minimal python3.5 (without external deps).

The algorithm is:

  1. Check the version in folder
  2. If there is a version - parse it as semver
  3. If it's a not a semver jump to 6
  4. leave only {major}.{minor}.(max(patch))
  5. Delete other versions under {major}.{minor}
  6. Assign latest version
  7. Dump all versions to versions.json
  8. Symlink paradox.json file from latest to folder root
  9. Symlink latest to the latest version

Tested locally - it works. Need approval and test on remote host.

KineticCookie commented 4 years ago

Tests of the script are successful ✨

  1. Created deleteme version of documentation
  2. Rewrote dev docs