@ 261102.1

250206.4 · fa6a2ff6888f27648c703688f1a973588406d92a

website: remove unused root path on building website (#3248)

We no longer use the `--root` option of `build_website.py` since we have moved to jqlang.org (from jqlang.github.io/jq where the root was `/jq`). We don't need the option on local development either since `http.server` has the `-d` option to specify the directory to serve from.

reading declarations

Changes to docs/templates/shared/_head.html.j2. All files

docs/templates/shared/_head.html.j2

@@ -5,16 +5,16 @@     <meta property="og:title" content="{{ headline }}">     <meta property="og:description" content="jq is a lightweight and flexible command-line JSON processor">     <meta property="og:type" content="website">-    <meta property="og:image" content="{{ url }}{{ root }}/icon.png">+    <meta property="og:image" content="{{ url }}/icon.png">     <meta property="og:url" content="{{ url }}/{{ permalink }}">-    <link rel="icon" href="{{ root }}/icon.svg" type="image/svg+xml">-    <link rel="apple-touch-icon" href="{{ root }}/icon.png" type="image/png">+    <link rel="icon" href="/icon.svg" type="image/svg+xml">+    <link rel="apple-touch-icon" href="/icon.png" type="image/png">     <link rel="canonical" href="{{ url }}/{{ permalink }}">     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootswatch@5.3.1/dist/cosmo/bootstrap.min.css"       integrity="sha384-dulfW0vmzZ638jigSgZXvDxMmd70GCnIv6oa+riKq6Kk4E0MKf7qmBfwP02wltv5" crossorigin="anonymous">     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css"       integrity="sha384-Ay26V7L8bsJTsX9Sxclnvsn+hkdiwRnrjZJXqKmkIDobPgIIWBOVguEcQQLDuhfN" crossorigin="anonymous">-    <link rel="stylesheet" href="{{ root }}/css/style.css" type="text/css">+    <link rel="stylesheet" href="/css/style.css" type="text/css">     <script>       (function() {         function setTheme(mediaQuery) {