UmbrellaDocs / linkspector

Uncover broken links in your content.
Apache License 2.0
59 stars 8 forks source link

Allow linkspector to be ran without a configuration file #13

Closed hugobuddel closed 7 months ago

hugobuddel commented 7 months ago

Perhaps it would be useful to allow linkspector to be ran without a configuration file.

There are two ways to this:

We currently added the following line to our github action for smooth transition from markdown-link-checker:

        # Generate default configuration file if it doesn't exist.
        if [ ! -f .linkspector.yml ] ; then printf "dirs:\n  - ./\n" > .linkspector.yml ; fi

While this works, it looks a bit ugly.

FWIW, we cannot use markdown-link-checker anymore, as SPIE uses a new redirection scheme in which working urls like https://doi.org/10.1117/12.2559784 are marked as broken by markdown-link-checker. linkspector correctly identifies them as working. So this seemed like a good moment to switch to linkspector.

And thanks for your work!

gaurav-nelson commented 7 months ago

Thank you @hugobuddel Seems a like a good suggestion. I'll add this one.