this repo has no description
1#!/usr/bin/env python3 2# -*- coding: utf-8 -*- 3# 4# MiniZinc documentation build configuration file, created by 5# sphinx-quickstart on Sat Nov 26 18:22:59 2016. 6# 7# This file is execfile()d with the current directory set to its 8# containing dir. 9# 10# Note that not all possible configuration values are present in this 11# autogenerated file. 12# 13# All configuration values have a default; values that are commented out 14# serve to show the default. 15 16# If extensions (or modules to document with autodoc) are in another directory, 17# add these directories to sys.path here. If the directory is relative to the 18# documentation root, use os.path.abspath to make it absolute, like shown here. 19# 20import os 21import sys 22sys.path.insert(0, os.path.abspath('../utils')) 23 24# -- General configuration ------------------------------------------------ 25 26# If your documentation needs a minimal Sphinx version, state it here. 27# 28# needs_sphinx = '1.0' 29 30import defblock 31import inlinesyntaxhighlight 32 33# Add any Sphinx extension module names here, as strings. They can be 34# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 35# ones. 36extensions = [ 37 'sphinx.ext.todo', 38 'sphinx.ext.mathjax', 39 'defblock', 40 'inlinesyntaxhighlight', 41 'sphinxtogithub' 42] 43 44inline_highlight_respect_highlight = False 45 46inline_highlight_literals = False 47 48# Add any paths that contain templates here, relative to this directory. 49templates_path = ['_templates'] 50 51# The suffix(es) of source filenames. 52# You can specify multiple suffix as a list of string: 53# 54# source_suffix = ['.rst', '.md'] 55source_suffix = '.rst' 56 57# The encoding of source files. 58# 59# source_encoding = 'utf-8-sig' 60 61# The master toctree document. 62master_doc = 'index' 63 64# General information about the project. 65project = u'Documentación de MiniZinc' 66copyright = '2016, 2017, 2018, Peter J. Stuckey, Kim Marriott, Guido Tack' 67author = 'Peter J. Stuckey, Kim Marriott, Guido Tack' 68 69# The version info for the project you're documenting, acts as replacement for 70# |version| and |release|, also used in various other places throughout the 71# built documents. 72# 73# The short X.Y version. 74version = '2.4' 75# The full version, including alpha/beta/rc tags. 76release = '2.4.0' 77 78# The language for content autogenerated by Sphinx. Refer to documentation 79# for a list of supported languages. 80# 81# This is also used if you do content translation via gettext catalogs. 82# Usually you set "language" from the command line for these cases. 83#language = None 84language = "es" 85 86# There are two options for replacing |today|: either, you set today to some 87# non-false value, then it is used: 88# 89# today = '' 90# 91# Else, today_fmt is used as the format for a strftime call. 92# 93# today_fmt = '%B %d, %Y' 94 95# List of patterns, relative to source directory, that match files and 96# directories to ignore when looking for source files. 97# This patterns also effect to html_static_path and html_extra_path 98exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '_others'] 99 100# The reST default role (used for this markup: `text`) to use for all 101# documents. 102# 103# default_role = None 104 105# If true, '()' will be appended to :func: etc. cross-reference text. 106# 107# add_function_parentheses = True 108 109# If true, the current module name will be prepended to all description 110# unit titles (such as .. function::). 111# 112# add_module_names = True 113 114# If true, sectionauthor and moduleauthor directives will be shown in the 115# output. They are ignored by default. 116# 117# show_authors = False 118 119# The name of the Pygments (syntax highlighting) style to use. 120pygments_style = 'manni' 121 122# A list of ignored prefixes for module index sorting. 123# modindex_common_prefix = [] 124 125# If true, keep warnings as "system message" paragraphs in the built documents. 126# keep_warnings = False 127 128# If true, `todo` and `todoList` produce output, else they produce nothing. 129todo_include_todos = True 130 131 132# -- Options for HTML output ---------------------------------------------- 133 134#from https://github.com/ryan-roemer/sphinx-bootstrap-theme 135import sphinx_bootstrap_theme 136 137# The theme to use for HTML and HTML Help pages. See the documentation for 138# a list of builtin themes. 139# 140# html_theme = 'alabaster' 141 142html_theme = 'sphinx_rtd_theme' 143html_theme_path = ["_themes", ] 144# html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() 145 146# Theme options are theme-specific and customize the look and feel of a theme 147# further. For a list of options available for each theme, see the 148# documentation. 149# 150html_theme_options = { 151 'logo_only' : False, 152 'canonical_url' : 'http://www.minizinc.org/doc-latest/es/' 153} 154 155# Add any paths that contain custom themes here, relative to this directory. 156# html_theme_path = [] 157 158# The name for this set of Sphinx documents. 159# "<project> v<release> documentation" by default. 160# 161html_title = project+" "+release 162 163# A shorter title for the navigation bar. Default is the same as html_title. 164# 165# html_short_title = None 166 167# The name of an image file (relative to this directory) to place at the top 168# of the sidebar. 169# 170html_logo = 'figures/MiniZn_logo_2.svg' 171 172# The name of an image file (relative to this directory) to use as a favicon of 173# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 174# pixels large. 175# 176# html_favicon = None 177 178# Add any paths that contain custom static files (such as style sheets) here, 179# relative to this directory. They are copied after the builtin static files, 180# so a file named "default.css" will overwrite the builtin "default.css". 181html_static_path = ['_static'] 182 183# Add any extra paths that contain custom files (such as robots.txt or 184# .htaccess) here, relative to this directory. These files are copied 185# directly to the root of the documentation. 186# 187# html_extra_path = [] 188 189# If not None, a 'Last updated on:' timestamp is inserted at every page 190# bottom, using the given strftime format. 191# The empty string is equivalent to '%b %d, %Y'. 192# 193# html_last_updated_fmt = None 194 195# If true, SmartyPants will be used to convert quotes and dashes to 196# typographically correct entities. 197# 198# html_use_smartypants = True 199 200# Custom sidebar templates, maps document names to template names. 201# 202# html_sidebars = {} 203 204# Additional templates that should be rendered to pages, maps page names to 205# template names. 206# 207# html_additional_pages = {} 208 209# If false, no module index is generated. 210# 211# html_domain_indices = True 212 213# If false, no index is generated. 214# 215# html_use_index = True 216 217# If true, the index is split into individual pages for each letter. 218# 219html_split_index = True 220 221# If true, links to the reST sources are added to the pages. 222# 223html_show_sourcelink = False 224html_copy_source = False 225 226# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. 227# 228html_show_sphinx = False 229 230# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. 231# 232# html_show_copyright = True 233 234# If true, an OpenSearch description file will be output, and all pages will 235# contain a <link> tag referring to it. The value of this option must be the 236# base URL from which the finished HTML is served. 237# 238# html_use_opensearch = '' 239 240# This is the file name suffix for HTML files (e.g. ".xhtml"). 241# html_file_suffix = None 242 243# Language to be used for generating the HTML full-text search index. 244# Sphinx supports the following languages: 245# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja' 246# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh' 247# 248html_search_language = 'es' 249 250# A dictionary with options for the search language support, empty by default. 251# 'ja' uses this config value. 252# 'zh' user can custom change `jieba` dictionary path. 253# 254# html_search_options = {'type': 'default'} 255 256# The name of a javascript file (relative to the configuration directory) that 257# implements a search results scorer. If empty, the default will be used. 258# 259# html_search_scorer = 'scorer.js' 260 261# Output file base name for HTML help builder. 262htmlhelp_basename = 'MiniZincdoc' 263 264# -- Options for LaTeX output --------------------------------------------- 265 266latex_elements = { 267 # The paper size ('letterpaper' or 'a4paper'). 268 # 269 # 'papersize': 'letterpaper', 270 271 # The font size ('10pt', '11pt' or '12pt'). 272 # 273 # 'pointsize': '10pt', 274 275 # Additional stuff for the LaTeX preamble. 276 # 277 # 'preamble': '', 278 'preamble': r'\usepackage{../../../utils/mznstyle}', 279 # Latex figure (float) alignment 280 # 281 # 'figure_align': 'htbp', 282 'fncychap': r'\usepackage[Sonny]{fncychap}', 283} 284 285# Grouping the document tree into LaTeX files. List of tuples 286# (source start file, target name, title, 287# author, documentclass [howto, manual, or own class]). 288latex_documents = [ 289 (master_doc, 'MiniZinc.tex', u'Documentación de MiniZinc', 290 'Peter J. Stuckey, Kim Marriott, Guido Tack', 'manual'), 291] 292 293# The name of an image file (relative to this directory) to place at the top of 294# the title page. 295# 296latex_logo = 'figures/MiniZn_logo_2_small.pdf' 297 298# For "manual" documents, if this is true, then toplevel headings are parts, 299# not chapters. 300# 301latex_toplevel_sectioning = "part" 302 303# If true, show page references after internal links. 304# 305latex_show_pagerefs = True 306 307# If true, show URL addresses after external links. 308# 309latex_show_urls = "footnote" 310 311# Documents to append as an appendix to all manuals. 312# 313# latex_appendices = [] 314 315# It false, will not define \strong, \code, itleref, \crossref ... but only 316# \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added 317# packages. 318# 319# latex_keep_old_macro_names = True 320 321# If false, no module index is generated. 322# 323# latex_domain_indices = True 324 325 326# -- Options for manual page output --------------------------------------- 327 328# One entry per manual page. List of tuples 329# (source start file, name, description, authors, manual section). 330man_pages = [ 331 (master_doc, 'minizinc', u'Documentación de MiniZinc', 332 [author], 1) 333] 334 335# If true, show URL addresses after external links. 336# 337# man_show_urls = False 338 339 340# -- Options for Texinfo output ------------------------------------------- 341 342# Grouping the document tree into Texinfo files. List of tuples 343# (source start file, target name, title, author, 344# dir menu entry, description, category) 345texinfo_documents = [ 346 (master_doc, 'MiniZinc', 'MiniZinc Documentation', 347 author, 'MiniZinc', 'One line description of project.', 348 'Miscellaneous'), 349] 350 351# Documents to append as an appendix to all manuals. 352# 353# texinfo_appendices = [] 354 355# If false, no module index is generated. 356# 357# texinfo_domain_indices = True 358 359# How to display URL addresses: 'footnote', 'no', or 'inline'. 360# 361# texinfo_show_urls = 'footnote' 362 363# If true, do not generate a @detailmenu in the "Top" node's menu. 364# 365# texinfo_no_detailmenu = False 366 367 368# -- Options for Epub output ---------------------------------------------- 369 370# Bibliographic Dublin Core info. 371epub_title = project 372epub_author = author 373epub_publisher = author 374epub_copyright = copyright 375 376# The basename for the epub file. It defaults to the project name. 377# epub_basename = project 378 379# The HTML theme for the epub output. Since the default themes are not 380# optimized for small screen space, using the same theme for HTML and epub 381# output is usually not wise. This defaults to 'epub', a theme designed to save 382# visual space. 383# 384# epub_theme = 'epub' 385 386# The language of the text. It defaults to the language option 387# or 'en' if the language is not set. 388# 389#epub_language = 'es' 390 391# The scheme of the identifier. Typical schemes are ISBN or URL. 392# epub_scheme = '' 393 394# The unique identifier of the text. This can be a ISBN number 395# or the project homepage. 396# 397# epub_identifier = '' 398 399# A unique identification for the text. 400# 401# epub_uid = '' 402 403# A tuple containing the cover image and cover page html template filenames. 404# 405# epub_cover = () 406 407# A sequence of (type, uri, title) tuples for the guide element of content.opf. 408# 409# epub_guide = () 410 411# HTML files that should be inserted before the pages created by sphinx. 412# The format is a list of tuples containing the path and title. 413# 414# epub_pre_files = [] 415 416# HTML files that should be inserted after the pages created by sphinx. 417# The format is a list of tuples containing the path and title. 418# 419# epub_post_files = [] 420 421# A list of files that should not be packed into the epub file. 422epub_exclude_files = ['search.html'] 423 424# The depth of the table of contents in toc.ncx. 425# 426# epub_tocdepth = 3 427 428# Allow duplicate toc entries. 429# 430# epub_tocdup = True 431 432# Choose between 'default' and 'includehidden'. 433# 434# epub_tocscope = 'default' 435 436# Fix unsupported image types using the Pillow. 437# 438# epub_fix_images = False 439 440# Scale large images. 441# 442# epub_max_image_width = 0 443 444# How to display URL addresses: 'footnote', 'no', or 'inline'. 445# 446# epub_show_urls = 'inline' 447 448# If false, no index is generated. 449# 450# epub_use_index = True 451 452numfig = True 453numfig_secnum_depth = 2 454 455rst_prolog = """ 456.. role:: mzn(code) 457 :language: minizinc 458 459.. role:: mzndef(code) 460 :language: minizincdef 461""" 462 463sphinx_to_github = True 464sphinx_to_github_verbose = True 465sphinx_to_github_encoding = "utf-8" 466 467def setup(sphinx): 468 from minizinc_lexer import MznLexer, MznDefLexer 469 sphinx.add_lexer("minizinc", MznLexer()) 470 sphinx.add_lexer("minizincdef", MznDefLexer()) 471 sphinx.add_stylesheet("style.css")