@alauda/doom 1.10.11 → 1.11.0

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.
Files changed (79) hide show
  1. package/lib/cli/export.js +1 -1
  2. package/lib/cli/load-config.js +7 -6
  3. package/lib/global/SiteOverrides/index.js +0 -1
  4. package/lib/global/VersionsNav/index.js +3 -4
  5. package/lib/plugins/index.d.ts +0 -1
  6. package/lib/plugins/index.js +0 -1
  7. package/lib/runtime/components/ExternalSiteLink.js +2 -3
  8. package/lib/runtime/components/OpenAPIPath.js +2 -3
  9. package/lib/runtime/components/OpenAPIRef.js +2 -3
  10. package/lib/runtime/components/Overview.js +4 -9
  11. package/lib/runtime/components/_utils.d.ts +1 -1
  12. package/lib/runtime/components/_utils.js +2 -4
  13. package/lib/theme.js +3 -5
  14. package/package.json +27 -30
  15. package/LICENSE +0 -21
  16. package/README.md +0 -29
  17. package/lib/cli/export-pdf-core/generatePdf.d.ts +0 -25
  18. package/lib/cli/export-pdf-core/generatePdf.js +0 -91
  19. package/lib/cli/export-pdf-core/index.d.ts +0 -3
  20. package/lib/cli/export-pdf-core/index.js +0 -3
  21. package/lib/cli/export-pdf-core/types.d.ts +0 -15
  22. package/lib/cli/export-pdf-core/types.js +0 -1
  23. package/lib/cli/export-pdf-core/utils/convertPathToPosix.d.ts +0 -8
  24. package/lib/cli/export-pdf-core/utils/convertPathToPosix.js +0 -26
  25. package/lib/cli/export-pdf-core/utils/getUrlLink.d.ts +0 -4
  26. package/lib/cli/export-pdf-core/utils/getUrlLink.js +0 -7
  27. package/lib/cli/export-pdf-core/utils/index.d.ts +0 -3
  28. package/lib/cli/export-pdf-core/utils/index.js +0 -3
  29. package/lib/cli/export-pdf-core/utils/mergePDF.d.ts +0 -26
  30. package/lib/cli/export-pdf-core/utils/mergePDF.js +0 -137
  31. package/lib/cli/html-export-pdf/core/index.d.ts +0 -3
  32. package/lib/cli/html-export-pdf/core/index.js +0 -3
  33. package/lib/cli/html-export-pdf/core/outline.d.ts +0 -47
  34. package/lib/cli/html-export-pdf/core/outline.js +0 -217
  35. package/lib/cli/html-export-pdf/core/postprocesser.d.ts +0 -14
  36. package/lib/cli/html-export-pdf/core/postprocesser.js +0 -36
  37. package/lib/cli/html-export-pdf/core/printer.d.ts +0 -59
  38. package/lib/cli/html-export-pdf/core/printer.js +0 -235
  39. package/lib/cli/html-export-pdf/index.d.ts +0 -2
  40. package/lib/cli/html-export-pdf/index.js +0 -2
  41. package/lib/cli/html-export-pdf/utils/cliProgress.d.ts +0 -13
  42. package/lib/cli/html-export-pdf/utils/cliProgress.js +0 -80
  43. package/lib/cli/html-export-pdf/utils/fs.d.ts +0 -5
  44. package/lib/cli/html-export-pdf/utils/fs.js +0 -18
  45. package/lib/cli/html-export-pdf/utils/getAbsFileName.d.ts +0 -1
  46. package/lib/cli/html-export-pdf/utils/getAbsFileName.js +0 -4
  47. package/lib/cli/html-export-pdf/utils/getDirname.d.ts +0 -1
  48. package/lib/cli/html-export-pdf/utils/getDirname.js +0 -5
  49. package/lib/cli/html-export-pdf/utils/index.d.ts +0 -7
  50. package/lib/cli/html-export-pdf/utils/index.js +0 -7
  51. package/lib/cli/html-export-pdf/utils/isValidUrl.d.ts +0 -1
  52. package/lib/cli/html-export-pdf/utils/isValidUrl.js +0 -3
  53. package/lib/cli/html-export-pdf/utils/optionsCustomProcessing.d.ts +0 -2
  54. package/lib/cli/html-export-pdf/utils/optionsCustomProcessing.js +0 -6
  55. package/lib/cli/html-export-pdf/utils/replaceExt.d.ts +0 -1
  56. package/lib/cli/html-export-pdf/utils/replaceExt.js +0 -19
  57. package/lib/cli/merge-pdfs/formatDate.d.ts +0 -1
  58. package/lib/cli/merge-pdfs/formatDate.js +0 -23
  59. package/lib/cli/merge-pdfs/index.d.ts +0 -8
  60. package/lib/cli/merge-pdfs/index.js +0 -62
  61. package/lib/plugins/sitemap/index.d.ts +0 -16
  62. package/lib/plugins/sitemap/index.js +0 -51
  63. package/pyodide/README.md +0 -90
  64. package/pyodide/console.html +0 -259
  65. package/pyodide/ffi.d.ts +0 -1118
  66. package/pyodide/micropip-0.8.0-py3-none-any.whl +0 -0
  67. package/pyodide/package.json +0 -59
  68. package/pyodide/packaging-24.2-py3-none-any.whl +0 -0
  69. package/pyodide/pyodide-lock.json +0 -1
  70. package/pyodide/pyodide.asm.js +0 -17
  71. package/pyodide/pyodide.asm.wasm +0 -0
  72. package/pyodide/pyodide.d.ts +0 -1627
  73. package/pyodide/pyodide.js +0 -6
  74. package/pyodide/pyodide.js.map +0 -1
  75. package/pyodide/pyodide.mjs +0 -4
  76. package/pyodide/pyodide.mjs.map +0 -1
  77. package/pyodide/pypdf-3.8.1-py3-none-any.whl +0 -0
  78. package/pyodide/python_stdlib.zip +0 -0
  79. package/pyodide/repodata.json +0 -1
