docs: use the path config option rather than symlinks

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-06-04 13:34:09 -07:00
parent e9b952a882
commit aff527d34d
2 changed files with 2 additions and 16 deletions

View File

@ -1,12 +0,0 @@
module.exports = function (context, options) {
return {
name: "custom-docusaurus-plugin",
configureWebpack(config, isServer, utils) {
return {
resolve: {
symlinks: false
}
};
}
};
};

View File

@ -47,6 +47,7 @@ module.exports = {
"@docusaurus/preset-classic", "@docusaurus/preset-classic",
{ {
docs: { docs: {
path: "../docs",
sidebarPath: require.resolve("./sidebars.js"), sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/dagger/dagger/blob/main", editUrl: "https://github.com/dagger/dagger/blob/main",
routeBasePath: "/", routeBasePath: "/",
@ -57,8 +58,5 @@ module.exports = {
}, },
], ],
], ],
plugins: [ plugins: ["docusaurus-plugin-sass"],
'docusaurus-plugin-sass',
path.resolve(__dirname, "./custom_plugins")
],
}; };