Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pklaschka/ssblc

Static Site Broken Link Chacker: A broken-link checker for static sites, like the ones generated with docsify
https://github.com/pklaschka/ssblc

broken-link broken-link-finder broken-links ci docsify nodejs npm static-site

Last synced: 26 days ago
JSON representation

Static Site Broken Link Chacker: A broken-link checker for static sites, like the ones generated with docsify

Awesome Lists containing this project

README

        

# @pklachka/ssblc

Static Site Broken Link Checker

![CI Status Badge](https://github.com/pklaschka/ssblc/workflows/CI/badge.svg?branch=master)

A broken-link checker for static sites, like the ones generated with docsify that can get used, for example, for CI purposes on docsify docs (this is what I've developed it for).

It recursively checks internal links found on the static website (until every internal link is checked) and (without recursion) outgoing links. This is achieved by finding `href` attributes in the HTML, meaning also stylesheets included with `` get checked.

## Installation
You can either run it by just using `npx`, in which case you won't have to install it, or first install it with

```shell script
npm install -g @pklaschka/ssblc
```

## Usage
When you are in the folder of your static website (i.e., there is an `index.html` in this folder), simply run

```shell script
ssblc
```

after which the checker will begin its work.

To use it with `npx`, simply run

```shell script
npx @pklaschka/ssblc
```

Alternatively, you can also specify an absolute or relative path to the directory of the site, e.g., like this:

```shell script
ssblc ../my-site
```