package/pyodide/README.md DELETED
@@ -1,90 +0,0 @@
1
- # Pyodide JavaScript package
2
-
3
- <a href="https://www.npmjs.com/package/pyodide"><img src="https://img.shields.io/npm/v/pyodide" alt="npm"></a>
4
-
5
- ## Usage
6
-
7
- Download and extract Pyodide packages from [Github
8
- releases](https://github.com/pyodide/pyodide/releases)
9
- (`pyodide-build-*.tar.bz2`). The version of the release needs to match exactly the version of this package.
10
-
11
- Then you can load Pyodide in Node.js as follows,
12
-
13
- ```js
14
- // hello_python.js
15
- const { loadPyodide } = require("pyodide");
16
-
17
- async function hello_python() {
18
- let pyodide = await loadPyodide({
19
- indexURL: "<pyodide artifacts folder>",
20
- });
21
- return pyodide.runPythonAsync("1+1");
22
- }
23
-
24
- hello_python().then((result) => {
25
- console.log("Python says that 1+1 =", result);
26
- });
27
- ```
28
-
29
- ```
30
- $ node hello_python.js
31
- Loading distutils
32
- Loaded distutils
33
- Python says that 1+1= 2
34
- ```
35
-
36
- Or you can use the REPL. To start the Node.js REPL with support for top level
37
- await, use `node --experimental-repl-await`:
38
-
39
- ```
40
- $ node --experimental-repl-await
41
- Welcome to Node.js v18.5.0.
42
- Type ".help" for more information.
43
- > const { loadPyodide } = require("pyodide");
44
- undefined
45
- > let pyodide = await loadPyodide();
46
- Loading distutils
47
- Loaded distutils
48
- undefined
49
- > await pyodide.runPythonAsync("1+1");
50
- 2
51
- ```
52
-
53
- ### Node.js versions <0.17
54
-
55
- - `Node.js` versions 14.x and 16.x: to use certain features of Pyodide you
56
- need to manually install `node-fetch`, e.g. by doing `npm install node-fetch`.
57
-
58
- - `Node.js v14.x`: you need to pass the option `--experimental-wasm-bigint`
59
- when starting Node. Note that this flag is not documented by `node --help`
60
- and moreover, if you pass `--experimental-wasm-bigint` to node >14 it is an
61
- error:
62
-
63
- ```
64
- $ node -v
65
- v14.20.0
66
-
67
- $ node --experimental-wasm-bigint hello_python.js
68
- warning: no blob constructor, cannot create blobs with mimetypes
69
- warning: no BlobBuilder
70
- Loading distutils
71
- Loaded distutils
72
- Python says that 1+1= 2
73
- ```
74
-
75
- See the [documentation](https://pyodide.org/en/stable/) fore more details.
76
-
77
- ## Details
78
-
79
- The JavaScript code in this package is responsible for the following tasks:
80
-
81
- 1. Defines the public [JavaScript API](https://pyodide.org/en/stable/usage/api/js-api.html)
82
- - Package loading code to allow loading of other Python packages.
83
- - Can load
84
- [micropip](https://pyodide.org/en/stable/usage/api/micropip-api.html) to
85
- bootstrap loading of pure Python wheels
86
- 2. Loads the CPython interpreter and the core/pyodide emscripten application
87
- which embeds the interpreter.
88
- 3. Injects the `js/pyodide` JavaScript API into `sys.modules`. This is the
89
- final runtime dependency for `core/pyodide` & `py/pyodide`, so after this step
90
- the interpreter is fully up and running.
@@ -1,259 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <script src="https://cdn.jsdelivr.net/npm/jquery"></script>
6
- <script src="https://cdn.jsdelivr.net/npm/jquery.terminal@2.35.2/js/jquery.terminal.min.js"></script>
7
- <script src="https://cdn.jsdelivr.net/npm/jquery.terminal@2.35.2/js/unix_formatting.min.js"></script>
8
- <link
9
- href="https://cdn.jsdelivr.net/npm/jquery.terminal@2.35.2/css/jquery.terminal.min.css"
10
- rel="stylesheet"
11
- />
12
- <style>
13
- .terminal {
14
- --size: 1.5;
15
- --color: rgba(255, 255, 255, 0.8);
16
- }
17
- .noblink {
18
- --animation: terminal-none;
19
- }
20
- body {
21
- background-color: black;
22
- }
23
- #jquery-terminal-logo {
24
- color: white;
25
- border-color: white;
26
- position: absolute;
27
- top: 7px;
28
- right: 18px;
29
- z-index: 2;
30
- }
31
- #jquery-terminal-logo a {
32
- color: gray;
33
- text-decoration: none;
34
- font-size: 0.7em;
35
- }
36
- #loading {
37
- display: inline-block;
38
- width: 50px;
39
- height: 50px;
40
- position: fixed;
41
- top: 50%;
42
- left: 50%;
43
- border: 3px solid rgba(172, 237, 255, 0.5);
44
- border-radius: 50%;
45
- border-top-color: #fff;
46
- animation: spin 1s ease-in-out infinite;
47
- -webkit-animation: spin 1s ease-in-out infinite;
48
- }
49
-
50
- @keyframes spin {
51
- to {
52
- -webkit-transform: rotate(360deg);
53
- }
54
- }
55
- @-webkit-keyframes spin {
56
- to {
57
- -webkit-transform: rotate(360deg);
58
- }
59
- }
60
- </style>
61
- </head>
62
- <body>
63
- <div id="jquery-terminal-logo">
64
- <a href="https://terminal.jcubic.pl/">jQuery Terminal</a>
65
- </div>
66
- <div id="loading"></div>
67
- <script>
68
- "use strict";
69
-
70
- function sleep(s) {
71
- return new Promise((resolve) => setTimeout(resolve, s));
72
- }
73
-
74
- async function main() {
75
- let indexURL = "./";
76
- const urlParams = new URLSearchParams(window.location.search);
77
- const buildParam = urlParams.get("build");
78
- if (buildParam) {
79
- if (["full", "debug", "pyc"].includes(buildParam)) {
80
- indexURL = indexURL.replace(
81
- "/full/",
82
- "/" + urlParams.get("build") + "/",
83
- );
84
- } else {
85
- console.warn(
86
- 'Invalid URL parameter: build="' +
87
- buildParam +
88
- '". Using default "full".',
89
- );
90
- }
91
- }
92
- const { loadPyodide } = await import(indexURL + "pyodide.mjs");
93
-
94
- let term;
95
- globalThis.pyodide = await loadPyodide({
96
- stdin: () => {
97
- let result = prompt();
98
- echo(result);
99
- return result;
100
- },
101
- });
102
- let namespace = pyodide.globals.get("dict")();
103
- pyodide.runPython(
104
- `
105
- import sys
106
- from pyodide.ffi import to_js
107
- from pyodide.console import PyodideConsole, repr_shorten, BANNER
108
- import __main__
109
- BANNER = "Welcome to the Pyodide terminal emulator 🐍\\n" + BANNER
110
- pyconsole = PyodideConsole(__main__.__dict__)
111
- import builtins
112
- async def await_fut(fut):
113
- res = await fut
114
- if res is not None:
115
- builtins._ = res
116
- return to_js([res], depth=1)
117
- def clear_console():
118
- pyconsole.buffer = []
119
- `,
120
- { globals: namespace },
121
- );
122
- let repr_shorten = namespace.get("repr_shorten");
123
- let banner = namespace.get("BANNER");
124
- let await_fut = namespace.get("await_fut");
125
- let pyconsole = namespace.get("pyconsole");
126
- let clear_console = namespace.get("clear_console");
127
- const echo = (msg, ...opts) =>
128
- term.echo(
129
- msg
130
- .replaceAll("]]", "&rsqb;&rsqb;")
131
- .replaceAll("[[", "&lsqb;&lsqb;"),
132
- ...opts,
133
- );
134
- namespace.destroy();
135
-
136
- let ps1 = ">>> ",
137
- ps2 = "... ";
138
-
139
- async function lock() {
140
- let resolve;
141
- let ready = term.ready;
142
- term.ready = new Promise((res) => (resolve = res));
143
- await ready;
144
- return resolve;
145
- }
146
-
147
- async function interpreter(command) {
148
- let unlock = await lock();
149
- term.pause();
150
- // multiline should be split (useful when pasting)
151
- for (const c of command.split("\n")) {
152
- const escaped = c.replaceAll(/\u00a0/g, " ");
153
- let fut = pyconsole.push(escaped);
154
- term.set_prompt(fut.syntax_check === "incomplete" ? ps2 : ps1);
155
- switch (fut.syntax_check) {
156
- case "syntax-error":
157
- term.error(fut.formatted_error.trimEnd());
158
- continue;
159
- case "incomplete":
160
- continue;
161
- case "complete":
162
- break;
163
- default:
164
- throw new Error(`Unexpected type ${ty}`);
165
- }
166
- // In JavaScript, await automatically also awaits any results of
167
- // awaits, so if an async function returns a future, it will await
168
- // the inner future too. This is not what we want so we
169
- // temporarily put it into a list to protect it.
170
- let wrapped = await_fut(fut);
171
- // complete case, get result / error and print it.
172
- try {
173
- let [value] = await wrapped;
174
- if (value !== undefined) {
175
- echo(
176
- repr_shorten.callKwargs(value, {
177
- separator: "\n<long output truncated>\n",
178
- }),
179
- );
180
- }
181
- if (value instanceof pyodide.ffi.PyProxy) {
182
- value.destroy();
183
- }
184
- } catch (e) {
185
- if (e.constructor.name === "PythonError") {
186
- const message = fut.formatted_error || e.message;
187
- term.error(message.trimEnd());
188
- } else {
189
- throw e;
190
- }
191
- } finally {
192
- fut.destroy();
193
- wrapped.destroy();
194
- }
195
- }
196
- term.resume();
197
- await sleep(10);
198
- unlock();
199
- }
200
-
201
- term = $("body").terminal(interpreter, {
202
- greetings: banner,
203
- prompt: ps1,
204
- completionEscape: false,
205
- completion: function (command, callback) {
206
- callback(pyconsole.complete(command).toJs()[0]);
207
- },
208
- keymap: {
209
- "CTRL+C": async function (event, original) {
210
- clear_console();
211
- term.enter();
212
- echo("KeyboardInterrupt");
213
- term.set_command("");
214
- term.set_prompt(ps1);
215
- },
216
- TAB: (event, original) => {
217
- const command = term.before_cursor();
218
- // Disable completion for whitespaces.
219
- if (command.trim() === "") {
220
- term.insert("\t");
221
- return false;
222
- }
223
- return original(event);
224
- },
225
- },
226
- });
227
- window.term = term;
228
- pyconsole.stdout_callback = (s) => echo(s, { newline: false });
229
- pyconsole.stderr_callback = (s) => {
230
- term.error(s.trimEnd());
231
- };
232
- term.ready = Promise.resolve();
233
- pyodide._api.on_fatal = async (e) => {
234
- if (e.name === "Exit") {
235
- term.error(e);
236
- term.error("Pyodide exited and can no longer be used.");
237
- } else {
238
- term.error(
239
- "Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.",
240
- );
241
- term.error("The cause of the fatal error was:");
242
- term.error(e);
243
- term.error("Look in the browser console for more details.");
244
- }
245
- await term.ready;
246
- term.pause();
247
- await sleep(15);
248
- term.pause();
249
- };
250
-
251
- const searchParams = new URLSearchParams(window.location.search);
252
- if (searchParams.has("noblink")) {
253
- $(".cmd-cursor").addClass("noblink");
254
- }
255
- }
256
- window.console_ready = main();
257
- </script>
258
- </body>
259
- </html>