Skip to content

Support full URL when linking to file within code block #801

@imfing

Description

@imfing

Discussed in #799

Originally posted by Aerosand August 27, 2025
https://imfing.github.io/hextra/versions/latest/docs/guide/syntax-highlighting/#link-to-file

The way to link a file in a code block is not convenient now when I write my own docs.

The base_url attribute provides a base URL that will be combined with the file name to generate a link.

Some file url may not follow this kind of format.

Is it more general to use the file's full url directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions