Skip to content

Excluding files/folders with dhall-docs #2159

Open
@SiriusStarr

Description

@SiriusStarr

(Apologies if there's a way to do this already that I'm just unaware of.)

The current behavior of dhall-docs is to produce documentation for every file with the *.dhall extension in its input path, including those that have no valid header comment in the dhall-docs fashion (the docs generated in such cases including just the literal source of the file).

In a current project, I have a large number of Dhall files that I don't want documentation generated from, as they just hold data (and have no header comment), but a number of files I absolutely do want documentation for. It would seem useful to have a way to exclude such files from doc generation.

A couple of potential options:

  • Opt-in: Ignore files that do not begin with a comment in the form {-| or --| (This, to me, seems like it should be the default behavior, but could have a command-line flag to turn it back on.)
  • Opt-out: Have a special header comment, like {-# NO_DHALL_DOCS #-}, that instructs dhall-docs to ignore the file (not a huge fan of this option, personall).
  • Explicit exclusion: Provide for an exclude list of some sort, whether via a file (.gitignore) or a command-line option (--exclude Data/*, probably the better choice)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions