From 550ae37883487cb29eeeb7d2ceed62736d22bf46 Mon Sep 17 00:00:00 2001
From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
Date: Tue, 11 Jul 2023 11:59:32 +0100
Subject: [PATCH] Fix linkcheck & update redirecting links
---
src/conf.py | 4 ++--
src/hyperlinks.rst.include | 6 +++---
src/user-guide/writing-workflows/jinja2.rst | 4 ++--
src/workflow-design-guide/general-principles.rst | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/conf.py b/src/conf.py
index e4e7113ed6..04c9bc6670 100644
--- a/src/conf.py
+++ b/src/conf.py
@@ -141,8 +141,8 @@
'-Nfontname=sans']
linkcheck_ignore = [
- # linkcheck has trouble handling RH readme pages
- r'https://github.com/metomi/isodatetime.*#.*'
+ # linkcheck has trouble handling GH anchors
+ r'https://github.com/.*#.*'
]
nitpick_ignore_regex = [
diff --git a/src/hyperlinks.rst.include b/src/hyperlinks.rst.include
index 381309ba5e..aad84f1841 100644
--- a/src/hyperlinks.rst.include
+++ b/src/hyperlinks.rst.include
@@ -1,7 +1,7 @@
.. This document contains hyperlink references for use throughout the documentation.
.. _Apollo Client: https://www.apollographql.com/docs/react/
-.. _Configurable HTTP Proxy: https://github.com/AbdealiJK/configurable-http-proxy
+.. _Configurable HTTP Proxy: https://github.com/corridor/configurable-http-proxy
.. _CurveZMQ: http://curvezmq.org/page:read-the-docs
.. _Cylc User Guide: https://cylc.github.io/cylc-doc/latest/html/index.html
.. _Cylc Workflow Design Guide: https://cylc.github.io/cylc-doc/latest/html/workflow-design-guide/index.html
@@ -13,11 +13,11 @@
.. _FCM User Guide: http://metomi.github.io/fcm/doc/user_guide/
.. _FCM: https://metomi.github.io/fcm/doc/
.. _INI: https://en.wikipedia.org/wiki/INI_file
-.. _Jinja2: https://jinja.palletsprojects.com/
+.. _Jinja2: https://jinja.palletsprojects.com/en/3.0.x/
.. _Jupyter Hub: https://jupyterhub.readthedocs.io/en/stable/
.. _Jupyter Lab: https://jupyterlab.readthedocs.io/en/stable/getting_started/overview.html
.. _Jupyter Server: https://jupyter-server.readthedocs.io
-.. _Protobuf: https://developers.google.com/protocol-buffers/
+.. _Protobuf: https://protobuf.dev/
.. _PyGTK: http://www.pygtk.org/
.. _Python Regular Expressions: https://docs.python.org/2/library/re.html#regular-expression-syntax
.. _Python: https://www.python.org/
diff --git a/src/user-guide/writing-workflows/jinja2.rst b/src/user-guide/writing-workflows/jinja2.rst
index 19e72c6bc5..6e62d71d24 100644
--- a/src/user-guide/writing-workflows/jinja2.rst
+++ b/src/user-guide/writing-workflows/jinja2.rst
@@ -24,7 +24,7 @@ so Jinja2 can appear anywhere in the file.
Embedded Jinja2 code should be reasonably easy to understand for those with
coding experience; but if not, Jinja2 is well documented `here
-`_.
+`_.
Uses of Jinja2 in Cylc include:
@@ -443,7 +443,7 @@ handled using ``namespace`` objects that allow propagating of changes across sco
For detail, see
`Jinja2 Template Designer Documentation - Assignments
-`_
+`_
.. _Jinja2RaisingExceptions:
diff --git a/src/workflow-design-guide/general-principles.rst b/src/workflow-design-guide/general-principles.rst
index ee550e98fb..ea97d5e4ca 100644
--- a/src/workflow-design-guide/general-principles.rst
+++ b/src/workflow-design-guide/general-principles.rst
@@ -126,7 +126,7 @@ Coding Standards
When writing your own task scripts make consistent use of appropriate coding
standards such as:
-- `PEP8 for Python `_
+- `PEP8 for Python `_
- `Google Shell Style Guide for
Bash `_