Merge lp:~rvb/maas/show-version-doc into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2258 |
Proposed branch: | lp:~rvb/maas/show-version-doc |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
40 lines (+15/-1) 2 files modified
docs/_templates/maas/layout.html (+6/-1) docs/conf.py (+9/-0) |
To merge this branch: | bzr merge lp:~rvb/maas/show-version-doc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+215377@code.launchpad.net |
Commit message
Add the bzr last revision, last revision date, and build date to the documentation pages.
Description of the change
We're about to change the docs on maas.ubuntu.com to publish the documentation for multiple versions. It will be very useful to have the bzr revision displayed on the doc pages to detect when the published documentation is outdated. I've added that info into the footer; here is how it looks like: http://
To post a comment you must log in.
[1]
+bzr_last_ revision_ number = check_output( ['bzr', 'revno']) revision_ date = check_output( ['bzr', 'version-info', '--template= {date}' ,'--custom' ]) ['bzr', 'version-info', '--template= {build_ date}', '--custom' ])
+bzr_last_
+bzr_build_date = check_output(
Space after commas.
Strip whitespace from the outputs too?
[2]
It would be good to have the branch name too. Short name (i.e. lp...)
would be best, but I don't know if that's easy to get out of bzr.