reform

MNT Reform: Open Source Portable Computer
Log (Feed) | Files | Refs (Tags) | README

commit da2212949bc8ff1db258ddb79682167dc6bcbbda
parent a4ad6a39dfc3937aed350dedee9b4967976ecb12
Author: mntmn <lukas@mnt.mn>
Date:   Sat, 10 Nov 2018 16:56:24 +0100

handbook: latex builder, typo fix

Diffstat:
Mhandbook/source/conf.py | 28+++++++++++++++++++---------
Mhandbook/source/motherboard/attiny.rst | 4++--
Mhandbook/source/motherboard/index.rst | 14+++++++-------
3 files changed, 28 insertions(+), 18 deletions(-)

diff --git a/handbook/source/conf.py b/handbook/source/conf.py @@ -40,6 +40,7 @@ release = '' # ones. extensions = [ 'sphinx.ext.githubpages', + 'rinoh.frontend.sphinx' ] # Add any paths that contain templates here, relative to this directory. @@ -71,7 +72,6 @@ exclude_patterns = [] pygments_style = 'fruity' - # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for @@ -110,30 +110,40 @@ htmlhelp_basename = 'Reformdoc' # -- Options for LaTeX output ------------------------------------------------ +latex_engine = 'xelatex' latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # - # 'papersize': 'letterpaper', + 'papersize': 'a4paper', # The font size ('10pt', '11pt' or '12pt'). # - # 'pointsize': '10pt', + 'pointsize': '10pt', # Additional stuff for the LaTeX preamble. # - # 'preamble': '', + #'preamble': '', # Latex figure (float) alignment # - # 'figure_align': 'htbp', + 'figure_align': 'htbp', + + 'passoptionstopackages': r'\PassOptionsToPackage{svgnames}{xcolor}', + + 'sphinxsetup': r'TitleColor={named}{Black},InnerLinkColor={named}{Black},OuterLinkColor={named}{Black}', + + 'fontpkg': r'''\setmainfont{EB Garamond} +\setsansfont{Inter UI} +''' } + # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'Reform.tex', 'Reform Documentation', - 'Lukas F. Hartmann (mntmn)', 'manual'), + (master_doc, 'Reform.tex', 'MNT Reform Operator Handbook', + 'Lukas F. Hartmann', 'manual'), ] @@ -142,7 +152,7 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'reform', 'Reform Documentation', + (master_doc, 'reform', 'MNT Reform Operator Handbook', [author], 1) ] @@ -153,7 +163,7 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'Reform', 'Reform Documentation', + (master_doc, 'Reform', 'MNT Reform Operator Handbook', author, 'Reform', 'One line description of project.', 'Miscellaneous'), ] diff --git a/handbook/source/motherboard/attiny.rst b/handbook/source/motherboard/attiny.rst @@ -13,8 +13,8 @@ The ATTiny841 MCU works as: The Atmel ATTiny841 (U16) is a 8-bit microcontroller that uses very little power and is always on when there is battery power in the system. Its job is to keep track of how much current is going in and out of the battery and what voltage the battery has. It does this with the help of the voltage/current monitor chip INA260 that is connected to the ATTiny via I2C. -Communcation ------------- +Communication +------------- The ATTiny is permanently connected to the i.MX6 UART2 (/dev/ttymxc1 in Linux). If you want to interrupt this connection, you can desolder resistors R48 and R50. diff --git a/handbook/source/motherboard/index.rst b/handbook/source/motherboard/index.rst @@ -9,41 +9,41 @@ The Motherboard Schematics ---------- -.. image:: reform-motherboard.svg +.. image:: reform-motherboard2.pdf :target: ../_images/reform-motherboard.svg Power ----- -.. image:: reform-power-ReformPower.svg +.. image:: reform-power-ReformPower2.pdf :target: ../_images/reform-power-ReformPower.svg Storage ------- -.. image:: reform-sata-sd-ReformSATA_SD.svg +.. image:: reform-sata-sd-ReformSATA_SD2.pdf :target: ../_images/reform-sata-sd-ReformSATA_SD.svg Display ------- -.. image:: reform-display-ReformDisplay.svg +.. image:: reform-display-ReformDisplay2.pdf :target: ../_images/reform-display-ReformDisplay.svg PCIe ---- -.. image:: reform-pcie-ReformPCIe.svg +.. image:: reform-pcie-ReformPCIe2.pdf :target: ../_images/reform-pcie-ReformPCIe.svg Ethernet, USB ------------- -.. image:: reform-eth-usb-reform-eth-usb.svg +.. image:: reform-eth-usb-reform-eth-usb2.pdf :target: ../_images/reform-eth-usb-reform-eth-usb.svg Audio ----- -.. image:: reform-audio-ReformAudio.svg +.. image:: reform-audio-ReformAudio2.pdf :target: ../_images/reform-audio-ReformAudio.svg