From 5e322b94e0c39d0b53d161129d2b27409935416d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 31 May 2020 19:29:32 +0200 Subject: [PATCH] add dead link validation --- .drone.yml | 11 +++++++++-- .npmrc | 1 - exampleSite/content/_index.md | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 .npmrc diff --git a/.drone.yml b/.drone.yml index 64cfaeb..f377b7d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,13 +8,14 @@ platform: steps: - name: assets - image: node + image: node:lts commands: - npm install -g gulp - npm install - gulp default environment: FORCE_COLOR: true + NPM_CONFIG_LOGLEVEL: error - name: test image: klakegg/hugo:0.69.0-ext-alpine @@ -29,12 +30,18 @@ steps: - spellchecker --files 'exampleSite/content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls --no-suggestions environment: FORCE_COLOR: true + NPM_CONFIG_LOGLEVEL: error - name: html-validation image: validator/validator commands: - vnu --skip-non-html --also-check-css --errors-only exampleSite/public +- name: dead-links-validation + image: xoxys/link-validator + commands: + - link-validator -ro + - name: build image: alpine commands: @@ -153,6 +160,6 @@ depends_on: --- kind: signature -hmac: 708f32a4284b33fb9606b8304637d426cdb38260a6123ca23b4a387ad2bf6654 +hmac: a6c3c2933f950352b2379b402340ed9723d3a4d736e1e79fc3964aca078a4e08 ... diff --git a/.npmrc b/.npmrc deleted file mode 100644 index a64a8e6..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -loglevel = error diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 0948285..d41f732 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -5,7 +5,7 @@ title: Documentation [![Build Status](https://img.shields.io/drone/build/xoxys/hugo-geekdoc?logo=drone)](https://cloud.drone.io/xoxys/hugo-geekdoc) [![Hugo Version](https://img.shields.io/badge/hugo-0.65-blue.svg)](https://gohugo.io) [![GitHub release](https://img.shields.io/github/v/release/xoxys/hugo-geekdoc)](https://github.com/xoxys/hugo-geekdoc/releases/latest) -[![License: MIT](https://img.shields.io/github/license/xoxys/hugo-geekdoc)](LICENSE) +[![License: MIT](https://img.shields.io/github/license/xoxys/hugo-geekdoc)](https://github.com/xoxys/hugo-geekdoc/blob/master/LICENSE) Geekdoc is a simple Hugo theme for documentations. This work is inspired and partially based on the [hugo-book](https://github.com/alex-shpak/hugo-book) theme.