How to use stylesheet in YARD #182
heronshoes
started this conversation in
Show and tell
Replies: 1 comment
-
How about upstreaming this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using many
@example
in YARD document of RedAmber, butcode
is shown by proportional fonts by default configuration. How can I do to apply monospace fonts for them?Register custom template path to override Template
I registered a template path to
.yardopts
.And added a custom css below to
doc/yard-templates/default/fulldoc/html/css/common.css
.Result:

note: The custom templates must be in the same directory structure as builtin YARD templates.
YARD document: https://rubydoc.info/gems/yard/file/docs/Templates.md
Beta Was this translation helpful? Give feedback.
All reactions