Hi Richard, <br><br>This is a good solution. I will have a look tomorrow and then we integrate it for all rst files. <br><br>Thanks a lot<br>Otto<br><br>----- Reply message -----<br>Von: "Richard Duivenvoorde" <rdmailings@duif.net><br>An: "qgis-community-team@lists.osgeo.org" <qgis-community-team@lists.osgeo.org><br>Betreff: [Qgis-community-team] update disclaimer in sources<br>Datum: Di., Okt. 16, 2012 22:51<br><br><br>Hi Otto,<br><br>I've been searching for an easy way to put a 'his section is not updated yet' disclaimer in every section of the html pages.<br><br>For doing this I added a rst_prolog in conf.py like this:<br><br>rst_prolog = """<br>... role:: disclaimer<br>... |updatedisclaimer| replace:: :disclaimer:`DISCLAIMER: This section of the user guide has not yet been updated for QGIS 1.8`<br>"""<br><br>And (for now) in all rst files in the preamble directory, I added the following on top:<br><br>... comment out this disclaimer (by putting '.. ' in front of it) if file is uptodate with release<br>|updatedisclaimer|<br><br>Please have a look at the pages in the preamble (you should see a big red sign in top)<br><br>The idea is that when a rst is up to date with 1.8 we can just comment out<br>|updatedisclaimer|<br>by doing<br>... |updatedisclaimer|<br>and the disclaimer will disappear from this section for this page.<br><br>When a new release is planned, and we want a new disclaimer in master, we only have to change the updatedisclaimer-replace in conf.py and remove comment from the |updatedisclaimer| parts in those sections that really need updates.<br><br>Ok for you? Or is there a more easy/clever way to do something like this?<br>If OK, I will put the disclaimer in all rst files.<br><br>R<br><br>_______________________________________________<br>Qgis-community-team mailing list<br>Qgis-community-team@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/qgis-community-team<br>