vapor / docs

📖 Documentation markdown for all Vapor packages.

Home Page:https://docs.vapor.codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

404 page broken

0xTim opened this issue · comments

The 404 page is a little broken

https://docs.vapor.codes/4.0content/

So this happens because the 3 lines defined below have the wrong "id". This is because the id is generated when the website gets generated.

We can fix this by added a small script to our workflow that checks the names of the generated files and replaces the source of these lines below

https://github.com/vapor/docs/blob/main/theme/404.html#L25

https://github.com/vapor/docs/blob/main/theme/404.html#L28

https://github.com/vapor/docs/blob/main/theme/404.html#L1353

I think either

{%- for path in extra_css %}
        <link href="{{ path }}" rel="stylesheet">
        {%- endfor %}

or

<link href="{{ base_url }}/css/base.css" rel="stylesheet">

Should work and get translated automatically, without needing to fix it with a script. See mkdocs/mkdocs#732