Skip to content

Commit

Permalink
docs(packages): Wrap documentation in document tag
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens authored and alerque committed Jul 16, 2020
1 parent ffad8c5 commit 01c62c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/frametricks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ return {
exports = {
breakFrameVertical = breakFrameVertical
}, documentation = [[
\begin{document}
As we mentioned in the first chapter, SILE uses frames as an indication
of where to put text onto the page. The \code{frametricks} package assists
package authors by providing a number of commands to manipulate frames.
Expand Down Expand Up @@ -293,5 +293,6 @@ similar applications handle floats, drop caps, tables and so on inside the
context of a content frame rather than by messing with the frames themselves.
If you feel tempted to play with \code{frametricks}, there’s almost always
a better way to achieve what you want without it.
\end{document}
]]
}
3 changes: 2 additions & 1 deletion packages/infonode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ return {
end
},
documentation = [[
\begin{document}
\note{This package is only for class designers.}
While typesetting a document, SILE first breaks a paragraph into lines, then
Expand Down Expand Up @@ -84,6 +85,6 @@ local runningHead = SILE.shaper.shape(refs[1] .. " - " .. refs[#refs])
SILE.typesetNaturally(rhFrame, runningHead);
\line
\end{verbatim}
\end{document}
]]
}

0 comments on commit 01c62c6

Please sign in to comment.