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

Ignore:
Timestamp:
2019-10-17T17:49:19+02:00 (5 years ago)
Author:
nicolasmartin
Message:

Revamp TOP README and implement a TODO list
Review tracers.rst by adding snippets of source files
Add drafthtml target for Makefile related to draft building tag for sphinx-build to
display todo items at the top of the guide homepage

Misc:

  • Use dedicated :file: role instead of ... for file or directory
  • Update BibTeX entries of NEMO reference publications by using :title: role
  • Dump of RELEASE_NOTES.rst
  • New file todos.rst to list all items declared with todo directive
  • Modify conf.py to add a conditional test for draft tag
File:
1 edited

Legend:

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

    r11706 r11713  
    2626# Add any Sphinx extension module names here, as strings. They can be extensions 
    2727# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 
    28 extensions = ['sphinx.ext.extlinks', 'sphinxcontrib.bibtex', 'sphinx.ext.todo'] 
     28extensions = ['sphinx.ext.extlinks', 'sphinxcontrib.bibtex', 'sphinx.ext.todo', 'sphinxmark'] 
    2929 
    3030# Add any paths that contain templates here, relative to this directory. 
     
    251251# Link aliases 
    252252extlinks = { 
    253    'doi'    : ('https://doi.org/%s'                       , None), 
    254    'forge'  : ('https://forge.ipsl.jussieu.fr/nemo/%s'    , None), 
    255    'github' : ('https://github.com/%s'                    , None), 
    256    'xios'   : ('https://forge.ipsl.jussieu.fr/ioserver/%s', None), 
    257    'website': ('https://www.nemo-ocean.eu/%s'             , None), 
    258    'zenodo' : ('https://zenodo.org/publication/%s'        , None) 
     253   'doi'    : ('https://doi.org/%s'                       , 'doi:'), 
     254   'forge'  : ('https://forge.ipsl.jussieu.fr/nemo/%s'    ,   None), 
     255   'github' : ('https://github.com/%s'                    ,   None), 
     256   'xios'   : ('https://forge.ipsl.jussieu.fr/ioserver/%s',   None), 
     257   'website': ('https://www.nemo-ocean.eu/%s'             ,   None), 
     258   'zenodo' : ('https://zenodo.org/publication/%s'        ,   None) 
    259259} 
    260260 
     
    266266revision = subprocess.check_output("svnversion").decode("utf-8") 
    267267rst_prolog = '.. |revision| replace:: %s' % revision 
     268 
     269# Todo 
     270if tags.has('draft'): 
     271    sphinxmark_enable = True 
     272    todo_include_todos = True 
     273    todo_emit_warnings = True 
Note: See TracChangeset for help on using the changeset viewer.