You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(where there could be, say, data-language-name and data-languages-name, one for the URL stuff -- key, one for the hiding/showing -- key+otherlangs 🤔) and
<bodyclass="index" data-languages="{{ with .Site.Params.language_tabs }}[{{ range $i,$e := . }}{{- if $i -}}, {{ end -}}{{ printf " %q " $e.key }}{{end}}]{{ end }}">
(that'd use key and otherlangs in my "proposal").
The text was updated successfully, but these errors were encountered:
I'm not sure how generally usefull such a feature would be (I understand that you need it), but it should be possible to do the mods in this theme. Your thoughts above looks sensible.
Thanks for creating this useful theme!
I have a question that might be a limitation of Slatedocs itself.
I'd like to be able to define tabs that show several languages.
For instance, for documenting a web API that has an R client providing parsed output
My workaround is to define the second tab for "JavaScript" because highlighting shell/JSON/XML as if it were JavaScript does not look too horrible.
Any insight on how to tweak this theme to be able to use something like
is welcome. 🙂 I guess I'd need to tinker with https://github.com/bep/docuapi/blob/master/assets/js/slate/app/_lang.js and
docuapi/layouts/_default/baseof.html
Line 25 in fc2d3f5
docuapi/layouts/_default/baseof.html
Line 12 in fc2d3f5
The text was updated successfully, but these errors were encountered: