Skip to content

Add configuration file #193

@fabiosangregorio

Description

@fabiosangregorio

Running pdoc with all the config parameters can be a bit of a hassle, especially when developing the docs and experimenting with parameters tweaks.

E.g.

pdoc --html --output-dir="docs/" --template-dir="docs/templates" --config show_source_code=False --force .

It would be nice if we could have a configuration file such as .pdoc, maybe in a .ini style, where the configuration could reside.

E.g.

[pdoc]
html = True
output_dir = "docs/"
template_dir = "docs/templates"
show_source_code = False
force = True

This would result in the much more compact CLI command pdoc .

In my idea, any explicitly set CLI config parameters would override the .pdoc file parameters.

I would also add the option to specify a config file with pdoc --config setup.cfg . so that it can be possible to set the configuration in a global project config file.

This idea is heavily inspired by what pydeps is currently handling configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis is not a (valid) bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions