Skip to content

Install

Install it...

logic-superfence is a custom formatter used by pymdown-extensions on mkdocs-material theme... so you just have to :

Installation
pip install logic-superfence

Create your mkdocs site

A minimal configuration could be this one :

mkdocs.yml
site_name: My awesome logic website
# Material theme : need to install mkdocs-material
theme:
  name: material 
  palette: 
    # Palette toggle for light mode
    - scheme: default
      toggle:
        icon: material/brightness-7 
        name: Switch to dark mode
    # Palette toggle for dark mode
    - scheme: slate
      toggle:
        icon: material/brightness-4
        name: Switch to light mode

# Logic SuperFence, need to install pymdown-extensions and logic-superfence
markdown_extensions:
  - pymdownx.superfences: 
      custom_fences:
        - name: logic    
          class: logic
          format: !!python/name:logic_superfence.formatter
          validator: !!python/name:logic_superfence.validator

# Javascript bundle of Logic Circuit Simulator
plugins:
  - logic