forked from simwrapper/simwrapper
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Site headers, footers, and standalone dashboards (simwrapper#116)
The new `simwrapper-config.yml` file in a folder or a `simwrapper/` subfolder now controls some site-wide configuration: - header, header_en, header_de; and footer, footer_en, footer_de: Dashboard header and footer content. - These can be either the filename of markdown file (*.md), or a multiline string containing the markdown itself - hideLeftBar: true/false, true hides the "QuickView" left nav bar. SHIFT-CTRL-Q toggles this panel - fullWidth: true/false, true expands the main panel to use the full browser width with no margins. SHIFT-CTRL-W toggles wide mode - css: filename of custom.css file for styling the header and footer. Note that this css is global in effect, so you should use `.project-header {}` and `.project-footer {}` divs to identify the page sections you are styling. --- MERGE COMMIT: * remove GlobalState interface * ctrl-b toggles left nav Bar * feat: Project-level headers/footers, specified in simwrapper-config.yml Any folder can now have a simwrapper-config.yml which can specify: hideLeftBar: true/false header: /path/to/header/md -OR- raw markdown text footer: /path/to/header/md -OR- raw markdown text * use SHIFT-CTRL-Q for toggling Quicklook (left) panel * allow css styling of header/footer using a custom CSS file add `css: my-custom-css.css` to `simwrapper-config.yaml` These CSS elements are GLOBAL in scope, so you must add a div with a name such as "my-header" etc to limit scope. * don't flash quicklook panel if URL is a project page * feat: Toggles: SHIFT-CTRL-W for full-width; SHIFT-CTRL-Q for quickview panel Some users want to max available window space! These are for you. * Always show left panel unless explicitly asked to hide it. * Use relative paths for CSS and header/footer * resize charts after show/hide quicklook panel or wide-screen view
- Loading branch information
Showing
13 changed files
with
375 additions
and
98 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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.