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

Bring back datafile type autodetection #40

Open
janbrohl opened this issue Jan 12, 2020 · 4 comments
Open

Bring back datafile type autodetection #40

janbrohl opened this issue Jan 12, 2020 · 4 comments

Comments

@janbrohl
Copy link
Collaborator

janbrohl commented Jan 12, 2020

Usage would be easier if at least some file types can be autdetected.
For this, the datatemplate directive could be refreshed/reused.
One option would be to handle autodetection there and then process specialized directives.

@janbrohl
Copy link
Collaborator Author

janbrohl commented Jan 15, 2020

How should we handle options like :header: that dont make sense for all file types?
I would suggest accepting unused options and print a warning.

@janbrohl
Copy link
Collaborator Author

#41 could make this easier.

@dhellmann
Copy link
Member

Maybe the directive that automatically detects the file format doesn't provide all of the options for all of the formats? So if you want to use an advanced option you use the directive that is specifically for that format?

@janbrohl
Copy link
Collaborator Author

These are the 2 options and to me, both look valid. Why not do both?
One possibility would be taking

.. datatemplate::

for the accepting approach (compatible) and

.. datatemplate:auto::

for the strict approach with minmal options.

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

No branches or pull requests

2 participants