File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11node_modules /
22dist /
33public /assets
4+ public /docs.json
Original file line number Diff line number Diff line change @@ -13,10 +13,15 @@ import { joinPath } from "./src/utils/path";
1313// Create a symbolic link to the assets generated by typst-docs in ./public/assets/
1414const assetsDocsPath = resolve ( __dirname , "../assets/" ) ;
1515const publicAssetsDocsPath = resolve ( __dirname , "./public/assets/" ) ;
16-
1716rmSync ( publicAssetsDocsPath , { recursive : true , force : true } ) ;
1817symlinkSync ( assetsDocsPath , publicAssetsDocsPath , "dir" ) ;
1918
19+ // Create a symbolic link to the assets generated by typst-docs in ./public/docs.json
20+ const jsonDocsPath = resolve ( __dirname , "../assets/docs.json" ) ;
21+ const publicJsonDocsPath = resolve ( __dirname , "./public/docs.json" ) ;
22+ rmSync ( publicJsonDocsPath , { recursive : true , force : true } ) ;
23+ symlinkSync ( jsonDocsPath , publicJsonDocsPath , "file" ) ;
24+
2025const ssgPlugins =
2126 basePath === "/"
2227 ? [
You can’t perform that action at this time.
0 commit comments