From b320e74ad5cd9add0e49830c943d9d15ab8c8629 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 17 Jun 2020 16:02:57 -0700 Subject: [PATCH] Update documentation code fragments theme to better match the rest of the page. --- NEWS | 3 +++ docs/_includes/index.css | 4 ++-- docs/_includes/prism-theme.css | 31 ++++++++++++++++++------------- setup.py | 2 +- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/NEWS b/NEWS index 53533ae..ceabeed 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 a40dc90..7393f7e 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 4aed4d4..0a32124 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 de15344..d6a35cc 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(