JSON Schema nav tab + dynamic Prism.js source loading for FHIR logical model pages#197
JSON Schema nav tab + dynamic Prism.js source loading for FHIR logical model pages#197
Conversation
…ering Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
|
I want the pretty prick to utilized colors based on the type of source code is being displaced. JSON or others. What libraries do we have that would be compatible with current JavaScript deployment? @copilot |
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Added highlight.js 11.9.0 (commit
The Here's the JSON Schema tab with syntax highlighting active: |
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
|
I expected to a CA Json schema tab here |
|
@copilot see previous |
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Fixed in commit The fix uses |
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
... Fixed in commit
Once the CI build completes, dynamic loading will be active on the XML, JSON, and TTL tabs at: |
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
|
@copilot are there directives in the IG publisher that will prevent the pretty print XML Json and TTL from being generated? |
The IG Publisher supports IG parameters to suppress entire format pages: parameters:
excludexml: true
excludejson: true
excludettl: trueBut these suppress the entire format tab/page, not just the static pretty-print block within it. There's no IG Publisher parameter to generate the format tab without the inline The TemplateRenderer.java code you linked (e.g. Our current post-processing approach (replacing those
The FHIR IG Publisher does not have a directive to suppress just the pretty-printed source blocks while keeping the format pages ( The closest options in [parameters]
generate-xml = false
generate-json = false
generate-turtle = falseBut these eliminate the pages entirely, not just the inline pretty-print. The code at TemplateRenderer.java#L775 generates the structural spec/template view of StructureDefinitions (the element-by-element view with type links), which is different from the Our post-processing approach (replacing static |
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
|
@copilot shows "Loading XML source…" but it never loads. |
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Fixed in commit Changed to |
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
|
…ighlighting Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
... Fixed in commit The new pattern across all three call sites:
|
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
✅ Deployment SuccessfulBranch:
Deployment completed successfully! The site is now live at the URL above. |
|
it is now loading dynamically but linking to fhir data types/documentation does not work. @copilot i would have epxected same linking as those produced by IG publisher. please revirew IG publisher logic for how it add links (i shared a TTL library before) |
|
@copilot see previosu |
…ot class=\"ttl\" Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|

_generate_schema_view_pagegenerates companion.schema.json.htmlwith Prism.js highlighting_src_for_exthelper mapsFoo.profile.xml.html→Foo.xmlallow_classlessmode for<pre><code>without class attributecheckActive()now loads immediately on standalone format pagesPrism.highlightElement()withPrism.highlight()+setTimeout(fn,0)(async, no Web Worker crash)FORMATSupdated to 3-tuple(prism_class, label, file_ext); TTL now usesprism_class='turtle'(the class the FHIR IG Publisher emits on<pre>blocks) while file extension staysttlsudo chown -R "$USER:$USER" ./outputbefore post-processing${{ github.head_ref || github.ref_name }}Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.