highmark-cli 1.3.1 → 1.3.3

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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
- const watchOperation = require("../operation/watch"),
3
+ const indexOptions = require("../indexOptions"),
4
+ watchOperation = require("../operation/watch"),
4
5
  copyFontsOperation = require("../operation/copyFonts"),
5
6
  markdownHTMLOperation = require("../operation/markdownHTML"),
6
7
  copyClientFilesOperation = require("../operation/copyClientFiles"),
@@ -25,6 +26,7 @@ function publishAction(port, watch, quietly, noClient, copyFonts, inputFileName,
25
26
  quietly,
26
27
  noClient,
27
28
  copyFonts,
29
+ indexOptions,
28
30
  inputFileName,
29
31
  copyClientFiles,
30
32
  projectDirectoryName
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+
3
+ const indexOptions = {
4
+ "phrases": [
5
+ "symbolic reasoning"
6
+ ],
7
+ "plurals": [
8
+ "grammar",
9
+ "language(s)"
10
+ ],
11
+ "acronyms": [
12
+ "CLI",
13
+ ],
14
+ "properNouns": [
15
+ "Occam"
16
+ ],
17
+ "ignoredWords": [
18
+ "a",
19
+ "all",
20
+ "also",
21
+ "an",
22
+ "and",
23
+ "another",
24
+ "approach",
25
+ "apt",
26
+ "are",
27
+ "as",
28
+ "associated",
29
+ "at",
30
+ "between",
31
+ "boils",
32
+ "book",
33
+ "but",
34
+ "called",
35
+ "cannot",
36
+ "companion",
37
+ "considerable",
38
+ "contents",
39
+ "controlled",
40
+ "covers",
41
+ "day",
42
+ "detail",
43
+ "detailed",
44
+ "distinguish",
45
+ "divers",
46
+ "down",
47
+ "encompasses",
48
+ "end",
49
+ "expert",
50
+ "explains",
51
+ "explanation",
52
+ "explanations",
53
+ "fact",
54
+ "florence",
55
+ "footnote",
56
+ "former",
57
+ "foundations",
58
+ "future",
59
+ "getting",
60
+ "goes",
61
+ "grips",
62
+ "has",
63
+ "have",
64
+ "here",
65
+ "how",
66
+ "i",
67
+ "ide",
68
+ "in",
69
+ "indeed",
70
+ "index",
71
+ "indexing",
72
+ "into",
73
+ "introduction",
74
+ "is",
75
+ "it",
76
+ "its",
77
+ "largely",
78
+ "least",
79
+ "limits",
80
+ "list",
81
+ "make",
82
+ "more",
83
+ "most",
84
+ "natural",
85
+ "near",
86
+ "nebulously",
87
+ "need",
88
+ "not",
89
+ "of",
90
+ "often",
91
+ "on",
92
+ "ordered",
93
+ "originally",
94
+ "own",
95
+ "paragraph",
96
+ "parts",
97
+ "possible",
98
+ "provide",
99
+ "purpose",
100
+ "range",
101
+ "reference",
102
+ "s",
103
+ "seemed",
104
+ "services",
105
+ "short",
106
+ "some",
107
+ "somewhat",
108
+ "started",
109
+ "subject",
110
+ "support",
111
+ "system",
112
+ "test",
113
+ "that",
114
+ "the",
115
+ "there",
116
+ "these",
117
+ "this",
118
+ "to",
119
+ "tried",
120
+ "underlying",
121
+ "unordered",
122
+ "use",
123
+ "useable",
124
+ "used",
125
+ "was",
126
+ "well",
127
+ "which",
128
+ "will",
129
+ "with",
130
+ "word"
131
+ ]
132
+ };
133
+
134
+ module.exports = indexOptions;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
- const { pathUtilities } = require("necessary");
4
- const { processingUtilities } = require("highmark-markdown");
3
+ const { pathUtilities } = require("necessary"),
4
+ { processingUtilities } = require("highmark-markdown");
5
5
 
6
6
  const importer = require("../importer");
7
7
 
@@ -56,6 +56,8 @@ function markdownHTMLOperation(proceed, abort, context) {
56
56
  importer,
57
57
  linesPerPage,
58
58
  contentsDepth,
59
+ nodeFromTokens,
60
+ tokensFromContent,
59
61
  charactersPerLine,
60
62
  divisionClassName
61
63
  });
@@ -13,9 +13,12 @@ function tokensFromContent(content) {
13
13
  return tokens;
14
14
  }
15
15
 
16
- function nodeFromTokens(tokens) {
17
- const startOfContent = true,
18
- startRule = markdownParser.getStartRule(),
16
+ function nodeFromTokens(tokens, startRuleName = null) {
17
+ const ruleMap = markdownParser.getRuleMap(),
18
+ startRule = (startRuleName !== null) ?
19
+ ruleMap[startRuleName] :
20
+ markdownParser.getStartRule(),
21
+ startOfContent = true,
19
22
  node = markdownParser.parse(tokens, startRule, startOfContent);
20
23
 
21
24
  if (node === null) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "highmark-cli",
3
3
  "author": "James Smith",
4
- "version": "1.3.1",
4
+ "version": "1.3.3",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/highmark-cli",
7
7
  "description": "Highmark's LIC tool.",
@@ -13,7 +13,7 @@
13
13
  "argumentative": "^2.0.28",
14
14
  "express": "^4.19.2",
15
15
  "highmark-client": "^0.0.98",
16
- "highmark-markdown": "^0.0.430",
16
+ "highmark-markdown": "^0.0.436",
17
17
  "lively-cli": "^2.0.65",
18
18
  "necessary": "^14.0.1",
19
19
  "occam-entities": "^1.0.112"