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

FEATURE: Figure out how to use Mkdocs "admonitions" together with pandoc #554

Closed
sappelhoff opened this issue Aug 2, 2020 · 5 comments
Closed
Labels
formatting Aesthetics and formatting of the spec help wanted Extra attention is needed

Comments

@sappelhoff
Copy link
Member

We could use the admonitions package for Mkdocs to create "notes" or "warning", etc. in our spec like this:

image

I think this would be desirable from a formatting perspective. It can help us to draw more attention to some items, or provide extra information in boxes.

One immediate example I see would be a small "warning" box under the paragraph discussing anonymization of dates --> The warning would make users aware of potential issues with the FIF format (see #538)

Problems

This Mkdocs package and the involved syntax would probably (???) not translate well to PDF when we render the specification using pandoc. With the help of the set of tools written by @Arshitha --> https://github.com/bids-standard/bids-specification/tree/master/pdf_build_src

Solution

--> yet to be found.

If somebody agrees that "admonitions" would be helpful and is interested in enabling that for us: Please give it a shot!

If you (dear reader) disagree with "admonitions" being helpful for specification readers, please say so.

@sappelhoff sappelhoff added help wanted Extra attention is needed formatting Aesthetics and formatting of the spec labels Aug 2, 2020
@oesteban
Copy link
Collaborator

jupyter-book uses pyppeteer to generate the PDF version.

It basically runs the HTML inside a headless Chromium browser and calls the print function.

The admonition boxes are very nicely rendered, but I'm very unsure of what would happen with the formatting overall.

@oesteban
Copy link
Collaborator

That said, I'm also unsure of how important is that the PDF version is nicely structured as a document instead of a direct print-out of the html.

@Remi-Gau
Copy link
Collaborator

I think we might want to be conservative when messing up the pdfs: see some of the comments regarding how the pdf can be used "THE" reference for people in industry: #135

@oesteban
Copy link
Collaborator

Maybe we should rescue Microsoft's chm format :D

@Remi-Gau
Copy link
Collaborator

I think that it is fair to close this one for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatting Aesthetics and formatting of the spec help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants