Sha256: 5facee71c01bf1e59f7c2db89eadbc06380db15101fead02bc0bc2662ace3c7e

Contents?: true

Size: 953 Bytes

Versions: 8

Compression:

Stored size: 953 Bytes

Contents

:page-permalink: /docs/theme/config/switchers
:page-switcher: user-os
= Configure Content Switchers

Content switchers are a means of showing and hiding specific content on a page.
The content being switched can come in groups (where switching one _on_ turns others _off_), or a switcher can perform a single show/hide toggle of a group of content.

== Example Switcher

The next line is rendered differently depending on which button is selected in the page's *switcher to the right*.

[.os-win]
--
This content is for Windows Only.
--

[.os-nix]
--
This content is for Linux Only.
--

[.os-mac]
--
This content is for MacOS Only.
--

Switching can even happen inline, with a term like [.os-win]*Microsoft* [.os-mac]*Apple* [.os-nix]*open source*.

== Use Cases

Aside from enabling users to choose their platform, as with operating systems in the above example, switchers can be used for for [.term]*patch-revision handling*.

== Toggle Configuration

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
asciidocsy-0.3.0 _docs/topics/config-switcher_r.adoc
asciidocsy-0.3.0.pre.rc4 _docs/topics/config-switcher_r.adoc
asciidocsy-0.3.0.pre.rc3 _docs/topics/config-switcher_r.adoc
asciidocsy-0.3.0.pre.rc2 _docs/topics/config-switcher_r.adoc
asciidocsy-0.3.0.pre.rc1 _docs/topics/config-switcher_r.adoc
asciidocsy-jekyll-theme-0.3.0.pre.rc2 _docs/topics/config-switcher_r.adoc
asciidocsy-jekyll-theme-0.3.0.pre.rc1 _docs/topics/config-switcher_r.adoc
asciidocsy-jekyll-theme-0.3.0.pre.dev _docs/topics/config-switcher_r.adoc