From 99f9a3271bbdbbc13032a50ad80dc5f2391ca89d Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 12 Jan 2025 13:56:05 +1100 Subject: [PATCH] Ignore RTD version check (#8884) * Ignore RTD version check - Handled internally by readthedocs * Add link ignore --- docs/docs/hooks.py | 8 ++++---- docs/mlc_config.json | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/docs/hooks.py b/docs/docs/hooks.py index 71ab4a963b..dead450025 100644 --- a/docs/docs/hooks.py +++ b/docs/docs/hooks.py @@ -154,10 +154,10 @@ def on_config(config, *args, **kwargs): # Check for 'versions.json' file # If it does not exist, we need to fetch it from the RTD API - if os.path.exists(os.path.join(os.path.dirname(__file__), 'versions.json')): - print("Found 'versions.json' file") - else: - fetch_rtd_versions() + # if os.path.exists(os.path.join(os.path.dirname(__file__), 'versions.json')): + # print("Found 'versions.json' file") + # else: + # fetch_rtd_versions() if rtd: rtd_version = os.environ['READTHEDOCS_VERSION'] diff --git a/docs/mlc_config.json b/docs/mlc_config.json index f9f3bb78d2..219252f79f 100644 --- a/docs/mlc_config.json +++ b/docs/mlc_config.json @@ -20,6 +20,9 @@ }, { "pattern": "https://opensource.org/license/MIT" + }, + { + "pattern": "https://docs.inventree.org/en/latest/credits/" } ] }