Giter Club home page Giter Club logo

ovn-website-scripts's Introduction

ovn-website-scripts

Scripts for making changes to the ovn website

Installation requirements

The scripts require python 3.7+. Dependencies can be installed by running

pip install -r requirements.txt

update_website.py

This is the main script in this repository. The script takes as an argument an OVN branch number, such as "22.03" or "23.09". The script then generates appropriate OVN website content for that particular branch. The script uses /tmp/ovn-website-workdir/ovn-website as the location for the OVN website. It is up to the caller of the script to commit and push these changes to an appropriate remote and/or create a pull request.

Rather than actually updating website content, the script works by regenerating content appropriate for the branch on every run. This makes it work both for new and old branches alike. When a new release is made on a branch, run

./update_website.py <branch>

And the script will detect the new release and update the release pages appropriately.

The script can also be used to update the support status of old branches on the OVN website. Like when a new release is made, you can run the script on an old branch, like

./update_website.py <old_branch>

If any old releases' support status has changed, then the pages for those releases will be updated to reflect this.

website_maintenance.sh

This is a convenience script that can be used to automatically run update_website.py on all supported branches. A potential use-case for this script is to run nightly in order to keep the support status of released branches up-to-date on the website.

TODO

  • Add an option to update_website.py to automatically create a github pull request with the ovn-website changes from a script run.

ovn-website-scripts's People

Contributors

putnopvut avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.