New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 10790 for NEMO/trunk/doc/rst – NEMO

Changeset 10790 for NEMO/trunk/doc/rst


Ignore:
Timestamp:
2019-03-21T17:47:24+01:00 (5 years ago)
Author:
nicolasmartin
Message:

Add revision number to the guide homepage and limite verbosity of LaTeX compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/doc/rst/source/conf.py

    r10600 r10790  
    9292# -- Customisation ----------------------------------------------------------- 
    9393 
     94# Timestamping 
    9495import datetime 
    9596year = datetime.date.today().year 
     
    108109# Include common directives for every rst file 
    109110rst_epilog = open('global.rst', 'r').read() 
     111 
     112# SVN revision 
     113import subprocess 
     114revision = subprocess.check_output("svnversion") 
     115rst_prolog = '.. |svn_revision| replace:: %s' % revision 
Note: See TracChangeset for help on using the changeset viewer.