Debian Codegraph @

crates/mdbook-html/front-end/templates/toc.html.hbs

raw
1 <!DOCTYPE HTML>
2 <html lang="{{ language }}" class="{{ default_theme }}" dir="{{ text_direction }}">
3 <head>
4 <!-- sidebar iframe generated using mdBook
5
6 This is a frame, and not included directly in the page, to control the total size of the
7 book. The TOC contains an entry for each page, so if each page includes a copy of the TOC,
8 the total size of the page becomes O(n**2).
9
10 The frame is only used as a fallback when JS is turned off. When it's on, the sidebar is
11 instead added to the main page by `toc.js` instead. The JavaScript mode is better
12 because, when running in a `file:///` URL, the iframed page would not be Same-Origin as
13 the rest of the page, so the sidebar and the main page theme would fall out of sync.
14 -->
15 <meta charset="UTF-8">
16 <meta name="robots" content="noindex">
17 {{#if base_url}}
18 <base href="{{ base_url }}">
19 {{/if}}
20 <!-- Custom HTML head -->
21 {{> head}}
22 <meta name="viewport" content="width=device-width, initial-scale=1">
23 <meta name="theme-color" content="#ffffff">
24 <link rel="stylesheet" href="{{ resource "css/variables.css" }}">
25 <link rel="stylesheet" href="{{ resource "css/general.css" }}">
26 <link rel="stylesheet" href="{{ resource "css/chrome.css" }}">
27 {{#if print_enable}}
28 <link rel="stylesheet" href="{{ resource "css/print.css" }}" media="print">
29 {{/if}}
30 <!-- Fonts -->
31 <link rel="stylesheet" href="{{ resource "fonts/fonts.css" }}">
32 <!-- Custom theme stylesheets -->
33 {{#each additional_css}}
34 <link rel="stylesheet" href="{{ resource this }}">
35 {{/each}}
36 </head>
37 <body class="sidebar-iframe-inner">
38 {{#toc}}{{/toc}}
39 </body>
40 </html>