[{"data":1,"prerenderedAt":41},["ShallowReactive",2],{"clay-page:\u002F3.x\u002Fguides\u002Ftroubleshooting":3},{"html":4,"toc":5,"description":37,"hero":38,"list":39,"socialImage":40},"\u003Ch1 id=\"troubleshooting\">Troubleshooting\u003C\u002Fh1>\n\u003Ch2 id=\"the-deployed-site-has-no-styles-or-links-lead-to-404\">\u003Ca class=\"heading-anchor\" href=\"#the-deployed-site-has-no-styles-or-links-lead-to-404\" aria-label=\"Link to this section\" data-route=\"#the-deployed-site-has-no-styles-or-links-lead-to-404\">#\u003C\u002Fa>The deployed site has no styles, or links lead to 404\u003C\u002Fh2>\n\u003Cp>The site is served under a path, but Clay built it for the root. Set \u003Ccode>baseURL\u003C\u002Fcode> to that path, with slashes on both sides:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\">\u003Cpre class=\"shiki shiki-themes light-plus dark-plus\" style=\"--shiki-light:#000000;--shiki-dark:#D4D4D4;--shiki-light-bg:#FFFFFF;--shiki-dark-bg:#1E1E1E\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#800000;--shiki-dark:#569CD6\">baseURL\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#000000;--shiki-dark:#D4D4D4\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#A31515;--shiki-dark:#CE9178\">\"\u002Fmy-project\u002F\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003Cbutton type=\"button\" class=\"copy-code btn btn-sm btn-square btn-ghost\" title=\"Copy code\" aria-label=\"Copy code\">\u003Ci class=\"fa-solid fa-copy\">\u003C\u002Fi>\u003C\u002Fbutton>\u003C\u002Fdiv>\n\u003Cp>Check it with \u003Ccode>npx clay preview\u003C\u002Fcode>: it serves the site under its \u003Ccode>baseURL\u003C\u002Fcode>, like the host does.\u003C\u002Fp>\n\u003Ch2 id=\"images-do-not-show\">\u003Ca class=\"heading-anchor\" href=\"#images-do-not-show\" aria-label=\"Link to this section\" data-route=\"#images-do-not-show\">#\u003C\u002Fa>Images do not show\u003C\u002Fh2>\n\u003Cp>Reference images relative to the page, like \u003Ccode>img\u002Fscreen.png\u003C\u002Fcode> or \u003Ccode>..\u002Fimg\u002Fscreen.png\u003C\u002Fcode>. Paths starting with \u003Ccode>\u002F\u003C\u002Fcode> point to the root of the domain, not to your docs, and break under a \u003Ccode>baseURL\u003C\u002Fcode>. \u003Ccode>npx clay build\u003C\u002Fcode> reports images that do not exist.\u003C\u002Fp>\n\u003Ch2 id=\"last-updated-is-missing\">\u003Ca class=\"heading-anchor\" href=\"#last-updated-is-missing\" aria-label=\"Link to this section\" data-route=\"#last-updated-is-missing\">#\u003C\u002Fa>“Last updated” is missing\u003C\u002Fh2>\n\u003Cp>Clay reads the dates from git. Either the docs are not in a git repository, or CI checked out only the last commit. In GitHub Actions:\u003C\u002Fp>\n\u003Cdiv class=\"code-block\">\u003Cpre class=\"shiki shiki-themes light-plus dark-plus\" style=\"--shiki-light:#000000;--shiki-dark:#D4D4D4;--shiki-light-bg:#FFFFFF;--shiki-dark-bg:#1E1E1E\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#000000;--shiki-dark:#D4D4D4\">- \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#800000;--shiki-dark:#569CD6\">uses\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#000000;--shiki-dark:#D4D4D4\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#0000FF;--shiki-dark:#CE9178\">actions\u002Fcheckout@v7\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#800000;--shiki-dark:#569CD6\">  with\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#000000;--shiki-dark:#D4D4D4\">:\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#800000;--shiki-dark:#569CD6\">    fetch-depth\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#000000;--shiki-dark:#D4D4D4\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#076240;--shiki-dark:#B5CEA8\">0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003Cbutton type=\"button\" class=\"copy-code btn btn-sm btn-square btn-ghost\" title=\"Copy code\" aria-label=\"Copy code\">\u003Ci class=\"fa-solid fa-copy\">\u003C\u002Fi>\u003C\u002Fbutton>\u003C\u002Fdiv>\n\u003Cp>In GitLab CI, set \u003Ccode>GIT_DEPTH: 0\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2 id=\"icons-are-missing-or-show-as-squares\">\u003Ca class=\"heading-anchor\" href=\"#icons-are-missing-or-show-as-squares\" aria-label=\"Link to this section\" data-route=\"#icons-are-missing-or-show-as-squares\">#\u003C\u002Fa>Icons are missing or show as squares\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Check the icon’s classes on \u003Ca href=\"https:\u002F\u002Ffontawesome.com\u002Ficons\" target=\"_blank\" rel=\"noopener noreferrer\">\u003Ci class=\"fa-solid fa-arrow-up-right-from-square clay-external-icon\" aria-hidden=\"true\">\u003C\u002Fi>fontawesome.com\u003C\u002Fa>: both the style and the name are needed, \u003Ccode>fa-solid fa-rocket\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Pro icons only work with a \u003Ca href=\"\u002Fclay-example-repo\u002F3.x\u002Ffeatures\u002Fthemes-and-icons#font-awesome-kits\" data-route=\"\u002F3.x\u002Ffeatures\u002Fthemes-and-icons#font-awesome-kits\">kit\u003C\u002Fa> that includes them.\u003C\u002Fli>\n\u003Cli>With a kit, add your site’s domain to the kit’s allowed domains in your Font Awesome account.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"changes-do-not-show-up-in-clay-dev\">\u003Ca class=\"heading-anchor\" href=\"#changes-do-not-show-up-in-clay-dev\" aria-label=\"Link to this section\" data-route=\"#changes-do-not-show-up-in-clay-dev\">#\u003C\u002Fa>Changes do not show up in clay dev\u003C\u002Fh2>\n\u003Cp>\u003Ccode>clay dev\u003C\u002Fcode> reloads the browser when a page, an image or \u003Ccode>clay.yaml\u003C\u002Fcode> changes. If nothing happens, check that you edit the files of the project \u003Ccode>clay dev\u003C\u002Fcode> was started in, and look at its output for errors.\u003C\u002Fp>\n\u003Ch2 id=\"the-port-is-in-use\">\u003Ca class=\"heading-anchor\" href=\"#the-port-is-in-use\" aria-label=\"Link to this section\" data-route=\"#the-port-is-in-use\">#\u003C\u002Fa>The port is in use\u003C\u002Fh2>\n\u003Cp>Another program uses port 3000 (or 4173 for \u003Ccode>clay preview\u003C\u002Fcode>). Choose another one:\u003C\u002Fp>\n\u003Cdiv class=\"code-block is-terminal has-bar\">\u003Cdiv class=\"code-terminal\" aria-hidden=\"true\">\u003Cspan>\u003C\u002Fspan>\u003Cspan>\u003C\u002Fspan>\u003Cspan>\u003C\u002Fspan>\u003C\u002Fdiv>\u003Cpre class=\"shiki shiki-themes light-plus dark-plus\" style=\"--shiki-light:#000000;--shiki-dark:#D4D4D4;--shiki-light-bg:#FFFFFF;--shiki-dark-bg:#1E1E1E\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line command\">\u003Cspan style=\"--shiki-light:#695221;--shiki-dark:#DCDCAA\">npx\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#A31515;--shiki-dark:#CE9178\"> clay\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#A31515;--shiki-dark:#CE9178\"> dev\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#0000FF;--shiki-dark:#569CD6\"> --port\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#076240;--shiki-dark:#B5CEA8\"> 3001\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003Cbutton type=\"button\" class=\"copy-code btn btn-sm btn-square btn-ghost\" title=\"Copy code\" aria-label=\"Copy code\">\u003Ci class=\"fa-solid fa-copy\">\u003C\u002Fi>\u003C\u002Fbutton>\u003C\u002Fdiv>\n\u003Ch2 id=\"the-build-fails-on-a-page\">\u003Ca class=\"heading-anchor\" href=\"#the-build-fails-on-a-page\" aria-label=\"Link to this section\" data-route=\"#the-build-fails-on-a-page\">#\u003C\u002Fa>The build fails on a page\u003C\u002Fh2>\n\u003Cp>Clay shows which page failed and why. Common causes:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>A link in raw HTML\u003C\u002Fstrong> points to a page that does not exist. The link check only sees Markdown links; fix the HTML link.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Front matter\u003C\u002Fstrong> is not closed: the second \u003Ccode>---\u003C\u002Fcode> line is missing.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Run \u003Ccode>npx clay build --verbose\u003C\u002Fcode> for the complete output.\u003C\u002Fp>\n\u003Ch2 id=\"opening-indexhtml-directly-looks-broken\">\u003Ca class=\"heading-anchor\" href=\"#opening-indexhtml-directly-looks-broken\" aria-label=\"Link to this section\" data-route=\"#opening-indexhtml-directly-looks-broken\">#\u003C\u002Fa>Opening index.html directly looks broken\u003C\u002Fh2>\n\u003Cp>The site needs a web server: opened from disk (\u003Ccode>file:\u002F\u002F…\u003C\u002Fcode>), the browser cannot load its styles, scripts and search. Use \u003Ccode>npx clay preview\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2 id=\"nodejs-is-too-old\">\u003Ca class=\"heading-anchor\" href=\"#nodejs-is-too-old\" aria-label=\"Link to this section\" data-route=\"#nodejs-is-too-old\">#\u003C\u002Fa>Node.js is too old\u003C\u002Fh2>\n\u003Cp>Clay needs Node.js 20.19 or newer. Check with \u003Ccode>node --version\u003C\u002Fcode>, and update Node.js from \u003Ca href=\"https:\u002F\u002Fnodejs.org\" target=\"_blank\" rel=\"noopener noreferrer\">\u003Ci class=\"fa-solid fa-arrow-up-right-from-square clay-external-icon\" aria-hidden=\"true\">\u003C\u002Fi>nodejs.org\u003C\u002Fa> or with your version manager.\u003C\u002Fp>\n\u003Ch2 id=\"still-stuck\">\u003Ca class=\"heading-anchor\" href=\"#still-stuck\" aria-label=\"Link to this section\" data-route=\"#still-stuck\">#\u003C\u002Fa>Still stuck?\u003C\u002Fh2>\n\u003Cp>Open an issue in the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fclay-doc\u002Fclay\u002Fissues\" target=\"_blank\" rel=\"noopener noreferrer\">\u003Ci class=\"fa-solid fa-arrow-up-right-from-square clay-external-icon\" aria-hidden=\"true\">\u003C\u002Fi>Clay repository\u003C\u002Fa> with the command you ran and its output.\u003C\u002Fp>\n",[6,10,13,16,19,22,25,28,31,34],{"id":7,"text":8,"level":9},"the-deployed-site-has-no-styles-or-links-lead-to-404","The deployed site has no styles, or links lead to 404",2,{"id":11,"text":12,"level":9},"images-do-not-show","Images do not show",{"id":14,"text":15,"level":9},"last-updated-is-missing","“Last updated” is missing",{"id":17,"text":18,"level":9},"icons-are-missing-or-show-as-squares","Icons are missing or show as squares",{"id":20,"text":21,"level":9},"changes-do-not-show-up-in-clay-dev","Changes do not show up in clay dev",{"id":23,"text":24,"level":9},"the-port-is-in-use","The port is in use",{"id":26,"text":27,"level":9},"the-build-fails-on-a-page","The build fails on a page",{"id":29,"text":30,"level":9},"opening-indexhtml-directly-looks-broken","Opening index.html directly looks broken",{"id":32,"text":33,"level":9},"nodejs-is-too-old","Node.js is too old",{"id":35,"text":36,"level":9},"still-stuck","Still stuck?","Solutions for the most common problems with Clay sites, from missing styles to missing dates.",null,false,"\u002F_clay\u002Fsocial\u002F3.x\u002Fguides\u002Ftroubleshooting.png",1792666369094]