From ab84d3ff6ae1c866919e53c5fe410c1b06b4ef36 Mon Sep 17 00:00:00 2001 From: Julie Schramm Date: Wed, 12 May 2021 13:50:04 -0600 Subject: [PATCH 1/3] Replace deprecated add_stylesheet with add_css_file Fix URL to v5.0.0 PDF file --- CCPPtechnical/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CCPPtechnical/source/conf.py b/CCPPtechnical/source/conf.py index 065ed19..bd0ded9 100644 --- a/CCPPtechnical/source/conf.py +++ b/CCPPtechnical/source/conf.py @@ -104,7 +104,7 @@ html_static_path = ['_static'] def setup(app): - app.add_stylesheet('custom.css') # may also be an URL + app.add_css_file('custom.css') # may also be an URL # Custom sidebar templates, must be a dictionary that maps document names # to template names. @@ -142,7 +142,7 @@ def setup(app): # Latex figure (float) alignment # # 'figure_align': 'htbp', - 'maketitle': r'\newcommand\sphinxbackoftitlepage{For referencing this document please use: \newline \break Schramm, J., L. Bernardet, L. Carson, G. Firl, D. Heinzeller, L. Pan, and M. Zhang, 2021. CCPP Technical Documentation Release v5.0.0. Available at https://ccpp-techdoc.readthedocs.io/en/v5.0.0/pdf.}\sphinxmaketitle' + 'maketitle': r'\newcommand\sphinxbackoftitlepage{For referencing this document please use: \newline \break Schramm, J., L. Bernardet, L. Carson, G. Firl, D. Heinzeller, L. Pan, and M. Zhang, 2021. CCPP Technical Documentation Release v5.0.0. Available at https://ccpp-techdoc.readthedocs.io/_/downloads/en/v5.0.0/pdf/.}\sphinxmaketitle' } # Grouping the document tree into LaTeX files. List of tuples From 910fc3f14bf9567c1e7fc0c99562dcd687ca52c2 Mon Sep 17 00:00:00 2001 From: Julie Schramm Date: Wed, 12 May 2021 14:03:39 -0600 Subject: [PATCH 2/3] Hopefully fix the underscore in the URL link --- CCPPtechnical/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CCPPtechnical/source/conf.py b/CCPPtechnical/source/conf.py index bd0ded9..21abf21 100644 --- a/CCPPtechnical/source/conf.py +++ b/CCPPtechnical/source/conf.py @@ -142,7 +142,7 @@ def setup(app): # Latex figure (float) alignment # # 'figure_align': 'htbp', - 'maketitle': r'\newcommand\sphinxbackoftitlepage{For referencing this document please use: \newline \break Schramm, J., L. Bernardet, L. Carson, G. Firl, D. Heinzeller, L. Pan, and M. Zhang, 2021. CCPP Technical Documentation Release v5.0.0. Available at https://ccpp-techdoc.readthedocs.io/_/downloads/en/v5.0.0/pdf/.}\sphinxmaketitle' + 'maketitle': r'\newcommand\sphinxbackoftitlepage{For referencing this document please use: \newline \break Schramm, J., L. Bernardet, L. Carson, G. Firl, D. Heinzeller, L. Pan, and M. Zhang, 2021. CCPP Technical Documentation Release v5.0.0. Available at https://ccpp-techdoc.readthedocs.io/\_/downloads/en/v5.0.0/pdf/.}\sphinxmaketitle' } # Grouping the document tree into LaTeX files. List of tuples From c703ba0fa2bec5fab0fdaf77f432ea4709e64113 Mon Sep 17 00:00:00 2001 From: Julie Schramm Date: Wed, 12 May 2021 14:11:42 -0600 Subject: [PATCH 3/3] One last try on the underscore --- CCPPtechnical/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CCPPtechnical/source/conf.py b/CCPPtechnical/source/conf.py index 21abf21..1636df4 100644 --- a/CCPPtechnical/source/conf.py +++ b/CCPPtechnical/source/conf.py @@ -142,7 +142,7 @@ def setup(app): # Latex figure (float) alignment # # 'figure_align': 'htbp', - 'maketitle': r'\newcommand\sphinxbackoftitlepage{For referencing this document please use: \newline \break Schramm, J., L. Bernardet, L. Carson, G. Firl, D. Heinzeller, L. Pan, and M. Zhang, 2021. CCPP Technical Documentation Release v5.0.0. Available at https://ccpp-techdoc.readthedocs.io/\_/downloads/en/v5.0.0/pdf/.}\sphinxmaketitle' + 'maketitle': r'\newcommand\sphinxbackoftitlepage{For referencing this document please use: \newline \break Schramm, J., L. Bernardet, L. Carson, G. Firl, D. Heinzeller, L. Pan, and M. Zhang, 2021. CCPP Technical Documentation Release v5.0.0. Available at https://ccpp-techdoc.readthedocs.io/\textunderscore/downloads/en/v5.0.0/pdf/.}\sphinxmaketitle' } # Grouping the document tree into LaTeX files. List of tuples