Overview of jekyll-tabs-lib for docs.scala-lang.org
mainThe jekyll-tabs-lib is a Jekyll plugin used to create tabbed content interfaces on the docs.scala-lang.org website. It is a modified version of the original jekyll-tabs plugin, adapted specifically to match the existing HTML structure of the Scala documentation site.
Key differences from the original plugin include:
- ID Generation: Instead of using secure random UUIDs, the
tabsID is derived from the providednameparameter. - Custom Styling: The
tabsblock supports an optional second parameter for custom CSS classes. - Parameter Ordering: In the
tabblock, the tab label is the first parameter, followed by the name of the parenttabsblock. - Default Tab Behavior: The
tabblock includes adefaultTabattribute. If not explicitly set, the final tab in the group becomes the default.