FHIR Chat · Strangeness in top navigation · IG creation

Stream: IG creation

Topic: Strangeness in top navigation


view this post on Zulip Nick George (Jan 20 2022 at 19:17):

Hello - any idea why this is happening? Where are these options pulled from? image.png

view this post on Zulip Nick George (Jan 20 2022 at 19:19):

Oh found where the options are pulled from (menu.xml). Still curious about the CSS issue though!

view this post on Zulip Nick George (Jan 20 2022 at 19:24):

From the HTML, it seems a zero-width space is being inserted: Screen-Shot-2022-01-20-at-11.24.02-AM.png

view this post on Zulip Nick George (Jan 20 2022 at 19:26):

in this case our code is just

<ul xmlns="http://www.w3.org/1999/xhtml" class="nav navbar-nav">
  <li><a href="index.html">IG Home</a></li>
  <li><a href="guidance.html">Guidance</a></li>
  <li><a href="artifacts.html">Artifacts</a></li>
  <li><a href="examples.html">Examples</a></li>
  <li><a href="downloads.html">Downloads</a></li>
</ul>

view this post on Zulip Jose Costa Teixeira (Jan 20 2022 at 19:37):

that usually happens when you don't have a page artifacts.html

view this post on Zulip Jose Costa Teixeira (Jan 20 2022 at 19:37):

i.e. if the link is broken

view this post on Zulip Nick George (Jan 20 2022 at 19:40):

Hmm the link works fine

view this post on Zulip Nick George (Jan 20 2022 at 19:41):

It's listed as

          {
            "nameUrl": "artifacts.html",
            "title": "Artifacts",
            "generation": "generated"
          },

in ig.json, and just uses the stock artifacts.html as created by the ig publisher

view this post on Zulip Jose Costa Teixeira (Jan 20 2022 at 19:42):

what does your includes/menu.xml look like?

view this post on Zulip Nick George (Jan 20 2022 at 19:42):

that's the html snipped I posted in https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/Strangeness.20in.20top.20navigation/near/268744556

view this post on Zulip Nick George (Jan 20 2022 at 19:44):

Artifacts is the only page that's not generated from markdown or html... not sure if "generated"is the right generation code to use there

view this post on Zulip Jose Costa Teixeira (Jan 20 2022 at 19:45):

ah that

view this post on Zulip Jose Costa Teixeira (Jan 20 2022 at 19:46):

html

view this post on Zulip Jose Costa Teixeira (Jan 20 2022 at 19:46):

it's confusing but the page is generated by the template so the publisher see it as just another html

view this post on Zulip Nick George (Jan 20 2022 at 19:47):

Ah ok. And then it seems the artifacts page itself generates its own navbar? and doesn't pull in menu.xml? is there a way to make that consistent?

view this post on Zulip Nick George (Jan 20 2022 at 19:48):

hmm changing to html didn't fix it :(

view this post on Zulip Nick George (Jan 20 2022 at 19:49):

oh hold on that might have been a mistake

view this post on Zulip Nick George (Jan 20 2022 at 19:51):

Yup that worked (and fixed the other question about the artifacts navbar). Thanks! (Some kind of error message would be nice rather than rendering wrong!)

view this post on Zulip Nick George (Jan 20 2022 at 19:52):

Final question - how do I set the images on the left/right of the top, as is done in https://www.hl7.org/fhir/us/core/?

view this post on Zulip Nick George (Jan 20 2022 at 19:55):

I looked for the alt text/image url in https://github.com/HL7/US-Core but didn't find it

view this post on Zulip Lloyd McKenzie (Jan 20 2022 at 20:14):

When you have a menu that looks like that, it means that QA is inserting an anchor point into your menu because of a QA issue. Look at your QA...

view this post on Zulip Jose Costa Teixeira (Jan 20 2022 at 21:43):

@Nick George see if this helps http://build.fhir.org/ig/FHIR/ig-guidance/template.html

view this post on Zulip Nick George (Jan 20 2022 at 22:04):

awesome, thanks


Last updated: Apr 12 2022 at 19:14 UTC