1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
# -*- coding: utf-8 -*-
needs_sphinx = '3.0'
import sys, os
sys.path.append(os.path.abspath('.'))
extensions = ["sphinx.ext.imgmath", "sphinx.ext.extlinks", "fityk_ext"]
exclude_patterns = ['html', 'latex']
if not os.getenv('BUILD_WEBSITE'):
exclude_patterns += ['index.rst', 'screens.rst']
if os.getenv('READTHEDOCS') and 'epub' not in sys.argv:
# RTD works better with index.html
html_additional_pages = { 'index': '_build/html/fityk-manual.html' }
html_theme_path = ['.']
source_suffix = '.rst'
source_encoding = 'utf-8'
master_doc = 'fityk-manual'
project = 'Fityk'
version = '1.3.2'
release = version
default_role = None
suppress_warnings = ["ref.option"]
#highlight_language = "none"
highlight_language = "fityk"
pygments_style = "trac"
#html_theme = "sphinxdoc"
html_theme = 'fitheme'
html_theme_options = {
'github_blob': 'wojdyr/fityk/blob/master/doc',
'logo': 'fityk-logo.png',
'logo_caption': 'curve fitting, data analysis',
'website': 'http://fityk.nieto.pl/',
'wiki': 'https://github.com/wojdyr/fityk/wiki',
}
html_sidebars = { 'index': [], 'screens': [], '**': ['side.html'] }
html_title = 'Fityk %s manual' % version
html_short_title = 'Manual'
html_favicon = 'fityk.ico'
html_static_path = ['fityk-logo.png', 'img/mouse16.png']
html_last_updated_fmt = '%Y-%m-%d'
html_use_modindex = False
html_use_index = False
#html_add_permalinks = False
#html_compact_lists = True
html_show_copyright = False
html_copy_source = False # we link directly to GitHub
latex_documents = [
('fityk-manual', 'fityk-manual.tex', 'Fityk manual', '', 'manual', True),
]
latex_logo = 'fityk-banner.pdf'
latex_elements = {
'papersize': 'a4paper', # 'letterpaper'
'pointsize': '10pt,oneside,openany',
#'classoptions': ',oneside,openany',
'inputenc': r"""
\usepackage{ucs}
\usepackage[utf8x]{inputenc}""",
'utf8extra': '',
# put notes into boxes
'preamble': r"""
\usepackage{fancybox}
\usepackage{ifthen}
\definecolor{gray03}{gray}{0.3}
\let\origbeginnotice\notice
\let\origendnotice\endnotice
\renewenvironment{notice}[2]{%
\def\noticetype{#1}
\def\inTheGui{\equal{#2}{In the GUI}}
\def\inCLI{\equal{#2}{CLI}}
\ifthenelse{\equal{#1}{note}}{%
\setlength{\fboxrule}{1pt}
\setlength{\fboxsep}{6pt}
\setlength{\mylen}{\linewidth}
\addtolength{\mylen}{-2\fboxsep}
\addtolength{\mylen}{-4\fboxrule}
%\setlength{\shadowsize}{3pt}
\Sbox
\minipage{\mylen}
\ifthenelse{\inTheGui}{\color{gray03}}{}
\ifthenelse{\inCLI}{}{\par\sphinxstylestrong{#2}}
}{%
\origbeginnotice{#1}{#2}%
}
}{%
\ifthenelse{\equal{\noticetype}{note}}{%
\endminipage
\endSbox
\ifthenelse{\inTheGui}{\ovalbox{\TheSbox}}{\fbox{\TheSbox}}
}{%
\origendnotice%
}
}
""",
'printindex' : ''
}
#latex_show_pagerefs = True
latex_show_urls = 'footnote'
latex_keep_old_macro_names = False
# determine vertical alignment of the math PNGs
imgmath_use_preview = True
dl_dir = 'https://github.com/wojdyr/fityk/releases/download/v%s/' % version
dl_prefix = 'fityk-%s' % version
extlinks = {
'wiki': ('https://github.com/wojdyr/fityk/wiki/%s', ''),
'github_download': (dl_dir + dl_prefix + '%s', dl_prefix),
}
|