opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

Switch tags to the hugo shortcode style

Open mdhayter opened this issue 8 years ago • 7 comments

Suggested to use Hugo shortcode style for the new tags.

https://gohugo.io/content-management/shortcodes/

mdhayter avatar Nov 06 '18 10:11 mdhayter

It seems nice how hugo shortcodes differentiate between cases where the result will be markdown and where it will be html. But on the other hand I see an argument that it's exposing details you might not really care about as a documentation author and maybe it's fine just having the semantics depending on the shortcode/macro used. e.g. {{ include_mkd foo.mkd }} vs {{ include_html foo.html }}. If we decided we didn't care about syntax to denote whether the result is processed by the markdown generator or included directly, then maybe {{ directive }} is fine.

asb avatar Nov 06 '18 14:11 asb

Somewhat related, adopting something like the kramdown syntax extension for attaching CSS classes to block-level elements might be nice.

asb avatar Nov 07 '18 14:11 asb

Is this completed? What is the target for this issue, all our .md specs? In which case it seems like it is.

sjgitty avatar Jan 08 '19 01:01 sjgitty

I think it would still be worth sitting down and reviewing the current syntax we're using, and whether we can use to something that's closer to that used in other projects. This remains a TODO item, though isn't particularly urgent (we have something that works, and updating things later isn't particularly onerous).

asb avatar Jan 09 '19 13:01 asb

  • @gkelly Is this handled by https://github.com/lowRISC/opentitan/pull/638? If not, + Garret for visibility/inputs.

aytong avatar Oct 30 '19 23:10 aytong

Yep, this switchover is being handled by #638.

gkelly avatar Oct 31 '19 00:10 gkelly

Thanks for the confirmation. Please close this once #638 goes in.

aytong avatar Oct 31 '19 00:10 aytong