Merge pull request #398 from cbalint13/main

Enable additional PDF output for readthedocs.io
This commit is contained in:
Tim 'mithro' Ansell 2022-10-06 15:45:24 +00:00 committed by GitHub
commit 468dccdf59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -32,3 +32,6 @@ submodules:
include: include:
- libraries/sky130_fd_io/latest - libraries/sky130_fd_io/latest
recursive: false recursive: false
formats:
- pdf

View File

@ -61,6 +61,7 @@ extensions = [
'sphinx.ext.autosectionlabel', 'sphinx.ext.autosectionlabel',
'sphinx.ext.githubpages', 'sphinx.ext.githubpages',
'sphinx.ext.ifconfig', 'sphinx.ext.ifconfig',
'sphinx.ext.imgconverter',
'sphinx.ext.mathjax', 'sphinx.ext.mathjax',
'sphinx.ext.napoleon', 'sphinx.ext.napoleon',
'sphinx.ext.todo', 'sphinx.ext.todo',
@ -295,6 +296,23 @@ numfig = True
# If true, `todo` and `todoList` produce output, else they produce nothing. # If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True todo_include_todos = True
latex_elements = {
'preamble': r'\DeclareUnicodeCharacter{03A9}{\ensuremath{\Omega}}' +
r'\DeclareUnicodeCharacter{03BC}{\ensuremath{\mu}}' +
r'\DeclareUnicodeCharacter{2184}{\ensuremath{\supset}}' +
r'\DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}}' +
r'\DeclareUnicodeCharacter{2228}{\ensuremath{\vee}}' +
r'\DeclareUnicodeCharacter{22BB}{\ensuremath{\veebar}}' +
r'\DeclareUnicodeCharacter{01C1}{\ensuremath{\parallel}}' +
r'\DeclareUnicodeCharacter{2220}{\ensuremath{\angle}}' +
r'\DeclareUnicodeCharacter{2227}{\ensuremath{\wedge}}' +
r'\DeclareUnicodeCharacter{25A1}{\ensuremath{\Box}}' +
r'\DeclareUnicodeCharacter{F06D}{\ensuremath{\mu}}' +
r'\DeclareUnicodeCharacter{03B2}{\ensuremath{\beta}}' +
r'\DeclareUnicodeCharacter{2264}{\ensuremath{\leq}}' +
r'\usepackage{pmboxdraw}' +
r'\DeclareUnicodeCharacter{2534}{\textSFvii}'
}
import re import re
from docutils.parsers.rst import directives, roles, nodes from docutils.parsers.rst import directives, roles, nodes