Skip to content

Remove hard-coded pdoc __version__ from title of module list page #839

@mrossinek

Description

@mrossinek

I was reviewing my custom jinja2 templates the other day and found that since #288 I could remove almost all of my customizations. Inline with other configuration options that have been added since then also being exposed via CLI arguments (e.g. #350), I would like to make a case for exposing a --title CLI argument to enable easier configuration of this line:

{% block title %}Module List – pdoc {{ __version__ }}{% endblock %}

Otherwise, any project which does not use a custom index.html.jinja2 template will claim to contain the module list of pdoc with the __version__ used to generate the docs, which is obviously not correct. I would suggest to outright remove this part of the title entirely and default to simply using Module List. Whether the rest of the string is desirable enough to add a new CLI option for configuring this I think can be up for debate.

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