From fcf28732116e87689b0072160e4dc43390750fa9 Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Tue, 12 Sep 2017 17:07:06 -0700 Subject: [PATCH] Updated style for option list and field list This makes them looking better. Change-Id: Icf3827a779bda470ed6a6ac8e56d2daa19e773a5 --- docs/source/_static/sphinxdoc_new.css | 17 +++++++++++++++++ docs/source/conf.py | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 docs/source/_static/sphinxdoc_new.css diff --git a/docs/source/_static/sphinxdoc_new.css b/docs/source/_static/sphinxdoc_new.css new file mode 100644 index 0000000000..69667e8b42 --- /dev/null +++ b/docs/source/_static/sphinxdoc_new.css @@ -0,0 +1,17 @@ +@import url("sphinxdoc.css"); + +h3 { + margin-bottom: 0; +} + +table.option-list td, table.option-list th { + border: 0 !important; +} + +th.field-name, th.field-name ~ td, td.option-group, td.option-group ~ td { + padding-top: 10px !important; +} + +span.option { + font-weight: bold; +} diff --git a/docs/source/conf.py b/docs/source/conf.py index 4abdfada9b..fffeb7f82a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -39,7 +39,7 @@ extensions = ['sphinx.ext.autodoc', 'breathe'] # Breathe configurations. -breathe_projects = {'shaka': '../out/doxygen/xml'} +breathe_projects = {'shaka': '../../out/doxygen/xml'} breathe_default_project = 'shaka' breathe_default_members = ('members',) @@ -95,6 +95,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 = 'sphinxdoc' +html_style = 'sphinxdoc_new.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