diff --git a/NEWS b/NEWS index 53533aeeb..ceabeed95 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +1.5.7.dev0 + * Update documentation code fragments theme to better match the rest of the page. + 1.5.6 * #292: Allow before_backup and similiar hooks to exit with a soft failure without altering the monitoring status on Healthchecks or other providers. Support this by waiting to ping monitoring diff --git a/docs/_includes/index.css b/docs/_includes/index.css index a40dc90b0..7393f7e20 100644 --- a/docs/_includes/index.css +++ b/docs/_includes/index.css @@ -181,7 +181,7 @@ pre { padding: .5em; margin: 1em -.5em 2em -.5em; overflow-x: auto; - background-color: #eee; + background-color: #fafafa; font-size: 0.75em; /* 12px /16 */ } pre, @@ -194,7 +194,7 @@ code { -webkit-hyphens: manual; -moz-hyphens: manual; hyphens: manual; - background-color: #efefef; + background-color: #fafafa; } pre + pre[class*="language-"] { margin-top: 1em; diff --git a/docs/_includes/prism-theme.css b/docs/_includes/prism-theme.css index 4aed4d42f..0a3212415 100644 --- a/docs/_includes/prism-theme.css +++ b/docs/_includes/prism-theme.css @@ -3,9 +3,12 @@ * Based on dabblet (http://dabblet.com) * @author Lea Verou */ +/* + * Modified with an approximation of the One Light syntax highlighting theme. + */ code[class*="language-"], pre[class*="language-"] { - color: #ABB2BF; + color: #494b53; background: none; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; text-align: left; @@ -26,13 +29,15 @@ pre[class*="language-"] { pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { text-shadow: none; - background: #383e49; + color: #232324; + background: #dbdbdc; } pre[class*="language-"]::selection, pre[class*="language-"] ::selection, code[class*="language-"]::selection, code[class*="language-"] ::selection { text-shadow: none; - background: #9aa2b1; + color: #232324; + background: #dbdbdc; } @media print { @@ -50,7 +55,7 @@ pre[class*="language-"] { :not(pre) > code[class*="language-"], pre[class*="language-"] { - background: #282c34; + background: #fafafa; } /* Inline code */ @@ -64,16 +69,16 @@ pre[class*="language-"] { .token.prolog, .token.doctype, .token.cdata { - color: #5C6370; + color: #505157; } .token.punctuation { - color: #abb2bf; + color: #526fff; } .token.selector, .token.tag { - color: #e06c75; + color: none; } .token.property, @@ -83,7 +88,7 @@ pre[class*="language-"] { .token.symbol, .token.attr-name, .token.deleted { - color: #d19a66; + color: #986801; } .token.string, @@ -91,7 +96,7 @@ pre[class*="language-"] { .token.attr-value, .token.builtin, .token.inserted { - color: #98c379; + color: #50a14f; } .token.operator, @@ -99,22 +104,22 @@ pre[class*="language-"] { .token.url, .language-css .token.string, .style .token.string { - color: #56b6c2; + color: #526fff; } .token.atrule, .token.keyword { - color: #e06c75; + color: #e45649; } .token.function { - color: #61afef; + color: #4078f2; } .token.regex, .token.important, .token.variable { - color: #c678dd; + color: #e45649; } .token.important, diff --git a/setup.py b/setup.py index de1534449..d6a35cc5c 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import find_packages, setup -VERSION = '1.5.6' +VERSION = '1.5.7.dev0' setup(