ulivz / vuepress-plugin-check-md

Check dead links of markdown.
MIT License
26 stars 7 forks source link

--fix doesn't work #3

Open FichteFoll opened 4 years ago

FichteFoll commented 4 years ago

When I run the command with the --fix option to change .html links to .md, as suggested, no changes are made.

~/code/docs.sublimetext.io ▞ yarn vuepress check-md docs --fix
yarn run v1.22.4
$ /home/fichte/code/docs.sublimetext.io/node_modules/.bin/vuepress check-md docs --fix

Checking markdown...

8 warning was found

  Should use .md instead of .html: [Scopes]: /guide/extensibility/syntaxdefs.html#scopes  (/home/fichte/code/docs.sublimetext.io/docs/reference/completions.md:53:1)
  Should use .md instead of .html: [Merging and Order of Precedence](/guide/extensibility/packages.html#merging-and-order-of-precedence) (/home/fichte/code/docs.sublimetext.io/docs/reference/key_bindings.md:316:1)
  Should use .md instead of .html: [Menu items]: /guide/customization/menus.html#menu-items (/home/fichte/code/docs.sublimetext.io/docs/reference/menus.md:62:1)
  Should use .md instead of .html: [Menu Separator]: /guide/customization/menus.html#menu-separators (/home/fichte/code/docs.sublimetext.io/docs/reference/menus.md:101:1)
  Should use .md instead of .html: [Settings Hierarchy](/guide/customization/settings.html#the-settings-hierarchy) (/home/fichte/code/docs.sublimetext.io/docs/reference/projects.md:170:1)
  Should use .md instead of .html: [Goto Anything](/guide/file-management/navigation.html#goto-anything) (/home/fichte/code/docs.sublimetext.io/docs/reference/symbols.md:278:1)
  Should use .md instead of .html: [Reference for Build Systems](/reference/build_systems.html) (/home/fichte/code/docs.sublimetext.io/docs/guide/build-systems/README.md:6:1)
  Should use .md instead of .html: [Troubleshooting Build Systems](/reference/build_systems.html#troubleshooting-build-systems) (/home/fichte/code/docs.sublimetext.io/docs/guide/build-systems/README.md:27:5)

67 dead links was found

  File is not found: [Getting Started]: ./basic-concepts/README.md (/home/fichte/code/docs.sublimetext.io/docs/guide/README.md:51:1)
  File is not found: [Build System Variables]: ./build_systems.md#build-system-variables (/home/fichte/code/docs.sublimetext.io/docs/reference/commands.md:35:1)
  File is not found: [String]: Optional. The name of the variant to be run. (/home/fichte/code/docs.sublimetext.io/docs/reference/commands.md:45:17)
…
  File is not found: [Reference for syntax definitions](/reference/syntaxdefs.md) (/home/fichte/code/docs.sublimetext.io/docs/guide/extensibility/syntaxdefs.md:32:1)
  File is not found: [Goto Anything](../file-managemant/navigation.md#goto-anything) (/home/fichte/code/docs.sublimetext.io/docs/guide/search-and-replace/single.md:61:1)

Executes with --fix to fix automatically

Checking failed

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

For reproduction, clone this repo and checkout the specified commit: https://github.com/sublimetext-io/docs.sublimetext.io/tree/5b25c6a8a8fa944911f414253679c021f0925726