Skip to content
Matthew Harris edited this page Jan 9, 2014 · 6 revisions
cd /path/esgf.github.io
git pull
python release-creater.py -h
usage: release-creater.py [-h] version content

create and update release pages

positional arguments:
  version     release version number eg 1.7
  content     file with html or markdown content

optional arguments:
  -h, --help  show this help message and exit

Example 1.9 has been cut and all the release notes have been written in to a file 1.9notes.txt

###Adding a new release version page to esgf.org using release-creater.py

cd /path/esgf.github.io
python release-creater.py 1.9 1.9notes.txt
  • now review

    • that a new page "release1.9.md" has been created and is to your liking
    • /_layouts/releases_sidebar.html has a "release1.9.md" link added
  • commit to repo

      git add release1.9.md
      git commit -am "adding 1.9 release notes"
      git push
    

###Adding a new release version page to esgf.org using template (performing the script by hand)

cd /path/esgf.github.io
git pull
cp release_base.md release1.9.md
open release1.9.md
find and replace {version} with "title: release 1.9"
find and replace {content} with 1.9 release notes (html or markdown)
save, close
open /_layouts/releases_sidebar.html
find <!--next--> and add a new line under it with "<li><a href="release1.9.html">Release 1.9</a></li>"
git add release1.9.md
git commit -am "adding 1.9 release notes"
git push

Clone this wiki locally