Changeset a316b1f in rtems-docs
- Timestamp:
- 01/20/16 01:37:04 (7 years ago)
- Branches:
- 4.11, 5, am, master
- Children:
- 7c1f215
- Parents:
- 89f2347
- git-author:
- Amar Takhar <amar@…> (01/20/16 01:37:04)
- git-committer:
- Amar Takhar <verm@…> (05/03/16 00:51:25)
- Files:
-
- 1 added
- 1 deleted
- 4 edited
- 25 moved
Legend:
- Unmodified
- Added
- Removed
-
common/conf.py
r89f2347 ra316b1f 81 81 # a list of builtin themes. 82 82 83 import sphinx_rtd_theme 84 html_theme = "sphinx_rtd_theme "85 html_theme_path = [sphinx_rtd_theme .get_html_theme_path()]83 import sphinx_rtd_theme_rtems 84 html_theme = "sphinx_rtd_theme_rtems" 85 html_theme_path = [sphinx_rtd_theme_rtems.get_html_theme_path()] 86 86 87 87 # Theme options are theme-specific and customize the look and feel of a theme … … 170 170 # Grouping the document tree into LaTeX files. List of tuples 171 171 # (source start file, target name, title, author, documentclass [howto/manual]). 172 latex_documents = [ 173 ('index', '@FILE_DOC@.tex', u'RTEMS @DOC@ Documentation', u'RTEMS Documentation Project', 'manual'), 174 ] 172 latex_documents = [] # must be overridden in local conf.py 175 173 176 174 # Additional stuff for LaTeX 175 # 'fontpkg': r'\usepackage{mathpazo}', 177 176 latex_elements = { 178 'fontpkg': r'\usepackage{mathpazo}',179 177 'papersize': 'a4paper', 180 178 'pointsize': '12pt', 181 179 'preamble': r''' 182 180 \usepackage{rtemsstyle} 183 184 % i hate you latex, here too185 \DeclareUnicodeCharacter{2603}{\\N\{SNOWMAN\}}186 181 ''' 187 182 } 188 183 189 latex_use_parts = True190 184 191 185 latex_additional_files = ['../common/rtemsstyle.sty', '../common/logo.pdf'] 192 193 186 latex_use_modindex = False 194 195 196 187 197 188 … … 202 193 # For "manual" documents, if this is true, then toplevel headings are parts, 203 194 # not chapters. 204 #latex_use_parts = False195 latex_use_parts = True 205 196 206 197 # If true, show page references after internal links. 207 #latex_show_pagerefs = False198 latex_show_pagerefs = True 208 199 209 200 # If true, show URL addresses after external links. 210 #latex_show_urls = False201 latex_show_urls=True 211 202 212 203 # Documents to append as an appendix to all manuals. … … 217 208 218 209 219 # -- Options for manual page output --------------------------------------------220 221 # One entry per manual page. List of tuples222 # (source start file, name, description, authors, manual section).223 man_pages = [224 ('index', '@FILE_DOC@', u'RTEMS @DOC@ Documentation', [u'RTEMS Documentation Project'], 1)225 ]226 227 # If true, show URL addresses after external links.228 #man_show_urls = False229 230 231 # -- Options for Texinfo output ------------------------------------------------232 233 # Grouping the document tree into Texinfo files. List of tuples234 # (source start file, target name, title, author,235 # dir menu entry, description, category)236 texinfo_documents = [237 ('index', '@FILE_DOC@', u'RTEMS @DOC@ Documentation', u'RTEMS Documentation Project', 'RTEMSwafBuild', 'RTEMS', 'Miscellaneous'),238 ]239 240 # Documents to append as an appendix to all manuals.241 #texinfo_appendices = []242 243 # If false, no module index is generated.244 #texinfo_domain_indices = True245 246 # How to display URL addresses: 'footnote', 'no', or 'inline'.247 #texinfo_show_urls = 'footnote'248 249 250 210 # Example configuration for intersphinx: refer to the Python standard library. 251 intersphinx_mapping = {'http://docs.python.org/': None}211 #intersphinx_mapping = {'http://docs.python.org/': None} 252 212 253 213 highlight_language = "c" -
common/rtemsstyle.sty
r89f2347 ra316b1f 46 46 \fancyfoot[LO]{{\nouppercase{\rightmark}}} 47 47 \fancyfoot[RE]{{\nouppercase{\leftmark}}} 48 \fancyhead[LE,RO]{{ \@title, \py@release}} 48 \fancyhead[LE,RO]{{\@title, \py@release}} 49 \fancyhead[RE,LO]{{\chaptername\:\thechapter\:Section\:\thesection}} 49 50 \renewcommand{\headrulewidth}{0.4pt} 50 51 \renewcommand{\footrulewidth}{0.4pt} … … 73 74 \renewcommand\thepart{\@Roman\c@part} 74 75 \renewcommand\part{% 75 \pagestyle{ plain}76 \pagestyle{normal} 76 77 \if@noskipsec \leavevmode \fi 77 78 \cleardoublepage -
common/waf.py
r89f2347 ra316b1f 2 2 from waflib.Build import BuildContext 3 3 4 sphinx_min_version = (1,3) 4 5 5 sphinx_min_version = (1,3)6 6 7 7 def cmd_spell(ctx): … … 36 36 37 37 38 39 38 def check_sphinx_version(ctx, minver): 40 # try:41 39 version = ctx.cmd_and_log(ctx.env.BIN_SPHINX_BUILD + ['--version']).split(" ")[-1:][0] 42 40 ver = tuple(map(int, version.split("."))) 43 # except Exception:44 # ctx.fatal("Version check failed please report")45 41 46 42 if ver < minver: … … 49 45 return ver 50 46 47 51 48 def cmd_configure(ctx): 52 49 ctx.load('tex') 53 54 50 55 51 if not ctx.env.PDFLATEX or not ctx.env.MAKEINDEX: … … 58 54 ctx.find_program("sphinx-build", var="BIN_SPHINX_BUILD", mandatory=True) 59 55 ctx.find_program("aspell", var="BIN_ASPELL", mandatory=False) 60 56 ctx.find_program("inliner", var="BIN_INLINER", mandatory=False) 61 57 62 58 ctx.start_msg("Checking if Sphinx is at least %s.%s" % sphinx_min_version) … … 66 62 67 63 64 def doc_pdf(ctx, source_dir, conf_dir): 65 ctx( 66 rule = "${BIN_SPHINX_BUILD} -b latex -c %s -j %d -d build/doctrees %s build/latex" % (conf_dir, ctx.options.jobs, source_dir), 67 cwd = ctx.path.abspath(), 68 source = ctx.path.ant_glob('**/*.rst'), 69 target = "latex/%s.tex" % ctx.path.name 70 ) 71 72 ctx.add_group() 73 74 ctx( 75 features = 'tex', 76 cwd = "%s/latex/" % ctx.path.get_bld().abspath(), 77 type = 'pdflatex', 78 source = ctx.bldnode.find_or_declare("latex/%s.tex" % ctx.path.name), 79 prompt = 0 80 ) 81 82 83 def doc_singlehtml(ctx, source_dir, conf_dir): 84 if not ctx.env.BIN_INLINER: 85 ctx.fatal("Node inliner is required install with 'npm install -g inliner' (https://github.com/remy/inliner)") 86 87 ctx( 88 rule = "${BIN_SPHINX_BUILD} -b singlehtml -c %s -j %d -d build/doctrees %s build/singlehtml" % (conf_dir, ctx.options.jobs, source_dir), 89 cwd = ctx.path.abspath(), 90 source = ctx.path.ant_glob('**/*.rst'), 91 target = "singlehtml/index.html" 92 ) 93 94 ctx.add_group() 95 96 ctx( 97 rule = "${BIN_INLINER} ${SRC} > ${TGT}", 98 source = "singlehtml/index.html", 99 target = "singlehtml/%s.html" % ctx.path.name 100 ) 101 102 103 def html_resources(ctx): 104 for dir in ["_static", "_templates"]: 105 files = ctx.path.parent.find_node("common").ant_glob("%s/*" % dir) 106 ctx.path.get_bld().make_node(dir).mkdir() # dirs 107 108 ctx( 109 features = "subst", 110 is_copy = True, 111 source = files, 112 target = [ctx.bldnode.find_node(dir).get_bld().make_node(x.name) for x in files] 113 ) 114 68 115 69 116 def cmd_build(ctx, conf_dir=".", source_dir="."): 70 117 srcnode = ctx.srcnode.abspath() 71 118 119 if not ctx.env.PDFLATEX or not ctx.env.MAKEINDEX: 120 ctx.fatal('The programs pdflatex and makeindex are required') 121 122 72 123 if ctx.options.pdf: 73 74 ctx( 75 rule = "${BIN_SPHINX_BUILD} -b latex -c %s -j %d -d build/doctrees %s build/latex" % (conf_dir, ctx.options.jobs, source_dir), 76 cwd = ctx.path.abspath(), 77 source = ctx.path.ant_glob('**/*.rst'), 78 target = "latex/%s.tex" % ctx.path.name 79 ) 80 81 ctx.add_group() 82 83 ctx( 84 features = 'tex', 85 cwd = "%s/latex/" % ctx.path.get_bld().abspath(), 86 type = 'pdflatex', 87 source = ctx.bldnode.find_or_declare("latex/%s.tex" % ctx.path.name), 88 prompt = 0 89 ) 90 124 doc_pdf(ctx, source_dir, conf_dir) 125 elif ctx.options.singlehtml: 126 html_resources(ctx) 127 doc_singlehtml(ctx, source_dir, conf_dir) 91 128 else: 92 # Copy HTML resources. 93 for dir in ["_static", "_templates"]: 94 files = ctx.path.parent.find_node("common").ant_glob("%s/*" % dir) 95 ctx.path.get_bld().make_node(dir).mkdir() # dirs 96 97 ctx( 98 features = "subst", 99 is_copy = True, 100 source = files, 101 target = [ctx.bldnode.find_node(dir).get_bld().make_node(x.name) for x in files] 102 ) 103 129 html_resources(ctx) 104 130 ctx( 105 131 rule = "${BIN_SPHINX_BUILD} -b html -c %s -j %d -d build/doctrees %s build/html" % (conf_dir, ctx.options.jobs, source_dir), … … 111 137 def cmd_options(ctx): 112 138 ctx.add_option('--pdf', action='store_true', default=False, help="Build PDF.") 139 ctx.add_option('--singlehtml', action='store_true', default=False, help="Build Single HTML file, requires Node Inliner") 140 113 141 114 142 def cmd_options_path(ctx): … … 152 180 153 181 cmd_build(ctx, conf_dir="build", source_dir="build") 154 155 -
filesystem/conf.py
r89f2347 ra316b1f 8 8 9 9 latex_documents = [ 10 ('index', 'filesystem.tex', u'RTEMS Filesystem Documentation', u'RTEMS Documentation Project', 'manual'),10 ('index', 'filesystem.tex', u'RTEMS Filesystem', u'RTEMS Documentation Project', 'manual'), 11 11 ] 12
Note: See TracChangeset
for help on using the changeset viewer.