Implemented source file linkage through metadata

This commit is contained in:
squidfunk
2017-03-11 14:07:07 +01:00
committed by Martin Donath
parent d12f17e520
commit 19fb287cef
24 changed files with 283 additions and 127 deletions

View File

@@ -107,13 +107,7 @@ function initialize(config) { // eslint-disable-line func-style
/* Component: sidebar with table of contents - register two separate
listeners, as the offset at the top might change */
new Material.Event.MatchMedia("(min-width: 960px) and (max-width: 1219px)",
new Material.Event.Listener(window, [
"scroll", "resize", "orientationchange"
], new Material.Sidebar.Position(
"[data-md-component=toc]",
"[data-md-component=header]")))
new Material.Event.MatchMedia("(min-width: 1220px)",
new Material.Event.MatchMedia("(min-width: 960px)",
new Material.Event.Listener(window, [
"scroll", "resize", "orientationchange"
], new Material.Sidebar.Position(