Skip to content

Some of the problems I have encountered in using doks #401

Answered by h-enk
KevinBlandy asked this question in Support
Discussion options

You must be logged in to vote

Hello @KevinBlandy,

Ad 1) Could not reproduce it with a local production build of KevinBlandy/springcloud.io. Try running the build again.

Ad 2) You're missing the img-fluid class on images — see also: Responsive images. Simplest way to add the class is to use the image markdown render hook. Add ./layouts/default/markup/render-image.html w/ something like:

<img class="img-fluid" src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} />

Note, Doks also comes w/ image shortcodes

Ad 3) You forgot to configure higlight.js. So, add e.g. java + xml:

import java from 'highlight.js/lib/languages/java';

hljs.registerLanguage('java', java);
hljs.registerLang…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@KevinBlandy
Comment options

Answer selected by KevinBlandy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants