From cc028325ac278aeb01c38a2b8425249c820268a8 Mon Sep 17 00:00:00 2001 From: Guilhem Bonnefille <guilhem.bonnefille@c-s.fr> Date: Wed, 9 Oct 2019 09:29:37 +0200 Subject: [PATCH] Move orekit versions to data file It would be simpler to process such data automatically. For example to have a bot adding versions. Or reuse this information for any other step. --- README.md | 4 ++-- _config.yml | 18 ------------------ _data/orekit/versions.yml | 14 ++++++++++++++ community.html | 4 ++-- doc-javadoc.html | 2 +- doc-maven.html | 28 ++++++++++++++-------------- doc-tutorials.html | 14 +++++++------- download.html | 2 +- 8 files changed, 41 insertions(+), 45 deletions(-) create mode 100644 _data/orekit/versions.yml diff --git a/README.md b/README.md index 1abeff5..cd1b40f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ Releasing ========= -Declare the new Orekit and Rugged versions in `_config.yml` in -`orekit.versions` and 'rugged.versions' arrays. +Declare the new Orekit and Rugged versions in +`_data/orekit/versions.yml` and 'rugged.versions' arrays. diff --git a/_config.yml b/_config.yml index 4a23ef9..a414819 100644 --- a/_config.yml +++ b/_config.yml @@ -20,24 +20,6 @@ highlighter: rouge exclude: ["bin", "NOTES.md", "NOTES.html", "README.md", "README.html", "tmp"] -# Orekit -orekit: - versions: - - 10.0 - - 9.3.1 - - 9.3 - - 9.2 - - 9.1 - - 9.0.1 - - 9.0 - - 8.0.1 - - 8.0 - - 7.2.1 - - 7.2 - - 7.1 - - 7.0 - - 6.1 - rugged: versions: - 2.1 diff --git a/_data/orekit/versions.yml b/_data/orekit/versions.yml new file mode 100644 index 0000000..2f0e601 --- /dev/null +++ b/_data/orekit/versions.yml @@ -0,0 +1,14 @@ +- 10.0 +- 9.3.1 +- 9.3 +- 9.2 +- 9.1 +- 9.0.1 +- 9.0 +- 8.0.1 +- 8.0 +- 7.2.1 +- 7.2 +- 7.1 +- 7.0 +- 6.1 diff --git a/community.html b/community.html index 3433b1b..6183d80 100644 --- a/community.html +++ b/community.html @@ -60,9 +60,9 @@ layout: default_orekit <h2>Contribute by other means</h2> <p><strong>Documentation:</strong> you can also report bugs or lacks in the provided documentation - (<a href="{{ site.url }}/site-orekit-{{site.orekit.versions.first}}/apidocs/index.html">latest release Javadoc</a>, + (<a href="{{ site.url }}/site-orekit-{{site.data.orekit.versions.first}}/apidocs/index.html">latest release Javadoc</a>, <a href="{{ site.url }}/site-orekit-development/apidocs/index.html">development version Javadoc</a> - or <a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/index.html">technical documentation</a>).</p> + or <a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/index.html">technical documentation</a>).</p> <p><strong>Translation:</strong> Orekit messages translation in all languages are welcome!</p> diff --git a/doc-javadoc.html b/doc-javadoc.html index a185040..2177491 100644 --- a/doc-javadoc.html +++ b/doc-javadoc.html @@ -14,7 +14,7 @@ layout: default_orekit <p> <a class="btn btn-outline-primary btn-sm" href="{{ site.url }}/site-orekit-development/apidocs/index.html" role="button">Under development</a> -{% for version in site.orekit.versions %} +{% for version in site.data.orekit.versions %} <a class="btn btn-outline-primary btn-sm btn-space" href="{{ site.url }}/site-orekit-{{version}}/apidocs/index.html" role="button">{{version}}</a> {% endfor %} </p> diff --git a/doc-maven.html b/doc-maven.html index b60f115..3beb729 100644 --- a/doc-maven.html +++ b/doc-maven.html @@ -15,7 +15,7 @@ layout: default_orekit <p> <a class="btn btn-outline-primary btn-sm btn-space" href="{{ site.url }}/site-orekit-development/index.html" role="button">Under development</a> -{% for version in site.orekit.versions %} +{% for version in site.data.orekit.versions %} <a class="btn btn-outline-primary btn-sm btn-space" href="{{ site.url }}/site-orekit-{{version}}/index.html" role="button">{{version}}</a> {% endfor %} </p> @@ -25,17 +25,17 @@ layout: default_orekit <p>Learn about the main design choices:</p> <ul> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/attitudes.html">Attitudes</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/bodies.html">Bodies</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/errors.html">Errors</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/estimation.html">Estimation</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/forces.html">Forces</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/frames.html">Frames</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/gnss.html">GNSS</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/orbits.html">Orbits</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/propagation.html">Propagation</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/time.html">Time</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/tessellation.html">Tessellation</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/tle.html">TLE</a></li> - <li><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/architecture/utils.html">Utils</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/attitudes.html">Attitudes</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/bodies.html">Bodies</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/errors.html">Errors</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/estimation.html">Estimation</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/forces.html">Forces</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/frames.html">Frames</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/gnss.html">GNSS</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/orbits.html">Orbits</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/propagation.html">Propagation</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/time.html">Time</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/tessellation.html">Tessellation</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/tle.html">TLE</a></li> + <li><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/architecture/utils.html">Utils</a></li> </ul> diff --git a/doc-tutorials.html b/doc-tutorials.html index 7443d0d..eea0f74 100644 --- a/doc-tutorials.html +++ b/doc-tutorials.html @@ -15,12 +15,12 @@ layout: default_orekit <ul class="fa-ul"> <li> - <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/tutorial/attitude.html">Attitude</a><br/> + <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/tutorial/attitude.html">Attitude</a><br/> This tutorial emphasizes a specific usage of the attitude package described in the attitudes section of the library architecture documentation.</p></li> <li> - <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/tutorial/frames.html">Frames</a><br/> + <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/tutorial/frames.html">Frames</a><br/> This tutorial shows how to solve three problems: (1) computation of the Doppler effect of a satellite with respect to a ground station, (2) computation of the position and velocity of the center of gravity in the @@ -28,13 +28,13 @@ layout: default_orekit a spacecraft which attitude is guided by a yaw steering law.</p> </li> <li> - <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/tutorial/propagation.html">Propagation</a><br/> + <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/tutorial/propagation.html">Propagation</a><br/> This tutorial details some elementary usages of the propagation package described in the propagation section of the library architecture documentation (propagation modes, events management).</p> </li> <li> - <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/tutorial/propagation-in-non-inertial-frame.html">Propagation in non-inertial frame</a><br/> + <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/tutorial/propagation-in-non-inertial-frame.html">Propagation in non-inertial frame</a><br/> This tutorial aims to introduce orbital integration using SingleBodyAttraction and InertialForces classes, which allowing the user to compute the motion of a satellite in a reference frame that is not @@ -42,15 +42,15 @@ layout: default_orekit possess inertial axis.</p> </li> <li> - <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/tutorial/time.html">Time</a><br/> + <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/tutorial/time.html">Time</a><br/> This tutorial shows how to handle time in Orekit.</p> </li> <li> - <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/tutorial/geomagnetic-field.html">Geomagnetic Field Model</a><br/> + <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/tutorial/geomagnetic-field.html">Geomagnetic Field Model</a><br/> This tutorial shows how to calculate the geomagnetic field of the earth.</p> </li> <li> - <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.orekit.versions.first }}/tutorial/integration-in-other-languages.html">Integration in other languages</a><br/> + <p><span class="fa-li fa-lg fa fa-gears"></span><a href="{{ site.url }}/site-orekit-{{ site.data.orekit.versions.first }}/tutorial/integration-in-other-languages.html">Integration in other languages</a><br/> The Orekit library can be accessed from other languages, for integration into existing software or for quick prototyping in a scripting language such as Matlab, Python or Jython. This allows for diff --git a/download.html b/download.html index ff9dba7..0a6ccd0 100644 --- a/download.html +++ b/download.html @@ -7,7 +7,7 @@ layout: default_orekit <h1>Latest release</h1> -<h2>Orekit {{site.orekit.versions.first}}</h2> +<h2>Orekit {{site.data.orekit.versions.first}}</h2> <p> <a class="btn btn-warning" href="/download/orekit-latest.jar" role="button">Get the binaries</a> -- GitLab