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

Document the difference between standalone and embeddable output (header_footer documentation) #171

Closed
graphitefriction opened this issue Oct 28, 2013 · 5 comments
Assignees

Comments

@graphitefriction
Copy link
Member

See the security section for the commented text

@mojavelinux
Copy link
Member

Emphasize strongly that the header ends after the first blank line and that document-level attributes (such as toc, toc-title, etc) must be defined in the document header. Several users have been confused when their document-level attribute doesn't work because they are putting a blank line before the attribute entry.

@jaredmorgs
Copy link
Member

@mojavelinux please assign this issue to me.

@mojavelinux
Copy link
Member

I don't think the topic of this issue is clear, so I will attempt to give it some direction.

We need to document the different between standalone output and embeddable output. This is controlled using the header_footer option (which can only be set from the CLI or API). When the header_footer is enabled, the converter generates a standalone document. When the header_footer is disabled, the converter generates an embeddable document.

Here's how I describe the difference between the two.

The standalone output provides the framing around the content, which includes styling and all the library integrations that the content needs to properly render (e.g., MathJax, the default stylesheet, etc). When you produce an embeddable document, you only get the body content. It's up to you to provide the framing, including the styling and library integrations.

@mojavelinux mojavelinux changed the title Add header and footer documentation Document the difference between standalone and embeddable output (header_footer documentation) Feb 29, 2016
@mojavelinux
Copy link
Member

It's also important to note that the default for the header_footer option is circumstance dependent.

  • asciidoctor CLI - enabled by default
  • asciidoctor API
    • enabled by default if writing to a file (to_file)
    • disabled by default otherwise
  • disabled on GitHub and anywhere else the content is being embedded

@mojavelinux
Copy link
Member

This information is now covered in these two sections:

Arguably, these sections could use a better home. But we can deal with that move in a separate issue.

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

No branches or pull requests

3 participants