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

Add a command line flag to change the extension of the files generated by the HTML backend #3366

Closed
ice1000 opened this issue Nov 4, 2018 · 2 comments

Comments

@ice1000
Copy link
Member

@ice1000 ice1000 commented Nov 4, 2018

@vlopezj said in #3313,

I can think of --html-output-extension option, which by default would have the value html, but can be changed to md, or to anything else. An output extension of - could mean outputting to stdout.
For usability, we can also have a --markdown command line flag which would be an alias for the conjunction of flags --html --html-highlight=code --html-output-extension=md. (Another possibility would be for Agda to give sensible default values of --html-highlight and --html-output-extension depending on the extension of the input file(s?); but this seems harder both to document and to implement.).
For even more flexibility, instead of the --html-output-extension option, one can have an --html-output-file option, with which a pattern for filenames can be specified. The default would be --html-output-file=%.html, and the user can give --html-output-file=%.md instead. Output to stdout would be --html-output-file=-, and concatenating all the output to a single file of the user's choosing could be --html-output-file=my-blog-post.md.

I think it'll be a useful feature. Opening an issue so I can refer to when committing.

@ice1000 ice1000 self-assigned this Nov 4, 2018
@ice1000 ice1000 added this to the 2.6.0 milestone Nov 4, 2018
@ice1000
Copy link
Member Author

@ice1000 ice1000 commented Nov 5, 2018

Also, it'll be good to make html-dir, html-highlight, html-output-extension only usable with html flag.

ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 5, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 5, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 6, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
… `Interface`

Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
… `Interface`

Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
… `Interface`

Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 7, 2018
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 8, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 8, 2018
… `Interface`

Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 8, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 8, 2018
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 8, 2018
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 8, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 8, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 9, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 9, 2018
… `Interface`

Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 9, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 9, 2018
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 9, 2018
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 9, 2018
Signed-off-by: ice1000 <ice1000kotlin@foxmail.com>
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 9, 2018
ice1000 added a commit to Agda-zh/agda that referenced this issue Nov 9, 2018
ice1000 added a commit that referenced this issue Nov 9, 2018
[ #3366 ]  File extension for output of HTML backend
@ice1000
Copy link
Member Author

@ice1000 ice1000 commented Nov 12, 2018

Closed by #3367

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

Successfully merging a pull request may close this issue.

None yet
2 participants