-
Notifications
You must be signed in to change notification settings - Fork 3
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
Styles for shell transcripts #24
Comments
Oooh oooh oooh there's a |
alaric-dotmesh
added a commit
that referenced
this issue
Jan 17, 2018
Make into shortcode |
When you've made a shortcode, I'll update the API docs to use it. |
Shortcode was buggy (Hugo issue, adds a rouge tag and cocks up formatting. Re-closing) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As a documentation author, I want to include transcripts of shell command sequences in documentation with highligthing of important parts, so I can demonstrate how things work directly.
The hugo syntax highlighter isn't the thing for this - a shell transcript is a mixture of shell commands and output from various things in various formats, so no one automatic highlighter can handle it. I'd like to be able to embed raw preformatted text and then manually emphasise parts of it.
hugo/content/api/_index.md
contains some examples of a proposed markup for this in the rawpre
blocks near the top. Providing CSS to make thosepre
s look like the highlighted content blocks, with a suitable highlight (background colour?) for theem
spans would probably do the trick. It might be nice to add a span class for user-entered text (eg, the typed commands) to distinguish them from command output, too?The text was updated successfully, but these errors were encountered: