Ticket #6495: trac-6495_silence_warning-fh.patch

File trac-6495_silence_warning-fh.patch, 1.7 KB (added by hivert, 7 years ago)
  • doc/common/conf.py

    # HG changeset patch
    # User Florent Hivert <Florent.Hivert@univ-rouen.fr>
    # Date 1359115728 -3600
    # Node ID 8bececb7898445d5cb6fe97ee58930a0e9d34835
    # Parent  43f14746117b5d05f54d33cdf050dbf38389b002
    [mq]: trac-6495_silence_warning-fh.patch
    
    diff --git a/doc/common/conf.py b/doc/common/conf.py
    a b extlinks = { 
    125125    'trac': ('http://trac.sagemath.org/%s', 'trac ticket #'),
    126126    'wikipedia': ('http://en.wikipedia.org/wiki/%s', 'Wikipedia article ')}
    127127
     128# By default document are not master.
     129multidocs_is_master = True
     130
    128131# Options for HTML output
    129132# -----------------------
    130133
  • doc/common/multidocs.py

    diff --git a/doc/common/multidocs.py b/doc/common/multidocs.py
    a b def init_subdoc(app): 
    229229        app.info(bold("Compiling the master document"))
    230230        app.connect('env-updated', merge_environment)
    231231        app.connect('html-collect-pages', merge_js_index)
     232        if app.config.multidocs_subdoc_list:
     233            # Master file with indexes computed by merging indexes:
     234            # Monkey patch index fetching to silence warning about broken index
     235            def load_indexer(docnames):
     236                app.builder.info(bold('Skipping loading of indexes'), nonl=1)
     237            app.builder.load_indexer = load_indexer
     238
    232239    else:
    233240        app.info(bold("Compiling a sub-document"))
    234241        app.connect('env-updated', fetch_citation)
  • doc/en/website/conf.py

    diff --git a/doc/en/website/conf.py b/doc/en/website/conf.py
    a b latex_documents = [ 
    3333   u'The Sage Development Team', 'manual'),
    3434]
    3535
    36 
    37 
    3836html_additional_pages = {
    3937    'index': 'index.html',
    4038}