Skip to content

[Bug]: All assets are 404 when deployed to github pages #175

Description

@alexhelms

docmd version

0.8.11

Node.js version

v24.15.0

OS/Browser

Windows / Edge

Description

I upgraded from v0.8.9 to v0.8.11 and when I deployed to github pages everything assets is 404. I'm using the default github page url, so https://alexhelms.github.io/some-project/ but the items that are 404'ing (css, images, etc.) are requesting https://alexhelms.github.io/assets/css/docmd-main.css, note the missing some-project repo path in the URL.

When running v0.8.9 this worked fine, however custom images in /assets/images also showed this same behavior when deployed. I had the following in markdown:

![Dashboard](/assets/images/screenshot-dashboard.png){ .lightbox  }

This worked running locally but when deployed to GH pages the repo name was missing in the URL so the image was broken.

Upgrading to v0.8.11 broke everything in assets.

Here are the relevant sections in docmd.config.json:

{
  "url": "https://alexhelms.github.io/some-project",
  "src": "docs",
  "out": "site",
  "base": "/",
}

Please let me know if you need any additional information, configs, etc. happy to help!

Steps to Reproduce

Upgrade a GH Pages deployed docmd project from v0.8.9 to v0.8.11.

Expected Behavior

Assets should be resolved correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions