From 002c0c75d48654aeaeea864e9204de61e7894ebc Mon Sep 17 00:00:00 2001 From: Blaise Laflamme Date: Sat, 27 Nov 2010 23:31:08 -0500 Subject: Use guess as default for docs pygmentation --- docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 653f7ab15..3de2f7ac4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -110,6 +110,9 @@ add_module_names = False # The name of the Pygments (syntax highlighting) style to use. #pygments_style = book and 'bw' or 'tango' +# The default language to highlight source code in. +highlight_language = 'guess' + # Options for HTML output # ----------------------- -- cgit v1.2.3 From 099ac84208c019300174c0c8722cff7687bb43ca Mon Sep 17 00:00:00 2001 From: Blaise Laflamme Date: Sun, 28 Nov 2010 12:27:22 -0500 Subject: Added pyramid.ico as favico --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 3de2f7ac4..73de08d65 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -140,7 +140,7 @@ html_logo = '_static/pyramid.png' # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. -#html_favicon = '_static/favicon.ico' +html_favicon = '_static/pyramid.ico' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, -- cgit v1.2.3 From cc19a8528ce38b5947bd0cb41ffc39fda03938c4 Mon Sep 17 00:00:00 2001 From: Blaise Laflamme Date: Mon, 29 Nov 2010 16:41:33 -0500 Subject: Updated docs to use pyramid theme --- docs/conf.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 73de08d65..ab0234cb5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -111,7 +111,7 @@ add_module_names = False #pygments_style = book and 'bw' or 'tango' # The default language to highlight source code in. -highlight_language = 'guess' +#highlight_language = 'guess' # Options for HTML output # ----------------------- @@ -119,7 +119,7 @@ highlight_language = 'guess' # Add and use Pylons theme sys.path.append(os.path.abspath('_themes')) html_theme_path = ['_themes'] -html_theme = 'pylons' +html_theme = 'pyramid' # The style sheet to use for HTML and HTML Help pages. A file of that name # must exist either in Sphinx' static/ path, or in one of the custom paths @@ -131,21 +131,21 @@ html_theme = 'pylons' html_title = 'The Pyramid Web Application Development Framework v%s' % release # A shorter title for the navigation bar. Default is the same as html_title. -html_short_title = 'Home' +#html_short_title = 'Home' # The name of an image file (within the static path) to place at the top of # the sidebar. -html_logo = '_static/pyramid.png' +#html_logo = '_static/pyramid.png' # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. -html_favicon = '_static/pyramid.ico' +#html_favicon = '_static/pyramid.ico' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +#html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. @@ -204,7 +204,7 @@ latex_documents = [ # The name of an image file (relative to this directory) to place at the top of # the title page. -latex_logo = '_static/pylons_small.png' +#latex_logo = '_static/pylons_small.png' # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. -- cgit v1.2.3 From 5845bcc10565baaa8397243c48d771bc45a5ab91 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 29 Nov 2010 19:47:47 -0500 Subject: use bw pygments if book=1 --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index ab0234cb5..a4b1ffbba 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -109,6 +109,8 @@ add_module_names = False # The name of the Pygments (syntax highlighting) style to use. #pygments_style = book and 'bw' or 'tango' +if book: + pygments_style = 'bw' # The default language to highlight source code in. #highlight_language = 'guess' -- cgit v1.2.3 From de8c1bd028386653105d12300926af356612c97d Mon Sep 17 00:00:00 2001 From: Blaise Laflamme Date: Tue, 30 Nov 2010 00:31:03 -0500 Subject: Make new docs icons work with pdf book --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index a4b1ffbba..6ef9ff67b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -307,8 +307,8 @@ _PREAMBLE = r""" \renewenvironment{notice}[2]{% \origbeginnotice{#1}{}% equivalent to original \begin{notice}{#1}{#2} % load graphics - \ifthenelse{\equal{#1}{warning}}{\includegraphics{exclaim.png}}{} - \ifthenelse{\equal{#1}{note}}{\includegraphics{info.png}}{} + \ifthenelse{\equal{#1}{warning}}{\includegraphics{latex-warning.png}}{} + \ifthenelse{\equal{#1}{note}}{\includegraphics{latex-note.png}}{} % etc. }{% \origendnotice% equivalent to original \end{notice} -- cgit v1.2.3