You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An empty front-matter section is added to non-markdown files in the docs/ directory. This includes and is not limited to files with the extensions: .json, .svg, .drawio, .sh, .js, .json, and .yaml.
It was also added to the .gitignore file in the docs/ directory.
This results in an empty front-matter at the top of these files:
---
---
Steps to reproduce
Create a .gitignore file in your docs/ directory.
Run npx @docusaurus/migrate migrate ./v1-website ./v2-website
Expected behavior
Front-matter should only be added to documentation files like those with the .md and .mdx extension (and other supported file formats).
Actual behavior
Front-matter was added to all files, eg. .gitignore became:
---
---
<my_ignored_files>
Your environment
The latest version of @docusaurus/migrate was used as of this writing: 2.0.0-beta.13
Reproducible demo
No response
Self-service
I'd be willing to fix this bug myself.
The text was updated successfully, but these errors were encountered:
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When running the migration utility:
An empty front-matter section is added to non-markdown files in the
docs/
directory. This includes and is not limited to files with the extensions:.json
,.svg
,.drawio
,.sh
,.js
,.json
, and.yaml
.It was also added to the
.gitignore
file in thedocs/
directory.This results in an empty front-matter at the top of these files:
Steps to reproduce
.gitignore
file in yourdocs/
directory.npx @docusaurus/migrate migrate ./v1-website ./v2-website
Expected behavior
Front-matter should only be added to documentation files like those with the
.md
and.mdx
extension (and other supported file formats).Actual behavior
Front-matter was added to all files, eg.
.gitignore
became:Your environment
The latest version of
@docusaurus/migrate
was used as of this writing:2.0.0-beta.13
Reproducible demo
No response
Self-service
The text was updated successfully, but these errors were encountered: