Recent Commits to styleguide:gh-pages (6)

  • 15/10/2026 22:22

    verilog: fix naming-overview table and colliding heading anchors

    verilog: fix naming-overview table and colliding heading anchors
    
    Convert the Hoedown multiline naming-overview table into a standard single-line Markdown table so Kramdown renders it as an HTML table instead of a definition list. Disambiguate colliding heading anchors and wrap macro references in inline code spans.
  • 15/10/2026 6:19

    python: sync latest version

    python: sync latest version
    
    This includes good/bad code updates.
  • 15/10/2026 6:16

    verilog: use verilog code fence tag for Rouge highlighting

    verilog: use verilog code fence tag for Rouge highlighting
    
    Rouge on GitHub Pages only registers its SystemVerilog lexer under 'verilog' and does not recognize 'systemverilog', causing Kramdown to emit bare <pre><code> blocks without syntax or Good/Bad highlighting.
    
    Workaround for #1050
  • 15/10/2026 5:42

    js: migrate to markdown

    js: migrate to markdown
    
    Since the guide is frozen and is seeing no more internal updates,
    might as well convert it to markdown to drop HTML/CSS deps.
  • 15/10/2026 4:52

    htmlcss: migrate to markdown

    htmlcss: migrate to markdown
  • 15/10/2026 4:13

    add support for automatic TOC

    add support for automatic TOC
    
    This is a port of the existing styleguide.js auto TOC logic from the
    HTML guides to the newer markdown guides.  Rather than generate the
    entire TOC in JS, rely on GH's generator to create, and then process
    it slightly with minimal CSS+JS.
    
    While GH's builtin markdown renderer automatically creates sidepanel
    TOCs, the GH pages export does not.  Use the `* TOC {:toc}` form so
    the export automatically generates for us.  The downside is that it
    also shows up in GH's builtin markdown renderer, but it's only one
    line at the top, so it shouldn't be onerous.
    
    The CSS logic tweaks which levels are displayed in the generated
    TOC: we hide the single top-level, and omit levels deeper than 2.
    The JS logic puts the TOC into a <details> HTML element (internally
    called a zippy) so that it's collapsed by default.
    
    While the old auto TOC codebase supported "horizontal" and "vertical"
    formats, the new one only supports "vertical".  Most of our guides do
    not care and take the default since that's what internal & external
    markdown renderers use, but notably some are using horizontal still:
    * C++, HTML/CSS, Java, JS, TS: external, but not internal
    * shell: internal & external (via manual TOC)
    
    We'll leave the shell guide alone, but the rest will be switched over
    in the future as we regenerate things, and discuss with respective
    maintainers.

Log in