diff --git a/files/squid/helpers/rules.d/opendsa.rules b/files/squid/helpers/rules.d/opendsa.rules index 902b58750e37b279f27f214b0a0cdde19ca33912..85ab98fae99b01e217873fab00eac2f411816ceb 100644 --- a/files/squid/helpers/rules.d/opendsa.rules +++ b/files/squid/helpers/rules.d/opendsa.rules @@ -2,9 +2,7 @@ // New setup on tentix -^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/TDDI16_190827/.* true -^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/TDDE22_190827/.* true -^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/TDDD86[AB]_191219/.* true +^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/.* false ^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/lib/.* true ^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/JSAV/.* true ^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/AV/.* true diff --git a/files/squid/helpers/rules.d/python.rules b/files/squid/helpers/rules.d/python.rules index 77149faadcf177e06a2a3d16a4ae447f56510cde..179b9d783c5194c107a99fd7cf00f81acebe23cd 100644 --- a/files/squid/helpers/rules.d/python.rules +++ b/files/squid/helpers/rules.d/python.rules @@ -1,5 +1,9 @@ // Python library reference -^https?://docs\.python\.org/3/library/.* true -^https?://docs\.python\.org/3/_static/.* true -^https?://docs\.python\.org/3/search\.html\?.* true -^https?://docs\.python\.org/3/searchindex\.js$ true +^https?://docs\.python\.org/3(\.[0-9]{1,2})?/library/.* true +^https?://docs\.python\.org/3(\.[0-9]{1,2})?/_static/.* true +^https?://docs\.python\.org/3(\.[0-9]{1,2})?/search\.html\?.* true +^https?://docs\.python\.org/3(\.[0-9]{1,2})?/searchindex\.js$ true + +// extra for TDDE24 2020-01-17 +^https?://docs\.python\.org/3(\.[0-9]{1,2})?/reference/.* true +^https?://docs\.python\.org/3(\.[0-9]{1,2})?/genindex(-[A-Za-z0-9_])?\.html true