Skip to content

Create .documentationrc file to sort project settings #87

@anthonydillon

Description

@anthonydillon

When building documentation each project requires a number of flags to be set. For example:

documentation-builder --base-directory ../vanilla-brochure-theme/docs \
                      --site-root '/en/vanilla-brochure-theme/index' \
                      --output-path 'en/vanilla-brochure-theme' \
                      --template-path template.html \
                      --tag-manager-code 'GTM-K92JCQ'  \
                      --no-link-extensions \
                      --force

This is difficult to type/remember so the command is normally added to a scirpt like ./build-docs. This makes it difficult to modify the flags like changing the source-directory in a one off case.

I propose that the settings can be stored in a .documentationrc file which is committed to the project and is looked up when running documentation-builder. Therefore you only need to run documentation-builder in the project with overriding flags.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions