@healthcatalyst/catalyst-docfx-template 1.0.54 → 1.0.57

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.
@@ -36,8 +36,8 @@
36
36
  {{>partials/statusMessage}}
37
37
  {{/_disableStatusMessage}}
38
38
  {{/if}}
39
- {{#if version}}
40
- {{>partials/version}}
39
+ {{#if dosVersion}}
40
+ {{>partials/dosVersion}}
41
41
  {{/if}}
42
42
  {{#if wide}}
43
43
  <div class="col-sm-12">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcatalyst/catalyst-docfx-template",
3
- "version": "1.0.54",
3
+ "version": "1.0.57",
4
4
  "license": "MIT",
5
5
  "description": "A DocFX Template patching the Default template.",
6
6
  "publishConfig": {
@@ -2,5 +2,5 @@
2
2
 
3
3
  </span>
4
4
  <span id="version-bump">
5
- DOS for SQL Server
5
+ DOS Classic
6
6
  </span>
@@ -2,5 +2,5 @@
2
2
 
3
3
  </span>
4
4
  <span id="version-bump">
5
- DOS for Snowflake
5
+ DOS Cloud
6
6
  </span>
@@ -0,0 +1,7 @@
1
+ <div id="tag">
2
+ Applies to:
3
+ <span id="dosVersion">
4
+ {{#if dosVersion.dosCloud}}{{>partials/dosCloud}}{{/if}}
5
+ {{#if dosVersion.dosClassic}}{{>partials/dosClassic}}{{/if}}
6
+ </span>
7
+ </div>
package/styles/main.css CHANGED
@@ -1641,4 +1641,132 @@ a.anchor {
1641
1641
  pre {
1642
1642
  /* Avoid pushing up the copy buttons. */
1643
1643
  /* margin: 0; */
1644
+ }
1645
+
1646
+ /* This code hides cross references between PDF pages. Corresponding code (.web-only) that hides cross references in the web app is in /templates/pdf/styles/main.css. */
1647
+ .pdf-only {
1648
+ display: none;
1649
+ }
1650
+
1651
+ /*
1652
+ .sidetoc, .sidefilter {
1653
+ margin-top: 56px;
1654
+ }
1655
+ */
1656
+
1657
+ .statusMessage {
1658
+ background-color: #aae2c8;
1659
+ font-size: 13.5px;
1660
+ font-weight: 600;
1661
+ padding-top: 15px;
1662
+ padding-bottom: 20px;
1663
+ padding-right: 15px;
1664
+ margin-top: -16px;
1665
+ margin-right: 16px;
1666
+ margin-left: -40px;
1667
+ margin-bottom: 10px;
1668
+ padding-left: 5em;
1669
+ text-indent: -5em;
1670
+ }
1671
+
1672
+ #statusIcon {
1673
+ font-size: 24px;
1674
+ margin-left: 100px;
1675
+ transform: translate(0, 5px);
1676
+ margin-right: -36px;
1677
+ }
1678
+
1679
+ .toc-deprecated:before {
1680
+ content: 'Deprecated' !important;
1681
+ background-color: #d7dde4;
1682
+ color: #333;
1683
+ border-radius: 3px;
1684
+ font-size: 9px;
1685
+ text-transform: uppercase;
1686
+ font-weight: 600;
1687
+ letter-spacing: 0.15px;
1688
+ margin-left: 0px;
1689
+ margin-top: 4px;
1690
+ margin-bottom: 4px;
1691
+ margin-right: 4px;
1692
+ padding: 3px 7px 3px 10px;
1693
+ position: relative;
1694
+ top: -1px;
1695
+ }
1696
+
1697
+ /* "Page has moved/is obsolete" banner at top of page */
1698
+
1699
+ #nextWarning {
1700
+ background-color: #ffdbb7;
1701
+ font-size: 12px;
1702
+ font-weight: 400;
1703
+ height: 35px;
1704
+ }
1705
+
1706
+ #nextWarning p {
1707
+ text-align: center;
1708
+ margin: auto;
1709
+ font-size: 13.5px;
1710
+ font-weight: 600;
1711
+ }
1712
+
1713
+ #nextWarningToc {
1714
+ margin-top: 56px;
1715
+ }
1716
+
1717
+ /* Which DOS versions apply to page */
1718
+
1719
+ #tag {
1720
+ font-size: 13.5px;
1721
+ font-weight: 600;
1722
+ padding-top: 15px;
1723
+ padding-bottom: 15px;
1724
+ padding-right: 15px;
1725
+ padding-left: 15px;
1726
+ margin-top: -16px !important;
1727
+ margin-left: -50px;
1728
+ margin-bottom: 10px !important;
1729
+ margin-right: 15px;
1730
+ text-indent: 4em;
1731
+ background: #d6f3ff;
1732
+ }
1733
+
1734
+ #dosVersion {
1735
+ padding-left: 12px;
1736
+ font-weight: 400;
1737
+ }
1738
+
1739
+ #success-checkmark {
1740
+ background: #00aeff;
1741
+ color: white;
1742
+ padding: 1px 4px;
1743
+ border-radius: 50%;
1744
+ padding-right: 1px;
1745
+ margin-right: 8px;
1746
+ }
1747
+
1748
+ #version-bump {
1749
+ padding-right: 15px;
1750
+ }
1751
+
1752
+ /* Styles a message in a line anywhere in the document with {{ term }} - see main.js */
1753
+
1754
+ .message {
1755
+ font-size: 13.5px;
1756
+ font-weight: 600;
1757
+ padding-top: 8px;
1758
+ padding-bottom: 8px;
1759
+ padding-left: 15px;
1760
+ margin-top: 35px;
1761
+ margin-bottom: -5px;
1762
+ text-indent: 2em;
1763
+ background: #d6f3ff;
1764
+ display: inline-block;
1765
+ width: 100%;
1766
+ }
1767
+
1768
+ .message > .fa:before {
1769
+ margin-left: -52px;
1770
+ padding-right: 10px;
1771
+ color: #00aeff;
1644
1772
  }
package/styles/main.js CHANGED
@@ -136,46 +136,64 @@ copyCode.on('success', function(event) {
136
136
 
137
137
  // Replace {{ keys }} with plain-text values in sourcedContent/terms.json at directory root
138
138
 
139
- var terms = (function() {
139
+ var terms = (function () {
140
140
  var json = null;
141
+ var baseUrl = window.location.origin;
142
+ console.log(baseUrl);
141
143
  $.ajax({
142
- async: false,
143
- global: false,
144
- url: '../../sourcedContent/terms.json',
145
- dataType: 'json',
146
- success: function(data) {
147
- json = data;
148
- }
144
+ async: false,
145
+ global: false,
146
+ url: baseUrl + "/sourcedContent/terms.json",
147
+ dataType: "json",
148
+ success: function (data) {
149
+ json = data;
150
+ },
149
151
  });
152
+
150
153
  for (let [key, value] of Object.entries(json)) {
151
- // console.log(`${key}: ${value}`);
152
- var toReplace = '{{ ' + key + ' }}';
153
- var replaceWith = value;
154
- document.body.innerHTML = document.body.innerHTML.replace(toReplace, replaceWith);
154
+ console.log(`${key}: ${value}`);
155
+ var toReplace = "{{ " + key + " }}";
156
+ var replaceWith = value;
157
+ document.body.innerHTML = document.body.innerHTML.replace(
158
+ toReplace,
159
+ replaceWith
160
+ );
155
161
  }
156
162
  return terms;
157
- })();
158
-
159
- // Replace {{ keys }} with icon and message banner from sourcedContent/messages.json at directory root
160
-
161
- var messages = (function() {
163
+ })();
164
+
165
+ // Replace {{ keys }} with icon and message banner from sourcedContent/messages.json at directory root
166
+
167
+ var messages = (function () {
162
168
  var json = null;
169
+ var baseUrl = window.location.origin;
170
+ console.log(baseUrl)
163
171
  $.ajax({
164
- async: false,
165
- global: false,
166
- url: '../../sourcedContent/messages.json',
167
- dataType: 'json',
168
- success: function(data) {
169
- json = data;
170
- }
172
+ async: false,
173
+ global: false,
174
+ url: baseUrl + "/sourcedContent/messages.json",
175
+ dataType: "json",
176
+ success: function (data) {
177
+ json = data;
178
+ },
171
179
  });
172
180
  for (var k in json) {
173
- var o = json[k];
174
- // console.log(o.message);
175
- // console.log(o.icon);
176
- var toReplace = '{{ ' + k + ' }}';
177
- var replaceWith = '<p class="message">' + '<i class="fa ' + o.icon + '"></i>' + o.message + '</p>';
178
- document.body.innerHTML = document.body.innerHTML.replace(toReplace, replaceWith);
181
+ var o = json[k];
182
+ // console.log(o.message);
183
+ // console.log(o.icon);
184
+ var toReplace = "{{ " + k + " }}";
185
+ var replaceWith =
186
+ '<p class="message">' +
187
+ '<i class="fa ' +
188
+ o.icon +
189
+ '"></i>' +
190
+ o.message +
191
+ "</p>";
192
+ document.body.innerHTML = document.body.innerHTML.replace(
193
+ toReplace,
194
+ replaceWith
195
+ );
179
196
  }
180
197
  return messages;
181
- })();
198
+ })();
199
+
@@ -1,7 +0,0 @@
1
- <div id="tag">
2
- Applies to:
3
- <span id="version">
4
- {{#if version.snowflake}}{{>partials/snowflake}}{{/if}}
5
- {{#if version.sql-server}}{{>partials/sql-server}}{{/if}}
6
- </span>
7
- </div>