Skip to content

[Bug] Setup of Docusaurus from scratch on Windows #878

@martyna-mindsdb

Description

@martyna-mindsdb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions