Skip to content

Shortcode Improvements#289

Open
noah-severyn wants to merge 14 commits intoNAMTeam:mainfrom
noah-severyn:shortcode-improvements
Open

Shortcode Improvements#289
noah-severyn wants to merge 14 commits intoNAMTeam:mainfrom
noah-severyn:shortcode-improvements

Conversation

@noah-severyn
Copy link
Contributor

@noah-severyn noah-severyn commented Feb 7, 2026

Highlights:

  • Fixed a bug where changing the theme was not changing the bootstrap styles. Solves various visual bugs, especially in dark mode where some fonts and colors were hard to read, especially the breadcrumb nav at the top and the next/prev page buttons at the bottom.
  • Create new carousel shortcode, updated the CAN-AM page to use this element.
  • Moved hardcoded text out of shortcode definitions into i18n files for:feature-guide, docstatus, and compatibility-key
  • Expanded the compatibility-key shortcode to include the definitions for the intersection types (and updated all tech specs pages to use this updated component)
  • Tweak shortcode styles:
    • new menu-icon style. Stands out more against regular paragraph text. Preparing this for future updates - would like to automatically extract the icons and descriptions directly from the NAM dbpf files and have them looked up via the icon name. Much more sustainable long-term. image
    • new alert and docstatus style. With these shortcodes that derive from bootstrap alert styles, use the included bootstrap colors instead of hardcoded hex colors. Looks better in both light and dark mode. image
    • new feature-guide style. Name of page is also automatically pulled from the linked article.
image

The bootstrap theme was not changing to dark mode, resulting in various visual glitches (the font of the buttons to go to the next/prev page, background of the alerts, and probably more).
reduce border thickness and round the corners, give them a background color (using the bootstrap default colors), remove the monospaced font
Move text to i18n, update style slightly, remove the need for the mod argument to use the name of the linked page instead.
mainly makes it stand out a little more against the text. Light background with border, more padding, bigger title/caption. Ability to add an optional description added too
align with previous changes to the docstatus shortcode
If dark theme is preferred, also initialize bootstrap theme as dark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant