Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.55 KB

README.md

File metadata and controls

68 lines (48 loc) · 1.55 KB

Thinking Cities

Repository to store and manage end user documentation related to the Telefónica's Thinking Cities platform powered by FIWARE.

How to generate documentation for a specific release

Requirements:

  • Python 2.7 (it may work with other versions but I haven't tested)
  • Required Python modules: requests and configparser, that can ben installed typically using:
sudo pip install requests configparser

Assuming you are in master branch with everything ready to release (v4.2 is a fictional example):

  • Create the release branch:
git checkout -b release/v4.2
  • Adjust URLs to point to the right version of the components included in that release. This is done automatically by the prepare_release.py using as input the repo-to-version configuration file
./prepare_release.py -v -d docs/ -c iotpv4.2.conf
  • Check that the script has done its job correctly
git diff
  • Commit all changes
git add docs/*.md
git add docs/topics/*.md
git status   # check all the files are staged for commit
git commit
  • Push to origin
git push origin release/v4.2

Configuration file syntax

The configuration file (iotpv4.2.conf in the example above) uses the following syntax:

[branches]
repo-name1=release/1.1.0
repo-name2=release/1.2.0
repo-name3=release/1.3.0
...
repo-nameN=release/1.4.0

The 1.1.0, 1.2.0, etc. above are just example; use actual version number in a real case.