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 11761 for NEMO/trunk/doc/rst/source/conf.py – NEMO

Ignore:
Timestamp:
2019-10-22T12:02:46+02:00 (5 years ago)
Author:
nicolasmartin
Message:

Create unpub folder for unpublished READMEs (displayed with make drafthtml)

File:
1 edited

Legend:

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

    r11759 r11761  
    6666# List of patterns, relative to source directory, that match files and 
    6767# directories to ignore when looking for source files. 
    68 exclude_patterns = ['global.rst', 'crs.rst'] 
     68exclude_patterns = ['global.rst', 'readme.rst'] 
    6969 
    7070# The reST default role (used for this markup: `text`) to use for all documents. 
     
    267267# SVN revision 
    268268import subprocess 
    269 revision = subprocess.check_output("svnversion").decode("utf-8") 
    270 rst_prolog = '.. |revision| replace:: %s' % revision 
     269rev = subprocess.check_output("svnversion").decode("utf-8") 
     270rst_prolog = '.. |revision| replace:: %s' % rev 
    271271 
    272272# 'draft' build tag: DRAFT watermark and TODO list 
    273273if tags.has('draft'): 
    274     todo_include_todos = True 
    275     todo_emit_warnings = True 
     274   todo_include_todos = True 
     275   todo_emit_warnings = True 
     276else: 
     277   exclude_patterns = ['global.rst', 'readme.rst', 'todos.rst', 'unpub*'] 
Note: See TracChangeset for help on using the changeset viewer.