From 6e012652b84a8d584f9ddcfeb7aa9053a1b1dce4 Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Thu, 28 Jan 2016 20:41:41 -0500 Subject: [PATCH] docs: add ability to do custom css styling --- docs/_static/css/squibdocs.css | 3 +++ docs/arrays.rst | 4 ++-- docs/conf.py | 1 + docs/dsl/background.rst | 7 ++++--- 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 docs/_static/css/squibdocs.css diff --git a/docs/_static/css/squibdocs.css b/docs/_static/css/squibdocs.css new file mode 100644 index 0000000..4a42147 --- /dev/null +++ b/docs/_static/css/squibdocs.css @@ -0,0 +1,3 @@ +@import url("theme.css"); + +/* Can add custom styling here */ diff --git a/docs/arrays.rst b/docs/arrays.rst index 6c33fe1..b5055d7 100644 --- a/docs/arrays.rst +++ b/docs/arrays.rst @@ -4,8 +4,8 @@ Squib Thinks in Arrays .. _using_ranges: -Using ``range`` ---------------- +Using ``range`` to specify cards +-------------------------------- There's another way to limit a method to certain cards: the ``range`` parameter. diff --git a/docs/conf.py b/docs/conf.py index ba3c1a1..4bdfdda 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -110,6 +110,7 @@ todo_include_todos = False # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'sphinx_rtd_theme' # https://github.com/snide/sphinx_rtd_theme +html_style = 'css/squibdocs.css' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the diff --git a/docs/dsl/background.rst b/docs/dsl/background.rst index aa58897..f475e8d 100644 --- a/docs/dsl/background.rst +++ b/docs/dsl/background.rst @@ -3,19 +3,20 @@ background Fills the background with the given color -Support Arrays, see {file:README.md#Arrays_and_Singleton_Expansion Arrays and Singleon Expansion} Options ^^^^^^^ +All options support arrays and singleton expansion. See :doc:`/arrays` + range default: ``:all`` the range of cards over which this will be rendered. See :ref:`using_ranges` color - default: ``:black`` . See :doc:`/colors` + default: ``:black`` - the color to fill the background with. + the color to fill the background with. See :doc:`/colors`. Examples