Skip to content

v13.0.2 introduced bug in detecting static assets  #78

@dereknola

Description

@dereknola

Initial checklist

Affected packages and versions

13.0.2

Link to runnable example

https://github.com/rancher/rke2-docs/actions/runs/11658790536/job/32458348363?pr=277

Steps to reproduce

Prior to 13.02, usage of assets under the root/static/ folder via Docusarous Static Assests support https://docusaurus.io/docs/static-assets did not trigger broken links.

Expected behavior

For example, https://github.com/rancher/rke2-docs/blob/main/docs/security/fips_support.md?plain=1#L7, which points to a PDF, works correctly on the actual website, https://docs.rke2.io/security/fips_support. This is because Docusarous will

Docusaurus will try to look for it in both static/img/docusaurus.png and public/img/docusaurus.png. The link will then be converted to a require() call instead of staying as a URL.

The remarks-validate-links should not identify this link as broken.

Actual behavior

The remarks-validate-links identify this link as broken.

Affected runtime and version

[email protected]

Affected package manager and version

yarn version v1.22.22

Affected OS and version

No response

Build and bundle tools

Docusaurus

Metadata

Metadata

Assignees

No one assigned

    Labels

    🤞 phase/openPost is being triaged manually

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions