Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abjarna committed Jun 30, 2024
1 parent c3fa87f commit 541745c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rit/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,10 @@ def apply_styles(text, styles):
# -- sphinx_favicon configuration --------------------------------------------

favicons = [
{"rel": "icon", "href": "favicon/favicon.ico", "sizes": "32x32"},
{"rel": "icon", "href": "favicon/icon.svg", "type": "image/svg+xml"},
{"rel": "icon", "href": "favicon/icon.png", "type": "image/png"},
{"rel": "apple-touch-icon", "href": "favicon/apple-touch-icon.png"},
{"rel": "manifest", "href": "manifest.json"},
{"rel": "icon", "href": "https://rit.rubik.is/_static/favicon/favicon.ico", "sizes": "32x32"},
{"rel": "icon", "href": "https://rit.rubik.is/_static/favicon/icon.svg", "type": "image/svg+xml"},
{"rel": "apple-touch-icon", "href": "https://rit.rubik.is/_static/favicon/apple-touch-icon.png"},
{"rel": "manifest", "href": "https://rit.rubik.is/_static/manifest.json"},
]


Expand Down
4 changes: 4 additions & 0 deletions sh/build-dev-dirhtml-latexpdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ sphinx-build -b dirhtml -t dev . _build/html
# Bæta "noindex, nofollow" við <head> í öllum HTML skrám
find _build/html/ -name '*.html' -exec sed -i '' -e 's/<head>/<head>\n<meta name="robots" content="noindex, nofollow">/' {} +

# Fjarlægja "type" úr <link rel="icon" href="/favicon.ico" ... > og <link rel="apple-touch-icon" href="/apple-touch-icon.png" ... >
find _build/html/ -name '*.html' -exec sed -i '' -e 's#<link rel="icon" href="_static/favicon/favicon.ico" sizes="32x32"[^>]*>#<link rel="icon" href="_static/favicon/favicon.ico" sizes="32x32">#' {} +
find _build/html/ -name '*.html' -exec sed -i '' -e 's#<link rel="apple-touch-icon" href="_static/favicon/apple-touch-icon.png"[^>]*>#<link rel="apple-touch-icon" href="_static/favicon/apple-touch-icon.png">#' {} +

# Breyta <title> á forsíðu, með því að fjarlægja "* &ndash; "
sed -i '' -e 's#<title>.* &ndash; Ritsafn RÚBIK Reykjavíkur</title>#<title>Ritsafn RÚBIK Reykjavíkur</title>#' _build/html/index.html

Expand Down

0 comments on commit 541745c

Please sign in to comment.