Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support metadata directory in data directory #5876

Closed
bpj opened this issue Nov 5, 2019 · 2 comments · Fixed by #7851
Closed

Support metadata directory in data directory #5876

bpj opened this issue Nov 5, 2019 · 2 comments · Fixed by #7851

Comments

@bpj
Copy link

bpj commented Nov 5, 2019

Since both templates and defaults can be placed in their respective $DATA_DIR/templates/ and $DATA_DIR/defaults/ why not also metadata files in $DATA_DIR/metadata/?

@tarleb
Copy link
Collaborator

tarleb commented May 5, 2021

Seems like a good idea! Should not be too difficult either, so I'm marking it as a "good first issue".

@evenbrenden
Copy link
Contributor

Hi, is anyone working on this? If not I'd like to take a stab at it.

evenbrenden added a commit to evenbrenden/pandoc that referenced this issue Jan 18, 2022
Metadata found in any YAML files under $DATADIR/metadata will be applied
for a conversion. These will not have precedence over metadata found in
files loaded using --metadata-file.

Issue jgm#5876
evenbrenden added a commit to evenbrenden/pandoc that referenced this issue Jan 18, 2022
TODO: Consider writing a command test

Metadata found in any YAML files under $DATADIR/metadata will be applied
for a conversion. These will not have precedence over metadata found in
files loaded using --metadata-file.

Issue jgm#5876
evenbrenden added a commit to evenbrenden/pandoc that referenced this issue Jan 18, 2022
Metadata found in any YAML files under $DATADIR/metadata will be applied
for conversions. These will not have precedence over metadata found in
files loaded using --metadata-file.

Issue jgm#5876
evenbrenden added a commit to evenbrenden/pandoc that referenced this issue Jan 19, 2022
If files specified with --metadata-file are not found in the working
directory, look in $DATADIR/metadata.

Closes jgm#5876.
evenbrenden added a commit to evenbrenden/pandoc that referenced this issue Jan 19, 2022
If files specified with --metadata-file are not found in the working
directory, look in $DATADIR/metadata.

Closes jgm#5876.
evenbrenden added a commit to evenbrenden/pandoc that referenced this issue Jan 21, 2022
If files specified with --metadata-file are not found in the working
directory, look in $DATADIR/metadata.

Closes jgm#5876.
evenbrenden added a commit to evenbrenden/pandoc that referenced this issue Jan 21, 2022
If files specified with --metadata-file are not found in the working
directory, look in $DATADIR/metadata.

Expose new readMetadataFile function from T.P.Class (PandocMonad)
[API change].

Expose new PandocCouldNotFindMetadataFileError constructor from
T.P.Error (PandocError) [API change].

Closes jgm#5876.
@jgm jgm closed this as completed in #7851 Jan 21, 2022
jgm pushed a commit that referenced this issue Jan 21, 2022
If files specified with `--metadata-file` are not found in the working
directory, look in `$DATADIR/metadata`.

Expose new `readMetadataFile` function from Text.Pandoc.Class
[API change].

Expose new `PandocCouldNotFindMetadataFileError` constructor for
`PandocError` from Text.Pandoc.Error [API change].

Closes #5876.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants