@healthcatalyst/catalyst-docfx-template 1.0.160 → 1.0.162

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcatalyst/catalyst-docfx-template",
3
- "version": "1.0.160",
3
+ "version": "1.0.162",
4
4
  "license": "MIT",
5
5
  "description": "A DocFX Template patching the Default template.",
6
6
  "publishConfig": {
package/styles/main.css CHANGED
@@ -52,7 +52,7 @@ strong {
52
52
  article h1:first-of-type {
53
53
  border-bottom: 1px solid #E1E3E3;
54
54
  padding-bottom: 30px;
55
- padding-right: 200px;
55
+ padding-right: 20px;
56
56
  margin-top: 15px;
57
57
  }
58
58
 
package/styles/main.js CHANGED
@@ -174,13 +174,16 @@ function replaceTokensInNode(node, replacements) {
174
174
  }
175
175
  }
176
176
 
177
+ function getSiteRootPath() {
178
+ var pathSegments = window.location.pathname.split('/').filter(Boolean);
179
+ return pathSegments.length ? '/' + pathSegments[0] + '/' : '/';
180
+ }
181
+
177
182
  // Replace {{ keys }} with plain-text values in sourcedContent/terms.json at directory root
178
183
 
179
184
  var terms = (function () {
180
185
  var json = null;
181
- // Get base path from docfx meta tag - handles any nesting depth and deployment paths
182
- var baseHref = document.querySelector('meta[property="docfx:rel"]')?.getAttribute('content') || '../';
183
- var termsPath = baseHref + "sourcedContent/terms.json";
186
+ var termsPath = getSiteRootPath() + "sourcedContent/terms.json";
184
187
  $.ajax({
185
188
  async: true,
186
189
  global: false,
@@ -208,9 +211,7 @@ var terms = (function () {
208
211
 
209
212
  var messages = (function () {
210
213
  var json = null;
211
- // Get base path from docfx meta tag
212
- var baseHref = document.querySelector('meta[property="docfx:rel"]')?.getAttribute('content') || '../';
213
- var messagesPath = baseHref + "sourcedContent/messages.json";
214
+ var messagesPath = getSiteRootPath() + "sourcedContent/messages.json";
214
215
 
215
216
  $.ajax({
216
217
  async: true,