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

Debug mode in the document attribute #211

Closed
Intelligent2013 opened this issue Jun 16, 2023 · 4 comments
Closed

Debug mode in the document attribute #211

Intelligent2013 opened this issue Jun 16, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@Intelligent2013
Copy link
Contributor

Currently mn2pdf supports the debug mode (generates intermediate XSL-FO, IF, config files) via CLI parameter --debug, -d.
But there isn't possibility to pass this parameter via metanorma command line:

bundle exec metanorma -t iso -x pdf rice-en.final.adoc 

To do: support debug mode via adoc document attribute:

:presentation-metadata-pdfdebug: true

If Metanorma XML contains:

<presentation-metadata><pdfdebug>true</pdfdebug></presentation-metadata>

then it's equal --debug.

@Intelligent2013 Intelligent2013 added the enhancement New feature or request label Jun 16, 2023
@Intelligent2013 Intelligent2013 self-assigned this Jun 16, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in Metanorma Jun 16, 2023
@ronaldtse
Copy link
Contributor

@Intelligent2013 isn't this supposed to be a Metanorma CLI option instead of a document attribute? The PDF debug function is clearly a runtime issue not a document issue. I'm not sure if we want to pollute the document with debug options.

@Intelligent2013
Copy link
Contributor Author

@ronaldtse you're right. Just I would like to minimize the change requests for Metanorma CLI. Ok, I'll add the ticket into the metanorma-cli repository.

@Intelligent2013
Copy link
Contributor Author

Added: metanorma/metanorma-cli#308

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Metanorma Jun 16, 2023
@ronaldtse
Copy link
Contributor

@ronaldtse you're right. Just I would like to minimize the change requests for Metanorma CLI. Ok, I'll add the ticket into the metanorma-cli repository.

Thank you, I totally understand but I want us to do things the right way, not the convenient way for internal administration reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants