-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolves #132 load a base theme with defaults for required keys
- load base theme before loading custom theme - read base theme from flat layout, do not postprocess - don't read base theme if using base theme - don't use base theme before loading default theme - remove unnecessary keys in default theme, reorg - update information about base theme in theming guide - fix image_align key in theming guide - remove most defensive fallbacks when using theme keys - minor code cleanups
- Loading branch information
1 parent
d344c71
commit 40c2f0e
Showing
5 changed files
with
224 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# NOTE file is read "as is"; variables are not parsed; key layout must be flat | ||
# FIXME internal use of vertical_rhythm & horizontal_rhythm needs to be deprecated | ||
vertical_rhythm: 12 | ||
horizontal_rhythm: 12 | ||
page_background_color: 'FFFFFF' | ||
page_layout: portrait | ||
# 36 is equivalent to 0.5in | ||
page_margin: 36 | ||
page_size: LETTER | ||
base_align: left | ||
#base_font_color: '333333' | ||
base_font_color: '000000' | ||
#base_font_family: Times-Roman | ||
base_font_family: Helvetica | ||
base_font_size: 12 | ||
# QUESTION should we rename to min_font_size? | ||
base_font_size_min: 9 | ||
base_font_style: normal | ||
base_line_height: 1.15 | ||
base_line_height_length: 13.8 | ||
base_border_color: 'EEEEEE' | ||
base_border_width: 0.5 | ||
link_font_color: '0000EE' | ||
literal_font_family: Courier | ||
heading_font_style: bold | ||
heading_h1_font_size: 24 | ||
heading_h2_font_size: 18 | ||
heading_h3_font_size: 16 | ||
heading_h4_font_size: 14 | ||
heading_h5_font_size: 12 | ||
heading_h6_font_size: 10 | ||
heading_line_height: 1.15 | ||
heading_margin_top: 4 | ||
heading_margin_bottom: 12 | ||
title_page_align: center | ||
title_page_line_height: 1.15 | ||
title_page_logo_top: 10% | ||
title_page_title_top: 40% | ||
title_page_title_font_size: 18 | ||
title_page_subtitle_font_size: 14 | ||
title_page_authors_margin_top: 12 | ||
outline_list_indent: 30 | ||
outline_list_item_spacing: 6 | ||
description_list_description_indent: 30 | ||
description_list_term_font_style: normal | ||
# NOTE currently block_padding _is_ the sidebar padding | ||
block_padding: 12 | ||
block_margin_top: 0 | ||
block_margin_bottom: 12 | ||
caption_align: left | ||
caption_font_style: italic | ||
caption_margin_inside: 4 | ||
caption_margin_outside: 0 | ||
abstract_font_size: 13.5 | ||
abstract_line_height: 1.4 | ||
abstract_padding: 0 | ||
admonition_border_color: 'EEEEEE' | ||
admonition_border_width: 0.5 | ||
blockquote_border_color: 'EEEEEE' | ||
blockquote_border_width: 4 | ||
code_font_family: Courier | ||
code_font_size: 10.5 | ||
code_line_height: 1.2 | ||
code_padding: 9 | ||
code_border_color: 'EEEEEE' | ||
code_border_width: 0.5 | ||
conum_line_height: 1.15 | ||
example_border_color: 'EEEEEE' | ||
example_border_width: 0.5 | ||
image_align: left | ||
lead_font_size: 13.5 | ||
lead_line_height: 1.4 | ||
prose_margin_top: 0 | ||
prose_margin_bottom: 12 | ||
sidebar_background_color: 'EEEEEE' | ||
sidebar_title: | ||
sidebar_title_align: center | ||
sidebar_title_font_style: bold | ||
table_border_color: '000000' | ||
table_border_width: 0.5 | ||
table_cell_padding: 2 | ||
table_head_font_style: bold | ||
thematic_break_border_color: 'EEEEEE' | ||
thematic_break_border_style: solid | ||
thematic_break_border_width: 0.5 | ||
toc_indent: 15 | ||
toc_line_height: 1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.