Skip to content

Make the absolute link prefix (site:) an input parameter #3

Open
@atteggiani

Description

@atteggiani

Overview

I recently came across this plugin as I need absolute links in a MkDocs website to resolve relative to the site_url.
The plugin works great, however, my website doesn't prefix absolute links with site:, but just uses a forward slash / as the prefix for absolute links (often used as absolute paths/links prefix).

I think it could be useful to make the site: prefix an input parameter that can be changed in the plugin configuration, so that users don't necessarily need to change all their absolute links structure to reflect the site: ... structure, but rather set their own prefix (in my case for example, /) to match their website (or their preferred syntax/structure).

Changes in this plugin

This would require minimal changes in this plugin source code, and the default value of the prefix input parameter could be set to site: so the new version would be completely back-compatible without issues.

If this suggestion is welcomed, I am happy to open a PR for it.

Thank you.

Cheers
Davide

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions