Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-5429

Ifeval directives do not render in downstream docs

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • Moderate

      The ifeval directives used in the upstream docs to distinguish upstream content vs. downstream content do not render downstream. Example:

      ifeval::["\{build}" == "upstream"]

      OVSDB_IMAGE=quay.io/podified-antelope-centos9/openstack-ovn-base:current-podified

      endif::[]

      ifeval::["\{build}" == "downstream"]

      OVSDB_IMAGE=registry.redhat.io/rhosp-dev-preview/openstack-ovn-base-rhel9:18.0

      endif::[]

       

      I determined that this can be fixed as a stop-gap downstream by using "ifdef" and "ifndef" directives instead. E.g.,

      ifdef::upstream[]

      ifndef::downstream[]

      However, this solution cannot be used upstream. We need a solution that works when copying files from upstream to downstream and vice versa.

            kgilliga@redhat.com Katie Gilligan
            kgilliga@redhat.com Katie Gilligan
            rhos-dfg-upgrades-squad-upgrades
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: