Hi, I have a question about .gitignore.
When I init my project, .gitignore in website/,but in this file, ignore list is website/yarn.lock,I think this should be yarn.lock. website/yarn.lock match file like this website/website/yarn.lock.
@balancelove Hi. I think there is a bug in the creation of the .gitignore when you run docusaurus-init. Is that what you ran to get that bad .gitignore file?
Hi, I have experienced the same problem.
I used [email protected] and got the following result:
$ docusaurus-init && cat website/.gitignore
Website folder created!
Installing latest version of Docusaurus in website.
yarn add v1.5.1
...
node_modules
.DS_Store
lib/core/metadata.js
lib/core/MetadataBlog.js
website/translated_docs
website/build/
website/yarn.lock
website/node_modules
website/i18n/*
!website/i18n/en.json
I think examples/basics/gitignore should be copied in a project root directory.
This CWD specifies website, so .gitignore is copied in website.
Just confirmed this bug. Refer to the following screenshot

@yangshun, @yykamei - see #533 for a fix (I hope 馃槃)