@healthcatalyst/catalyst-docfx-template 1.0.56 → 1.0.59

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/README.md CHANGED
@@ -1,54 +1,50 @@
1
- # docfx-tmpl
2
- A DocFX Template patching the Default template.
3
-
4
- Supported DocFX version: [v2.17.4](https://github.com/dotnet/docfx/releases/tag/v2.17.4)
5
-
6
- ## Changes from Default Template
7
- - Full Width (uses container-fluid instead of container).
8
- - Affix sidebar styled like Bootstrap Documentation.
9
- - Thinner TOC toggle button on mobiles.
10
- - Hides the **IN THIS ARTICLE** heading above sidebar.
11
- - Tabular views for Namespace.
12
- - Pretty tables for Class view.
13
- - Collapsible sections in API documentation.
14
- - Round Buttons for View-Source and Edit.
15
- - Different colors.
16
-
17
- ## How to use
18
- The template is contained in the source folder.
19
-
20
- **Clone or Download**
21
- In a terminal, run: `git clone https://github.com/MathewSachin/docfx-tmpl.git`
22
-
23
- **Apply Template**
24
- Use `default, <relative path to src folder of this template>`
25
-
26
- In docfx.json (showing only relevant portion):
27
-
28
- ```json
29
- {
30
- "build": {
31
- "template": [
32
- "default",
33
- "docfx-tmpl/src"
34
- ]
35
- }
36
- }
1
+ # catalyst-docfx-template
2
+
3
+ ## Prerequisites
4
+
5
+ - [NodeJs](https://nodejs.org/en/download/)
6
+ - [DocFX](https://dotnet.github.io/docfx/tutorial/docfx_getting_started.html)
7
+ - [Angular 10+ cli](https://angular.io/cli)
8
+
9
+ ```sh
10
+ npm install -g @angular/cli
37
11
  ```
38
12
 
39
- **OR**
13
+ - [Gulp](https://gulpjs.com/docs/en/getting-started/quick-start/)
14
+
15
+ ```sh
16
+ npm install --global gulp-cli
17
+ ```
40
18
 
41
- In Command-line:
19
+ ## Build Navbar angular universal element
42
20
 
21
+ **Do this before publishing or development!!**
22
+
23
+ ```sh
24
+ cd src/homepage/ClientApp
25
+ npm install
26
+ npm run build:docs-navbar
43
27
  ```
44
- docfx -t default,docfx-tmpl/src
28
+
29
+ An Angular js file will be published to `homepage/ClientApp/src/assets/docs-navbar.js` and `catalyst-docfx-template/templates/catalyst/styles/docs-navbar.js`
30
+
31
+ ## Publishing
32
+
33
+ Publish the docfx site
34
+
35
+ ```sh
36
+ cd src/catalyst-docfx-template
37
+ docfx build
45
38
  ```
46
39
 
47
- ## ScreenShots
48
- ![Large](screenshots/1.png)
40
+ All website artifacts are in the `_site`
49
41
 
50
- ![Small](screenshots/2.png)
42
+ ## Development
43
+
44
+ ```sh
45
+ cd src/catalyst-docfx-template
46
+ gulp start
47
+ ```
51
48
 
52
- ![XS](screenshots/3.png)
49
+ Your browser should automatically open <http://localhost:3000/>
53
50
 
54
- ![Navbar](screenshots/4.png)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcatalyst/catalyst-docfx-template",
3
- "version": "1.0.56",
3
+ "version": "1.0.59",
4
4
  "license": "MIT",
5
5
  "description": "A DocFX Template patching the Default template.",
6
6
  "publishConfig": {
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
@@ -139,7 +139,7 @@ copyCode.on('success', function(event) {
139
139
  var terms = (function () {
140
140
  var json = null;
141
141
  var baseUrl = window.location.origin;
142
- console.log(baseUrl);
142
+ // console.log(baseUrl);
143
143
  $.ajax({
144
144
  async: false,
145
145
  global: false,
@@ -151,7 +151,7 @@ var terms = (function () {
151
151
  });
152
152
 
153
153
  for (let [key, value] of Object.entries(json)) {
154
- console.log(`${key}: ${value}`);
154
+ // console.log(`${key}: ${value}`);
155
155
  var toReplace = "{{ " + key + " }}";
156
156
  var replaceWith = value;
157
157
  document.body.innerHTML = document.body.innerHTML.replace(
@@ -167,7 +167,7 @@ var terms = (function () {
167
167
  var messages = (function () {
168
168
  var json = null;
169
169
  var baseUrl = window.location.origin;
170
- console.log(baseUrl)
170
+ // console.log(baseUrl)
171
171
  $.ajax({
172
172
  async: false,
173
173
  global: false,