@redocly/reference-docs 3.0.0-alpha.7 → 3.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ (function() {
2
+ try {
3
+ var menu = document.querySelector('[role=menuitem].active:not([type="group"])');
4
+ if (menu) {
5
+ if (menu.scrollIntoViewIfNeeded) {
6
+ menu.scrollIntoViewIfNeeded();
7
+ } else {
8
+ menu.parentElement.scrollIntoView();
9
+ }
10
+ }
11
+
12
+ var hash = (window.location.hash || '').substring(1);
13
+ var path = window.location.pathname.substring(1);
14
+ if (path[path.length - 1] === '/')
15
+ path = path.substring(0, path.length - 1);
16
+
17
+ var el =
18
+ document.querySelector('[data-section-id="' + hash + '"]') ||
19
+ document.querySelector('[data-section-id="' + path + '/' + hash + '"]');
20
+
21
+ if (el) el.scrollIntoView();
22
+ } catch (e) {}
23
+ })();
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html lang='en'>
3
+ <head>
4
+ <meta charset='utf8' />
5
+ <title>{{title}}</title>
6
+ {{#if favicon}}
7
+ <link rel='icon' type='image/png' href='{{favicon}}' />
8
+ {{/if}}
9
+ <!-- needed for adaptive design -->
10
+ <meta name='viewport' content='width=device-width, initial-scale=1' />
11
+ <style>
12
+ body { padding: 0; margin: 0; }
13
+ </style>
14
+ {{{redocHead}}}
15
+ <link
16
+ href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Source+Code+Pro:400:700'
17
+ rel='stylesheet'
18
+ />
19
+ </head>
20
+
21
+ <body>
22
+ {{{redocHTML}}}
23
+ </body>
24
+
25
+ </html>