@opentf/afw-docs 0.37.0 → 0.38.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.
- package/README.md +5 -2
- package/build/vite.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ to an existing project, import its stylesheet and register the build plugins:
|
|
|
79
79
|
```json
|
|
80
80
|
{
|
|
81
81
|
"plugins": [
|
|
82
|
-
{ "module": "@opentf/esdev-plugin-afw"
|
|
82
|
+
{ "module": "@opentf/esdev-plugin-afw" },
|
|
83
83
|
{ "module": "@opentf/afw-docs/build", "export": "afwDocsPlugin", "options": { "appDir": "app" } }
|
|
84
84
|
]
|
|
85
85
|
}
|
|
@@ -122,7 +122,10 @@ pnpm add -D vite @opentf/vite-plugin-afw
|
|
|
122
122
|
import afw from "@opentf/vite-plugin-afw";
|
|
123
123
|
import afwDocs from "@opentf/afw-docs/vite";
|
|
124
124
|
|
|
125
|
-
export default { plugins: [afw(
|
|
125
|
+
export default { plugins: [afw(), afwDocs()] };
|
|
126
|
+
|
|
127
|
+
// app/_config.js: the site is prerendered
|
|
128
|
+
// export default { render: "static" };
|
|
126
129
|
```
|
|
127
130
|
|
|
128
131
|
`vite build` writes the static site to `dist/`; `vite preview` serves it.
|
package/build/vite.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
// import afw from "@opentf/vite-plugin-afw";
|
|
5
5
|
// import afwDocs from "@opentf/afw-docs/vite";
|
|
6
|
-
// export default { plugins: [afw(
|
|
6
|
+
// export default { plugins: [afw(), afwDocs()] }; // app/_config.js: { render: "static" }
|
|
7
7
|
//
|
|
8
8
|
// It reads the same afw.config as the esdev workflow and serves the same virtual
|
|
9
9
|
// modules: `@opentf/afw-docs/nav` (with a `docs` block), `/posts` (with `blog`) and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentf/afw-docs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Documentation and blog sites built as ordinary AFW apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@opentf/afw": "0.39.0",
|
|
83
|
-
"@opentf/afw-test": "1.
|
|
84
|
-
"@opentf/vite-plugin-afw": "0.
|
|
83
|
+
"@opentf/afw-test": "1.35.0",
|
|
84
|
+
"@opentf/vite-plugin-afw": "0.8.0",
|
|
85
85
|
"vite": "8.3.5"
|
|
86
86
|
},
|
|
87
87
|
"types": "./types/index.d.ts"
|