Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix debugging/dump mixins #354

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

🐛 fix debugging/dump mixins #354

wants to merge 1 commit into from

Conversation

philschatz
Copy link
Member

@philschatz philschatz commented Nov 3, 2023

This gets the debugging mixins to work again. Just add one ore more of these to the end of a book to dump out all the shapes/settings data:

@include debug_settings();   // Probably the most important
@include debug_settings_manifest();
@include debug_shapes();
@include debug_enums();

... and it'll print out something like this:

DEBUG: All available settings (last-added is on top) =>
DEBUG: === Clump Start ===
DEBUG: MeetTheAuthorNote:::_selectors : ".meet-author"
DEBUG: MeetTheAuthorNote:::group-border-color : (_ref: "colorMap:::meetTheAuthorColor")
DEBUG: MeetTheAuthorNote:::Title:::font-family : (_ref: "typography:::titleOption1Font")
DEBUG: MeetTheAuthorNote:::Title:::color : (_ref: "colorMap:::meetTheAuthorColor")
DEBUG: === Clump Start ===
DEBUG: TOC:::_selectors : "nav#toc"
DEBUG: TOC:::TocTitleWord:::color : (_ref: "colorMap:::neuroscienceHeaderColor")
DEBUG: TOC:::TocTitleWord:::border-bottom-color : (_ref: "colorMap:::neuroscienceHeaderColor")
DEBUG: TOC:::TocChapterNumber:::color : (_ref: "colorMap:::neuroscienceHeaderColor")
DEBUG: === Clump Start ===
DEBUG: BookRoot:::_selectors : ":root"
DEBUG: BookRoot:::BookRoot:::font-family : (_ref: "typography:::baseFont")
DEBUG: BookRoot:::BookRoot:::font-size : (_ref: "typography:::baseFontSize")
DEBUG: BookRoot:::BookRoot:::line-height : (_ref: "typography:::baseLineHeight")
DEBUG: BookRoot:::BookRoot:::color : (_ref: "colorMap:::fontBodyColor")
DEBUG: BookRoot:::BookRoot:::prince-image-resolution : "auto, 200dpi"
DEBUG: BookRoot:::BookRoot:::prince-background-image-resolution : 200dpi
DEBUG: === Clump Start ===
DEBUG: ColumnsFromTable:::_selectors : ".os-table"
DEBUG: === Clump Start ===
DEBUG: ParaIndented:::_selectors : "p.indented-text"
DEBUG: ParaCentered:::_selectors : "p.centered-text"
DEBUG: === Clump Start ===
DEBUG: ScreenreaderSpan:::_selectors : 'span[data-media~="screenreader"]'

they errored when folks ran them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant