Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-4315

YAML syntax highlighting in dark mode is partially broken

XMLWordPrintable

    • devex docs #222 Jul 21-Aug 11, devex docs #223 Aug 11-Sep 1
    • 3
    • ---
    • ---

      YAML syntax highlighting in dark mode is partially broken, due to a problem with the specific prism renderer.

      https://odo.dev/docs/user-guides/advanced/pushing-specific-files

      We could fix this by using a different dark theme, for example,

        darkTheme: require('prism-react-renderer/themes/oceanicNext')
      

      Or by adding a temporary CSS fix in src/css/custom.css:

      .token.atrule {
      	color: #c792ea;
      }
      

      Dark mode is probably the preferred reading mode, and better syntax highlighting would improve the user experience

              rhn-support-gmcgoldr Gabriel McGoldrick
              rhn-support-gmcgoldr Gabriel McGoldrick
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: