From 57e059575352803d510f118ab181a26f24101f5d Mon Sep 17 00:00:00 2001 From: niksirbi Date: Thu, 17 Oct 2024 12:05:27 +0100 Subject: [PATCH] deal with license link error --- README.md | 2 +- docs/source/conf.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ac0ee5c..48e827b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![License](https://img.shields.io/badge/License-BSD_3--Clause-orange.svg)](https://opensource.org/licenses/BSD-3-Clause) +[![License](https://img.shields.io/badge/License-BSD_3--Clause-orange.svg)](https://opensource.org/license/bsd-3-clause/) ![CI](https://img.shields.io/github/actions/workflow/status/brainglobe/brainglobe-template-builder/test_and_deploy.yml?label=CI) [![codecov](https://codecov.io/gh/brainglobe/brainglobe-template-builder/branch/main/graph/badge.svg?token=P8CCH3TI8K)](https://codecov.io/gh/brainglobe/brainglobe-template-builder) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v0.json)](https://github.com/charliermarsh/ruff) diff --git a/docs/source/conf.py b/docs/source/conf.py index 3623d07..ae939aa 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -85,6 +85,13 @@ "**/includes/**", ] + +# A list of links (or regex) that match URIs that should not be checked +# during sphinx-build linkcheck +linkcheck_ignore = [ + "https://opensource.org/license/*", # to avoid odd 403 error +] + # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output html_theme = "pydata_sphinx_theme"