copied from https://github.com/scala/docs.scala-lang/tree/main/_plugins/jekyll-tabs-lib originally sourced from https://github.com/Ovski4/jekyll-tabs.
changes:
- template.erb adapted to match the pre-existing tab html structure for docs.scala-lang.org
tabs
do not use secure random uuid as the id, thetabs
name parameter is used instead.- for the
tabs
block, add an optional secondclass='foo bar'
parameter to allow custom classes for the tabs. - for the
tab
block, reorder the parameters: the tab label comes first, followed by the name of the parenttabs
. - addition of a third
defaultTab
attribute fortab
, which defaults to the final tab if not set.