@healthcatalyst/catalyst-docfx-template 1.0.55 → 1.0.58

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)
@@ -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.55",
3
+ "version": "1.0.58",
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
@@ -1731,7 +1731,7 @@ pre {
1731
1731
  background: #d6f3ff;
1732
1732
  }
1733
1733
 
1734
- #version {
1734
+ #dosVersion {
1735
1735
  padding-left: 12px;
1736
1736
  font-weight: 400;
1737
1737
  }
package/styles/main.js CHANGED
@@ -139,11 +139,11 @@ 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,
146
- url: baseUrl + "/sourcedContent/terms.json",
146
+ url: baseUrl + "sourcedContent/terms.json",
147
147
  dataType: "json",
148
148
  success: function (data) {
149
149
  json = data;
@@ -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,11 +167,11 @@ 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,
174
- url: baseUrl + "/sourcedContent/messages.json",
174
+ url: baseUrl + "sourcedContent/messages.json",
175
175
  dataType: "json",
176
176
  success: function (data) {
177
177
  json = data;
@@ -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>