Debian Codegraph @

docs/index.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html lang="en">
3
4 <head>
5 <meta charset="UTF-8">
6 <title>Node.js Undici</title>
7 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
8 <meta name="description" content="A HTTP/1.1 client, written from scratch for Node.js.">
9 <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
10 <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
11 <link
12 rel="stylesheet"
13 href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css"
14 title="docsify-darklight-theme"
15 type="text/css"
16 />
17 <link rel="icon" type="image/png" href="https://nodejs.org/static/images/favicons/favicon.png" />
18 </head>
19
20 <body>
21 <div id="app"></div>
22 <script>
23 window.$docsify = {
24 name: 'Node.js Undici',
25 repo: 'https://github.com/nodejs/undici',
26 loadSidebar: 'docsify/sidebar.md',
27 search: {
28 noData: {
29 '/': 'No results!'
30 },
31 paths: ['docs/'],
32 placeholder: {
33 '/': 'Search'
34 }
35 },
36 auto2top: true,
37 subMaxLevel: 3,
38 maxLevel: 3,
39 themeColor: '#2B91F0',
40 noCompileLinks: [
41 'benchmarks/.*'
42 ],
43 copyCode: {
44 buttonText: 'Copy Code',
45 errorText: 'Error',
46 successText: 'Copied',
47 },
48 relativePath: true,
49 markdown: {
50 renderer: {
51 // Mimic markedjs/marked behavior just modify href - https://github.com/markedjs/marked/blob/master/src/Renderer.ts#L178-L191
52 link(href, title, text) {
53 const originalHref = href;
54
55 if (href.startsWith('./')) {
56 // Use absolute path (e.g. ./docs/api.md => /docs/api.md) if href starts with ./ (e.g. ./api.md)
57 href = href.slice(1);
58 }
59
60 // Check for /docs/docs/ in the href and remove duplication it if present
61 href = href.startsWith('/docs/docs/') ? href.replace('/docs/', '/') : href;
62
63 // Check for /docs/ in the href and remove it if present
64 if (href.startsWith('/docs/')) {
65 // ignore paths /docs/api/ and /docs/best-practices/ in /docs/docs directory
66 if (!/^(\/docs\/(?:api|best-practices))(?:\/|$)/.test(href)) {
67 href = href.includes('/docs/') ? href.replace('/docs/', '/') : href;
68 }
69 }
70
71 let target = '';
72 if (originalHref.startsWith('http')) {
73 // External link - default behavior is to open in a new window
74 return `<a href="${originalHref}" ${title}" target="_blank" rel="noopener noreferrer">${text}</a>`;
75 }
76
77 title = title ? `title="${title}"` : '';
78 let out = `<a href="#${href}" ${title}">${text}</a>`;
79
80 return out;
81 },
82 },
83 },
84 }
85 </script>
86 <!-- Docsify v4 -->
87 <script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
88 <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
89 <script src="https://unpkg.com/docsify-copy-code@3"></script>
90 <script
91 src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js"
92 type="text/javascript"
93 ></script>
94 <script type="module">
95 import mermaid from "//cdn.jsdelivr.net/npm/[email protected]/+esm";
96 mermaid.initialize({ startOnLoad: true });
97 window.mermaid = mermaid;
98 </script>
99 <script>
100 const plugin = (config) => (hook) => {
101 hook.afterEach((html, next) => {
102 const container = document.createElement('div');
103 container.innerHTML = html;
104
105 const elements = container.querySelectorAll('pre[data-lang=mermaid]')
106 for (const element of elements) {
107 const replacement = document.createElement('div');
108 replacement.textContent = element.textContent;
109 replacement.classList.add('mermaid');
110 element.parentNode.replaceChild(replacement, element);
111 }
112
113 next(container.innerHTML);
114 });
115
116 hook.doneEach(() => mermaid.run(config));
117 }
118
119 window.$docsify = window.$docsify || {};
120
121 window.$docsify.plugins = window.$docsify.plugins || []
122 window.$docsify.plugins.push(plugin(window.$docsify.mermaidConfig || { querySelector: ".mermaid" }));
123 </script>
124 </body>
125
126 </html>