@rspress/core 2.0.0-beta.3 → 2.0.0-beta.30
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.
- package/README.md +17 -1
- package/bin/rspress.js +15 -0
- package/dist/101.js +1786 -0
- package/dist/335.js +26 -0
- package/dist/395.js +74 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +142 -0
- package/dist/index.d.ts +118 -26
- package/dist/index.js +1808 -1088
- package/dist/index.js.LICENSE.txt +10 -0
- package/dist/loader.d.ts +43 -42
- package/dist/loader.js +29 -444
- package/dist/processor.d.ts +93 -0
- package/dist/processor.js +777 -0
- package/dist/renderPageWorker.js +193 -0
- package/dist/runtime/App.d.ts +1 -4
- package/dist/runtime/App.js +18 -21
- package/dist/runtime/ClientApp.d.ts +2 -2
- package/dist/runtime/ClientApp.js +23 -13
- package/dist/runtime/csrClientEntry.js +5 -13
- package/dist/runtime/initPageData.d.ts +3 -3
- package/dist/runtime/initPageData.js +33 -39
- package/dist/runtime/ssrClientEntry.js +15 -14
- package/dist/runtime/ssrServerEntry.d.ts +3 -4
- package/dist/runtime/ssrServerEntry.js +41 -19
- package/dist/runtime.d.ts +11 -0
- package/dist/runtime.js +3 -0
- package/dist/shiki-transformers.d.ts +38 -0
- package/dist/shiki-transformers.js +77 -0
- package/dist/shiki-transformers.js.LICENSE.txt +5 -0
- package/dist/theme.d.ts +4 -0
- package/dist/theme.js +1 -0
- package/meta-json-schema.json +382 -0
- package/nav-json-schema.json +118 -0
- package/package.json +56 -44
- package/static/MediumZoom.css +5 -0
- package/static/MediumZoom.tsx +29 -0
- package/dist/runtime/tsconfig.js +0 -4
- package/runtime.ts +0 -1
- package/theme.ts +0 -1
package/README.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
<picture>
|
|
2
|
+
<img alt="Rspress Banner" src="https://assets.rspack.rs/rspress/rspress-banner.png">
|
|
3
|
+
</picture>
|
|
4
|
+
|
|
1
5
|
# @rspress/core
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
A fast Rsbuild-based static site generator.
|
|
8
|
+
|
|
9
|
+
## Documentation
|
|
10
|
+
|
|
11
|
+
See [Documentation](https://rspress.rs/).
|
|
12
|
+
|
|
13
|
+
## Contributing
|
|
14
|
+
|
|
15
|
+
Please read the [Contributing Guide](https://github.com/web-infra-dev/rspress/blob/main/CONTRIBUTING.md).
|
|
16
|
+
|
|
17
|
+
## License
|
|
18
|
+
|
|
19
|
+
Rspress is [MIT licensed](https://github.com/web-infra-dev/rspress/blob/main/LICENSE).
|
package/bin/rspress.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import nodeModule from 'node:module';
|
|
3
|
+
|
|
4
|
+
// enable on-disk code caching of all modules loaded by Node.js
|
|
5
|
+
// requires Nodejs >= 22.8.0
|
|
6
|
+
const { enableCompileCache } = nodeModule;
|
|
7
|
+
if (enableCompileCache) {
|
|
8
|
+
try {
|
|
9
|
+
enableCompileCache();
|
|
10
|
+
} catch {
|
|
11
|
+
// ignore errors
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
import('../dist/cli.js');
|