Open BuckyMaler opened 4 years ago
@ZachJW34 are there any plans to implement this, or alternatively write some documentation on how to do it yourself?
I don't plan on implementing this anytime soon. If you're interested, a community contribution would be great! I can help out along the way
I will look into it when I have time. Problem is mainly the beforeCli
check in docusaurus. But I bypassed that, by directly calling the deploy
function without going through the cli.
deploy.ts
at root:
import deploy from '@docusaurus/core/lib/commands/deploy';
deploy(__dirname, {
skipBuild: true,
outDir: '../../dist/apps/docs',
});
And a new script in the docs project:
"deploy": {
"executor": "nx:run-commands",
"options": {
"cwd": "apps/docs",
"command": "ts-node deploy.ts"
}
}
It might not be super pretty, but it works.
What do you think of this solution? Should I add it to the project?
Description
Support the Docusaurus deployment options listed here.
Suggested Implementation
Add a builder for deploying a Docusaurus website.