From 699f081775bd2a85aec3458eda6730d7cd7c257a Mon Sep 17 00:00:00 2001 From: Dan Trickey Date: Tue, 6 Mar 2018 23:06:23 +0000 Subject: [PATCH 1/4] Add Github Edit Links --- config.yml | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.yml b/config.yml index 099bc405..57a2d478 100644 --- a/config.yml +++ b/config.yml @@ -11,6 +11,7 @@ params: disableLanguageSwitchingButton: true disableAssetsBusting: true ordersectionsby: "weight" + editURL: "https://github.com/sourcebots/docs/tree/master/content/" pythonVersion: 3.5.3 diff --git a/package.json b/package.json index 5c8cfe99..1b57a372 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "spellcheck": "mdspell --en-gb --report --ignore-acronyms --ignore-numbers --no-suggestions 'content/**/*.md'", "broken-link-local": "blcl --recursive --ordered --exclude-external ./public/", - "broken-link-all": "blcl --recursive --ordered ./public/", + "broken-link-all": "blcl --recursive --exclude https://github.com/sourcebots/docs/tree/master/content/* --ordered ./public/", "test": "npm run spellcheck && npm run broken-link-local", "ci-test": "npm run spellcheck && npm run broken-link-all" }, From 9d037ff2e4dc0c4bedae80d8371adf062f740e3b Mon Sep 17 00:00:00 2001 From: Dan Trickey Date: Wed, 7 Mar 2018 01:01:12 +0000 Subject: [PATCH 2/4] Add explanatory comment on exclusion of certain github links from link checker --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 1b57a372..32793216 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "spellcheck": "mdspell --en-gb --report --ignore-acronyms --ignore-numbers --no-suggestions 'content/**/*.md'", "broken-link-local": "blcl --recursive --ordered --exclude-external ./public/", + "//": "Github links below are excluded to prevent breaking the link checker for the Edit in Github urls, when no such page exists in master", "broken-link-all": "blcl --recursive --exclude https://github.com/sourcebots/docs/tree/master/content/* --ordered ./public/", "test": "npm run spellcheck && npm run broken-link-local", "ci-test": "npm run spellcheck && npm run broken-link-all" From 4434fd33e89f89cfa4b2187c6eadaa9f381b0ad7 Mon Sep 17 00:00:00 2001 From: Dan Trickey Date: Wed, 7 Mar 2018 13:17:55 +0000 Subject: [PATCH 3/4] Remove nasty json comment Revert "Add explanatory comment on exclusion of certain github links from link checker" This reverts commit 9d037ff2e4dc0c4bedae80d8371adf062f740e3b. --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 32793216..1b57a372 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,6 @@ "scripts": { "spellcheck": "mdspell --en-gb --report --ignore-acronyms --ignore-numbers --no-suggestions 'content/**/*.md'", "broken-link-local": "blcl --recursive --ordered --exclude-external ./public/", - "//": "Github links below are excluded to prevent breaking the link checker for the Edit in Github urls, when no such page exists in master", "broken-link-all": "blcl --recursive --exclude https://github.com/sourcebots/docs/tree/master/content/* --ordered ./public/", "test": "npm run spellcheck && npm run broken-link-local", "ci-test": "npm run spellcheck && npm run broken-link-all" From 79a6ba1c4c80b42d9899a7b34f8b5b23ab2f6284 Mon Sep 17 00:00:00 2001 From: Dan Trickey Date: Mon, 26 Mar 2018 10:46:33 +0100 Subject: [PATCH 4/4] Exclude Farnell links. Also exclude Microsoft links as these were throwing a BLC_UNKNOWN error which is not documented. --- package.json | 2 +- thing | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 thing diff --git a/package.json b/package.json index 1b57a372..49569b34 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "spellcheck": "mdspell --en-gb --report --ignore-acronyms --ignore-numbers --no-suggestions 'content/**/*.md'", "broken-link-local": "blcl --recursive --ordered --exclude-external ./public/", - "broken-link-all": "blcl --recursive --exclude https://github.com/sourcebots/docs/tree/master/content/* --ordered ./public/", + "broken-link-all": "blcl --recursive --exclude farnell --exclude microsoft --exclude https://github.com/sourcebots/docs/tree/master/content/* --ordered ./public/", "test": "npm run spellcheck && npm run broken-link-local", "ci-test": "npm run spellcheck && npm run broken-link-all" }, diff --git a/thing b/thing new file mode 100644 index 00000000..e69de29b