docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

[Bug] Setup of Docusaurus from scratch on Windows

Open martyna-mindsdb opened this issue 1 year ago • 1 comments

Hello, I'm trying to set up Docusaurus from scratch on Windows following this instruction - https://github.com/PaloAltoNetworks/docusaurus-openapi-docs?tab=readme-ov-file#bootstrapping-from-template-new-docusaurus-site

But I get an error when cloning the repository.

Here are the steps I follow:

  1. Opening CMD in the Administrator mode.

  2. Running npx [email protected] my-website --package-manager yarn

  • choosing Git repository
  • pasting the URL https://github.com/PaloAltoNetworks/docusaurus-template-openapi-docs.git
  • choosing Copy: do a shallow clone, but do not create a git repo

image

It seems that the directory cannot be created.

Please let me know any solution to that. Thanks.

EDIT: I have found an alternative way to set it up on Windows as follows:

git clone --depth 1 https://github.com/PaloAltoNetworks/docusaurus-template-openapi-docs.git my-website
cd my-website
yarn install
yarn start

martyna-mindsdb avatar Jul 04 '24 15:07 martyna-mindsdb

Hi @martyna-mindsdb thanks for reporting this issue. Since it's not necessarily related to the plugin would you be interested in updating the readme to including your suggested workaround? Thanks!

sserrata avatar Jul 04 '24 18:07 sserrata