@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 +40 -44
- package/healthcatalyst-catalyst-docfx-template-1.0.58.tgz +0 -0
- package/layout/_master.tmpl +2 -2
- package/package.json +1 -1
- package/partials/{sql-server.tmpl.partial → dosClassic.tmpl.partial} +1 -1
- package/partials/{snowflake.tmpl.partial → dosCloud.tmpl.partial} +1 -1
- package/partials/dosVersion.tmpl.partial +7 -0
- package/styles/main.css +1 -1
- package/styles/main.js +5 -5
- package/healthcatalyst-catalyst-docfx-template-1.0.55.tgz +0 -0
- package/partials/version.tmpl.partial +0 -7
package/README.md
CHANGED
|
@@ -1,54 +1,50 @@
|
|
|
1
|
-
# docfx-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
+
- [Gulp](https://gulpjs.com/docs/en/getting-started/quick-start/)
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm install --global gulp-cli
|
|
17
|
+
```
|
|
40
18
|
|
|
41
|
-
|
|
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
|
-
|
|
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
|
-
|
|
48
|
-

|
|
40
|
+
All website artifacts are in the `_site`
|
|
49
41
|
|
|
50
|
-
|
|
42
|
+
## Development
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
cd src/catalyst-docfx-template
|
|
46
|
+
gulp start
|
|
47
|
+
```
|
|
51
48
|
|
|
52
|
-
|
|
49
|
+
Your browser should automatically open <http://localhost:3000/>
|
|
53
50
|
|
|
54
|
-

|
|
Binary file
|
package/layout/_master.tmpl
CHANGED
package/package.json
CHANGED
package/styles/main.css
CHANGED
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 + "
|
|
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
|
-
|
|
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 + "
|
|
174
|
+
url: baseUrl + "sourcedContent/messages.json",
|
|
175
175
|
dataType: "json",
|
|
176
176
|
success: function (data) {
|
|
177
177
|
json = data;
|
|
Binary file
|