Changeset f4771596 in sasview for docs/sphinx-docs/source


Ignore:
Timestamp:
Jun 19, 2017 12:34:42 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
35ddae5
Parents:
8f1bb6f
Message:

prerender mathjax for comparison

Location:
docs/sphinx-docs/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/source/_extensions/mathjax.py

    rafca488 rf4771596  
    105105    # http://docs.mathjax.org/en/latest/start.html#secure-access-to-the-cdn 
    106106    app.add_config_value('mathjax_path', 
    107                          'https://cdn.mathjax.org/mathjax/latest/MathJax.js?' 
    108                          'config=TeX-AMS-MML_HTMLorMML', False) 
     107                         'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?' 
     108                         'config=TeX-MML-AM_CHTML', 
     109                         #'config=TeX-AMS-MML_HTMLorMML', 
     110                         False) 
    109111    app.add_config_value('mathjax_css', None, 'html') 
    110112    app.add_config_value('mathjax_use_katex', False, 'html') 
  • docs/sphinx-docs/source/conf.py

    rdce368f rf4771596  
    3535              'sphinx.ext.todo', 
    3636              'sphinx.ext.coverage', 
    37               'mathjax', 
     37              'sphinx.ext.mathjax', 
     38              #'mathjax',  # replacement mathjax that allows a list of paths 
    3839              'dollarmath', 
    3940              'sphinx.ext.viewcode'] 
    4041 
     42mathjax_path = ( 
     43    'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?' 
     44    'config=TeX-MML-AM_CHTML') 
     45 
     46# For katex uncomment the following 
     47""" 
    4148#STATIC_PATH = '../../_static/' 
    4249STATIC_PATH = '' 
     
    4754] 
    4855mathjax_css = STATIC_PATH + 'katex/katex.min.css' 
     56""" 
    4957 
    5058 
     
    211219# -- Options for LaTeX output -------------------------------------------------- 
    212220 
     221# TODO: seems like angstroms is defined twice. 
    213222LATEX_PREAMBLE=r""" 
     223\usepackage[utf8]{inputenc}      % Allow unicode symbols in text 
     224\usepackage{underscore}          % Allow underscore outside math mode 
     225\usepackage[T1]{fontenc}         % Use underscore character from font 
     226\newcommand{\lt}{<}              % HTML needs \lt rather than < 
     227\newcommand{\gt}{>}              % HTML needs \gt rather than > 
    214228\renewcommand{\AA}{\text{\r{A}}} % Allow \AA in math mode 
    215 \usepackage[utf8]{inputenc}      % Allow unicode symbols in text 
    216 \usepackage[T1]{fontenc}      % Taking care of underscores 
    217 \catcode`\_=12                % Moving underscore to category 12 
    218 \newcommand{\lt}{<}           %lower than symbol handling 
    219 \newcommand{\gt}{>}           %greater than symbol handling 
     229\DeclareUnicodeCharacter {212B} {\AA}                  % Angstrom 
    220230\DeclareUnicodeCharacter {00B7} {\ensuremath{\cdot}}   % cdot 
    221231\DeclareUnicodeCharacter {00B0} {\ensuremath{^\circ}}  % degrees 
    222 \DeclareUnicodeCharacter {212B} {\AA}                  % Angstrom 
    223232""" 
    224233latex_elements = { 
Note: See TracChangeset for help on using the changeset viewer.