Issue #1 reported that "protodocs" is hardcoded to both the routeBasePath and the path variables passed to @docusaurus/plugin-content-docs.
Problem
The configuration of this base route and docs directory are valid use cases and should be supported.
Solution
routeBasePath
Expose a new configuration option for docs.routeBasePath and pass to docs plugin initialization.
Use this new config during link generation.
path
Use protobuffet.protoDocsPath to populate path in the docs plugin initialization.
Usage
To configure a different directory for documentation to be generated (npx docusaurus generate-proto-docs), configure protobuffet.protoDocsPath. Note, this will automatically be used for the directory where docs are read from when initializing @docusaurus/plugin-content-docs.
To configure a different base route for links, configure docs.routeBasePath.
Context
Issue #1 reported that "protodocs" is hardcoded to both the
routeBasePath
and thepath
variables passed to@docusaurus/plugin-content-docs
.Problem
The configuration of this base route and docs directory are valid use cases and should be supported.
Solution
routeBasePath
docs.routeBasePath
and pass to docs plugin initialization.path
protobuffet.protoDocsPath
to populatepath
in the docs plugin initialization.Usage
To configure a different directory for documentation to be generated (
npx docusaurus generate-proto-docs
), configureprotobuffet.protoDocsPath
. Note, this will automatically be used for the directory where docs are read from when initializing@docusaurus/plugin-content-docs
.To configure a different base route for links, configure
docs.routeBasePath
.Example: