1818
1919# -- Project information -----------------------------------------------------
2020
21- project = 'Robotics Toolbox Python'
21+ project = 'Robotics Toolbox for Python'
2222copyright = '2020, Jesse Haviland and Peter Corke'
2323author = 'Jesse Haviland and Peter Corke'
2424
4242 'sphinx.ext.inheritance_diagram' ,
4343 'sphinx_autorun' ,
4444 ]
45- #'recommonmark',
46- #'sphinx.ext.autosummary',
47- # 'sphinx_markdown_tables',
48-
4945
5046autosummary_generate = True
5147autodoc_member_order = 'bysource'
5248
5349# Add any paths that contain templates here, relative to this directory.
5450templates_path = ['_templates' ]
5551
56- # List of patterns, relative to source directory, that match files and
57- # directories to ignore when looking for source files.
58- # This pattern also affects html_static_path and html_extra_path.
5952exclude_patterns = ['test_*' ]
6053
54+ # options for spinx_autorun, used for inline examples
55+ # choose UTF-8 encoding to allow for Unicode characters, eg. ansitable
56+ # Python session setup, turn off color printing for SE3, set NumPy precision
57+ autorun_languages = {}
58+ autorun_languages ['pycon_output_encoding' ] = 'UTF-8'
59+ autorun_languages ['pycon_input_encoding' ] = 'UTF-8'
60+ autorun_languages ['pycon_runfirst' ] = """
61+ from spatialmath import SE3
62+ SE3._color = False
63+ import numpy as np
64+ np.set_printoptions(precision=4, suppress=True)
65+ from ansitable import ANSITable
66+ ANSITable._color = False
67+ """
6168
6269# -- Options for HTML output -------------------------------------------------
6370
64- # The theme to use for HTML and HTML Help pages. See the documentation for
65- # a list of builtin themes.
66- #
6771html_theme = 'sphinx_rtd_theme'
6872
6973html_theme_options = {
70- 'github_user' : 'petercorke' ,
74+ 'github_user' : 'petercorke' ,
7175 #'github_repo': 'spatialmath-python',
7276 #'logo_name': False,
7377 'logo_only' : False ,
7478 #'description': 'Spatial maths and geometry for Python',
7579 'display_version' : True ,
7680 'prev_next_buttons_location' : 'both' ,
7781 'analytics_id' : 'G-11Q6WJM565' ,
82+ 'style_external_links' : True ,
7883 }
7984html_logo = '../figs/RobToolBox_RoundLogoB.png'
8085html_last_updated_fmt = '%d-%b-%Y'
8186show_authors = True
8287
88+ # mathjax_config = {
89+ # "jax": ["input/TeX","output/HTML-CSS"],
90+ # "displayAlign": "left"
91+ # }
92+
8393# Add any paths that contain custom static files (such as style sheets) here,
8494# relative to this directory. They are copied after the builtin static files,
8595# so a file named "default.css" will overwrite the builtin "default.css".
8696# html_static_path = ['_static']
8797
8898# autodoc_mock_imports = ["numpy", "scipy"]
8999
90- # extensions = ['rst2pdf.pdfbuilder']
91- # pdf_documents = [('index', u'rst2pdf', u'Sample rst2pdf doc', u'Your Name'),]
92- autorun_languages = {}
93- autorun_languages ['pycon_output_encoding' ] = 'UTF-8'
94- autorun_languages ['pycon_initial_code' ] = [
95- "from spatialmath import SE3" ,
96- "SE3._color = False" ,
97- "import numpy as np" ,
98- "np.set_printoptions(precision=4, suppress=True)" ,
99- ]
100+
101+ # -- Options for LaTeX/PDF output --------------------------------------------
102+ latex_engine = 'xelatex'
103+ # maybe need to set graphics path in here somewhere
104+ # \graphicspath{{figures/}{../figures/}{C:/Users/me/Documents/project/figures/}}
105+ # https://stackoverflow.com/questions/63452024/how-to-include-image-files-in-sphinx-latex-pdf-files
106+ latex_elements = {
107+ # The paper size ('letterpaper' or 'a4paper').
108+ 'papersize' : 'a4paper' ,
109+ #'releasename':" ",
110+ # Sonny, Lenny, Glenn, Conny, Rejne, Bjarne and Bjornstrup
111+ # 'fncychap': '\\usepackage[Lenny]{fncychap}',
112+ 'fncychap' : '\\ usepackage{fncychap}' ,
113+ 'maketitle' : "blah blah blah"
114+ }
0 commit comments