@cparra/apexdocs 2.3.0 → 2.5.0

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.
Files changed (53) hide show
  1. package/README.md +48 -113
  2. package/docs/{Misc → API}/SampleClassWithoutModifier.md +0 -0
  3. package/docs/Main/GroupedClass.md +10 -0
  4. package/docs/{Sample-Classes → Main}/SampleClass.md +5 -1
  5. package/docs/README.md +4 -5
  6. package/docs/index.html +22 -0
  7. package/examples/force-app/main/default/classes/GroupedClass.cls +1 -1
  8. package/examples/force-app/main/default/classes/SampleClass.cls +1 -1
  9. package/lib/application/Apexdocs.js +2 -1
  10. package/lib/application/Apexdocs.js.map +1 -1
  11. package/lib/cli/generate.js +9 -3
  12. package/lib/cli/generate.js.map +1 -1
  13. package/lib/model/markdown-file.js +1 -0
  14. package/lib/model/markdown-file.js.map +1 -1
  15. package/lib/model/markdown-generation-util/method-declaration-util.js +7 -3
  16. package/lib/model/markdown-generation-util/method-declaration-util.js.map +1 -1
  17. package/lib/service/state.d.ts +9 -0
  18. package/lib/service/state.js +20 -0
  19. package/lib/service/state.js.map +1 -0
  20. package/lib/settings.d.ts +4 -1
  21. package/lib/settings.js +14 -2
  22. package/lib/settings.js.map +1 -1
  23. package/lib/transpiler/markdown/class-file-generatorHelper.d.ts +1 -0
  24. package/lib/transpiler/markdown/class-file-generatorHelper.js +28 -3
  25. package/lib/transpiler/markdown/class-file-generatorHelper.js.map +1 -1
  26. package/lib/transpiler/markdown/docsify/docsify-docs-processor.d.ts +2 -0
  27. package/lib/transpiler/markdown/docsify/docsify-docs-processor.js +3 -0
  28. package/lib/transpiler/markdown/docsify/docsify-docs-processor.js.map +1 -1
  29. package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.d.ts +2 -0
  30. package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.js +3 -0
  31. package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.js.map +1 -1
  32. package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.d.ts +6 -0
  33. package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.js +14 -0
  34. package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.js.map +1 -0
  35. package/lib/transpiler/processor-type-transpiler.d.ts +2 -0
  36. package/lib/transpiler/processor-type-transpiler.js.map +1 -1
  37. package/lib/transpiler/transpiler.js +2 -0
  38. package/lib/transpiler/transpiler.js.map +1 -1
  39. package/package.json +2 -2
  40. package/src/application/Apexdocs.ts +9 -1
  41. package/src/cli/generate.ts +9 -3
  42. package/src/model/markdown-file.ts +1 -0
  43. package/src/model/markdown-generation-util/method-declaration-util.ts +6 -1
  44. package/src/service/state.ts +24 -0
  45. package/src/settings.ts +18 -3
  46. package/src/transpiler/markdown/class-file-generatorHelper.ts +30 -3
  47. package/src/transpiler/markdown/docsify/docsify-docs-processor.ts +5 -0
  48. package/src/transpiler/markdown/jekyll/jekyll-docsProcessor.ts +5 -0
  49. package/src/transpiler/markdown/plain-markdown/plain-docsProcessor.ts +12 -0
  50. package/src/transpiler/processor-type-transpiler.ts +4 -0
  51. package/src/transpiler/transpiler.ts +2 -0
  52. package/docs/Misc/SampleClass.md +0 -168
  53. package/docs/Utils/GroupedClass.md +0 -10
package/README.md CHANGED
@@ -68,9 +68,14 @@ public class MyClass {
68
68
  }
69
69
  ```
70
70
 
71
+ * Apex docs blocks can now all be in a single line
72
+ * Support for grouping blocks of related code within a class
73
+ * Support for HTML tags
74
+ * And more!
75
+
71
76
  ### Demo
72
77
 
73
- ApexDocs currently supports generating markdown files for Jekyll and Docsify sites.
78
+ ApexDocs currently supports generating markdown files for Jekyll and Docsify sites, as well as generating plain markdown files.
74
79
 
75
80
  ### In the wild
76
81
 
@@ -81,13 +86,13 @@ ApexDocs currently supports generating markdown files for Jekyll and Docsify sit
81
86
 
82
87
  Demo
83
88
 
84
- - [Docsify](https://cesarparra.github.io/apexdocs-docsify-example/)
89
+ - [Docsify](https://cesarparra.github.io/apexdocs/)
85
90
 
86
91
  ### [Jekyll](https://jekyllrb.com/)
87
92
 
88
93
  Demo
89
94
 
90
- - [Jekyll](https://cesarparra.github.io/apexdocs/)
95
+ - [Jekyll](https://cesarparra.github.io/apexdocs-docsify-example/)
91
96
 
92
97
  ## Installation
93
98
 
@@ -109,117 +114,33 @@ apexdocs-generate
109
114
 
110
115
  The CLI supports the following parameters:
111
116
 
112
- | Parameter | Alias | Description | Default | Required |
113
- |-------------------|-------|--------------------------------------------------------------------------------------------------------------------------|-------------------------------------|----------|
114
- | --sourceDir | -s | The directory location which contains your apex .cls classes. | N/A | Yes |
115
- | --targetDir | -t | The directory location where documentation will be generated to. | `docs` | No |
116
- | --recursive | -r | Whether .cls classes will be searched for recursively in the directory provided. | `true` | No |
117
- | --scope | -p | A list of scopes to document. Values should be separated by a space, e.g --scope public private | `global namespaceaccessible public` | No |
118
- | --targetGenerator | -g | Define the static file generator for which the documents will be created. Currently supports jekyll and docsify. | `jekyll` | No |
119
- | --indexOnly | N/A | Defines whether only the index file should be generated. | `false` | No |
120
- | --configPath | -c | (Only versions 1.X) The path to the JSON configuration file that defines the structure of the documents to docGenerator. | N/A | No |
121
- | --group | -o | (Only versions 1.X) Define whether the generated files should be grouped by the @group tag on the top level classes. | `true` | No |
122
-
123
- #### Configuration File
124
-
125
- You can optionally specify the path to a configuration JSON file through the `--configPath` parameter. This let's you
126
- have some additional control over the content outputs.
127
-
128
- The configuration file allows you to specify the following:
129
-
130
- _Note_: Everything in the configuration file is optional. When something is not specified, the default will be used.
131
-
132
- `root` (String)
133
-
134
- Default: None
135
-
136
- Allows you to specify the root directory for where the files are being generated. This can be helpful when embedding the
137
- generated docs into an existing site so that the links are generated correctly.
138
-
139
- `defaultGroupName`
140
-
141
- Default: Miscellaneous
142
-
143
- Defines the `@group` name to be used when a file does not specify it.
144
-
145
- `sourceLanguage`
146
-
147
- Default: None
148
-
149
- Defines the name of the language that will be used when generating `@example` blocks. Use this when you are interested
150
- in using syntax highlighting for your project.
151
-
152
- Even though the source code material for which documentation is generated is always `Apex`, generally you will be able
153
- to use a syntax highlighter that recognizes `java` source code, so set this value to `java` in those cases.
154
-
155
- `home` (Object)
156
-
157
- Gives you control over the home page.
158
-
159
- `home.header` (String)
160
-
161
- Default: None
162
-
163
- Allows you to embed custom content into your home page by using the `header` property to point to the file which
164
- contents will be added to the top of the generated home page.
165
-
166
- Specify the path with the content that you want to embed.
167
-
168
- `content` (Object)
117
+ | Parameter | Alias | Description | Default | Required |
118
+ |--------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------|-----------------|----------|
119
+ | --sourceDir | -s | The directory location which contains your apex .cls classes. | N/A | Yes |
120
+ | --targetDir | -t | The directory location where documentation will be generated to. | `docs` | No |
121
+ | --recursive | -r | Whether .cls classes will be searched for recursively in the directory provided. | `true` | No |
122
+ | --scope | -p | A list of scopes to document. Values should be separated by a space, e.g --scope public private | `global` | No |
123
+ | --targetGenerator | -g | Define the static file generator for which the documents will be created. Currently supports: `jekyll`, `docsify`, and `plain-markdown`. | `jekyll` | No |
124
+ | --indexOnly | N/A | Defines whether only the index file should be generated. | `false` | No |
125
+ | --defaultGroupName | N/A | Defines the `@group` name to be used when a file does not specify it. | `Miscellaneous` | No |
169
126
 
170
- Gives you control over the content pages.
171
-
172
- `content.includeAuthor` (Boolean)
173
-
174
- Default: false
175
-
176
- Whether the `@author` tag should be used to add the file's author to the page.
177
-
178
- `content.includeDate` (Boolean)
179
-
180
- Default: false
181
-
182
- Whether the `@date` tag should be used to add the file's date to the page.
183
-
184
- `content.startingHeadingLevel` (Number)
185
-
186
- Default: 1
187
-
188
- The starting H tag level for the document. Each title will use this as the starting point to docGenerator the
189
- appropriate `<h#>` tag. For example, if set to 1, the class' file name at the top of the file will use an `<h1>` tag,
190
- the `Properties` title will be `<h2>`, each property name will be an `<h3>`, etc.
191
-
192
- ```
193
- {
194
- "root": "root-directory",
195
- "defaultGrouName": "api",
196
- "sourceLanguage": "java",
197
- "home": {
198
- "header": "./examples/includes/header.md"
199
- },
200
- "content": {
201
- "startingHeadingLevel": 1,
202
- "includeAuthor": true,
203
- "includeDate": true
204
- }
205
- }
206
- ```
207
127
 
208
128
  ### Importing to your project
209
129
 
210
- If you are just interested in the Apex parsing capabilities, you can use the standalone [Apex Reflection Library](https://www.npmjs.com/package/@cparra/apex-reflection)
130
+ If you are just interested in the Apex parsing capabilities, you can use the
131
+ standalone [Apex Reflection Library](https://www.npmjs.com/package/@cparra/apex-reflection)
211
132
  which is what gets used by this library behind the scenes to generate the documentation files.
212
133
 
213
134
  ## Documentation Format
214
135
 
215
- ApexDocs picks up blocks of comments throughout your `.cls` files. The block must begin with `/**` and span through
216
- multiple lines, ending with `*/`.
136
+ ApexDocs picks up blocks of comments throughout your `.cls` files. The block must begin with `/**` and end with `*/`.
217
137
 
218
138
  ### Documenting Classes
219
139
 
220
140
  The following tags are supported on the class level:
221
141
 
222
- **Note** Any custom generated tag is also supported. Custom tags can be added with at symbol (`@`) followed by the name of the tag. For example `@custom-tag`
142
+ **Note** Any custom generated tag is also supported. Custom tags can be added with at symbol (`@`) followed by the name
143
+ of the tag. For example `@custom-tag`
223
144
 
224
145
  | Tag | Description |
225
146
  |----------------|--------------------------------------------------------------------------------------------------------------------------------------------|
@@ -300,7 +221,8 @@ The following tags are supported on the method level:
300
221
  * @example
301
222
  * Object result = SampleClass.call('exampleAction');
302
223
  */
303
- public static Object call(String action) {}
224
+ public static Object call(String action) {
225
+ }
304
226
  ```
305
227
 
306
228
  ### Grouping Declarations Within A Class
@@ -310,6 +232,7 @@ groups of constants that should be grouped together because they share a common
310
232
  of constants representing the possible values for different picklists.)
311
233
 
312
234
  You can group things together within a class by using the following syntax:
235
+
313
236
  ```apex
314
237
  // @start-group Group Name or Description
315
238
  public static final String CONSTANT_FOO = 'Foo';
@@ -320,16 +243,19 @@ public static final String CONSTANT_BAR = 'Bar';
320
243
  Groups of members are displayed together under their own subsection after its name or description.
321
244
 
322
245
  Some notes about grouping:
246
+
323
247
  * This is only supported on classes, NOT enums and interfaces
324
248
  * Supports
325
- * Properties
326
- * Fields (variables and constants)
327
- * Constructors
328
- * Methods
329
- * BUT only members of the same type are grouped together. For example,
330
- if you have a group that contains properties and methods the properties will be grouped together under Properties -> Group Name, and the methods will be grouped together under Methods -> Group Name
249
+ * Properties
250
+ * Fields (variables and constants)
251
+ * Constructors
252
+ * Methods
253
+ * BUT only members of the same type are grouped together. For example,
254
+ if you have a group that contains properties and methods the properties will be grouped together under Properties ->
255
+ Group Name, and the methods will be grouped together under Methods -> Group Name
331
256
  * Does not support inner types (inner classes, interfaces, and enums)
332
- * It is necessary to use `// @end-group` whenever a group has been started, otherwise a parsing error will be raised for that file.
257
+ * It is necessary to use `// @end-group` whenever a group has been started, otherwise a parsing error will be raised for
258
+ that file.
333
259
 
334
260
  ### Inline linking
335
261
 
@@ -349,7 +275,7 @@ Apexdocs recognizes 2 different syntax when linking files:
349
275
  * @param param1 An <<ExampleClass>> instance. Can also do {@link ExampleClass}
350
276
  * @return The result of the operation.
351
277
  */
352
- public static Object class(ExampleClass param1) {
278
+ public static Object class (ExampleClass param1) {
353
279
  ```
354
280
 
355
281
  ---
@@ -358,10 +284,13 @@ Email addresses can also be inlined linked by using the `{@email EMAIL_ADDRESS}`
358
284
 
359
285
  ### HTML support
360
286
 
361
- For the most part all HTML is sanitized. But there are some tags are allowed to have for the possibility of better styling long text.
362
- - Allowed tags are: `br`, `p`, `ul`, and `li`
287
+ For the most part all HTML is sanitized. But there are some tags are allowed to have for the possibility of better
288
+ styling long text.
289
+
290
+ - Allowed tags are: `br`, `p`, `ul`, and `li`
363
291
 
364
292
  Example
293
+
365
294
  ```apex
366
295
  /**
367
296
  * @description <p>This is a paragraph</p>
@@ -371,9 +300,15 @@ Example
371
300
  * <li>This is another list item</li>
372
301
  * </ul>
373
302
  */
374
- class MyClass {}
303
+ class MyClass {
304
+ }
375
305
  ```
376
306
 
377
307
  ## Typescript
378
308
 
379
309
  ApexDocs provides all necessary type definitions.
310
+
311
+ ---
312
+
313
+ ## 1.X
314
+ Looking for documentation for version 1.X? Please refer to its [branch](https://github.com/cesarParra/apexdocs/tree/1.x)
File without changes
@@ -0,0 +1,10 @@
1
+ # GroupedClass
2
+
3
+ Uses a block style apex doc
4
+
5
+
6
+ **Group** Main
7
+
8
+
9
+ **Test Class** [SampleClass](/Main/SampleClass.md)
10
+
@@ -9,7 +9,7 @@
9
9
  This is a class description. This class relates to [SampleInterface](/Sample-Interfaces/SampleInterface.md) But this [ClassThatDoesNotExist](ClassThatDoesNotExist) does not exist. You can also link using this syntax [SampleInterface](/Sample-Interfaces/SampleInterface.md)
10
10
 
11
11
 
12
- **Group** Sample Classes
12
+ **Group** Main
13
13
 
14
14
 
15
15
  **CustomAnnotation** A Custom annotation
@@ -29,6 +29,7 @@ This is a class description. This class relates to [SampleInterface](/Sample-Int
29
29
  Constructs a SampleClass without any arguments. This relates to [SampleInterface](/Sample-Interfaces/SampleInterface.md)
30
30
 
31
31
  ###### Throws
32
+
32
33
  |Exception|Description|
33
34
  |---|---|
34
35
  |`ExcName`|some exception|
@@ -52,6 +53,7 @@ SampleClass sampleInstance = new SampleClass();
52
53
  Constructs a SampleClass with an argument.
53
54
 
54
55
  ###### Parameters
56
+
55
57
  |Param|Description|
56
58
  |---|---|
57
59
  |`argument1`|Argument1 definition|
@@ -92,6 +94,7 @@ This is a String property.
92
94
  Executes commands based on the passed in argument.
93
95
 
94
96
  #### Parameters
97
+
95
98
  |Param|Description|
96
99
  |---|---|
97
100
  |`argument1`|Argument1 to debug|
@@ -118,6 +121,7 @@ System.debug(result);
118
121
  Something here
119
122
 
120
123
  #### Parameters
124
+
121
125
  |Param|Description|
122
126
  |---|---|
123
127
 
package/docs/README.md CHANGED
@@ -1,17 +1,16 @@
1
1
  # Classes
2
- ## Utils
2
+ ## Main
3
3
 
4
- ### [GroupedClass](/Utils/GroupedClass.md)
4
+ ### [GroupedClass](/Main/GroupedClass.md)
5
5
 
6
6
  Uses a block style apex doc
7
- ## Sample Classes
8
7
 
9
- ### [SampleClass](/Sample-Classes/SampleClass.md)
8
+ ### [SampleClass](/Main/SampleClass.md)
10
9
 
11
10
  This is a class description. This class relates to [SampleInterface](/Sample-Interfaces/SampleInterface.md) But this [ClassThatDoesNotExist](ClassThatDoesNotExist) does not exist. You can also link using this syntax [SampleInterface](/Sample-Interfaces/SampleInterface.md)
12
11
  ## Miscellaneous
13
12
 
14
- ### [SampleClassWithoutModifier](/Misc/SampleClassWithoutModifier.md)
13
+ ### [SampleClassWithoutModifier](/API/SampleClassWithoutModifier.md)
15
14
 
16
15
 
17
16
  ## Sample Interfaces
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Document</title>
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
+ <meta name="description" content="Description">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
9
+ <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
10
+ </head>
11
+ <body>
12
+ <div id="app"></div>
13
+ <script>
14
+ window.$docsify = {
15
+ name: '',
16
+ repo: ''
17
+ }
18
+ </script>
19
+ <!-- Docsify v4 -->
20
+ <script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
21
+ </body>
22
+ </html>
@@ -1,6 +1,6 @@
1
1
  /**********************************************************
2
2
  Uses a block style apex doc
3
- @group Utils
3
+ @group Main
4
4
  @test-class {@link SampleClass}
5
5
  ***********************************************************/
6
6
  public class GroupedClass {
@@ -2,7 +2,7 @@
2
2
  * @description This is a class description. This class relates to {@link SampleInterface}
3
3
  * But this {@link ClassThatDoesNotExist} does not exist.
4
4
  * You can also link using this syntax <<SampleInterface>>
5
- * @group Sample Classes
5
+ * @group Main
6
6
  * @CustomAnnotation A Custom annotation
7
7
  * @author Cesar Parra
8
8
  * @see SampleInterface
@@ -26,7 +26,8 @@ class Apexdocs {
26
26
  const filteredTypes = manifest.filteredByAccessModifierAndAnnotations(settings_1.Settings.getInstance().scope);
27
27
  types_repository_1.TypesRepository.getInstance().populate(filteredTypes);
28
28
  logger_1.Logger.clear();
29
- logger_1.Logger.logSingle(`Parsed ${filteredTypes.length} files`, false, 'green', false);
29
+ logger_1.Logger.logSingle(`Filtered ${manifest.types.length - filteredTypes.length} file(s) based on scope: ${settings_1.Settings.getInstance().scope}`, false, 'green', false);
30
+ logger_1.Logger.logSingle(`Creating documentation for ${filteredTypes.length} file(s)`, false, 'green', false);
30
31
  const processor = settings_1.Settings.getInstance().typeTranspiler;
31
32
  transpiler_1.default.generate(filteredTypes, processor);
32
33
  const generatedFiles = processor.fileBuilder().files();
@@ -1 +1 @@
1
- {"version":3,"file":"Apexdocs.js","sourceRoot":"","sources":["../../src/application/Apexdocs.ts"],"names":[],"mappings":";;;AAAA,kEAA6D;AAC7D,wDAA2D;AAC3D,6DAAuF;AACvF,2CAAwC;AACxC,kEAA6D;AAC7D,8CAAkD;AAClD,0CAAuC;AACvC,yDAAkD;AAClD,wDAAoD;AACpD,gEAA4D;AAC5D,uDAA+C;AAG/C;;GAEG;AACH,MAAa,QAAQ;IACnB;;OAEG;IACH,MAAM,CAAC,QAAQ;QACb,eAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAC9B,MAAM,UAAU,GAAG,iCAAc,CAAC,YAAY,CAAC,IAAI,+BAAiB,EAAE,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,iCAAc,CAAC,IAAI,sBAAa,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAE3F,MAAM,aAAa,GAAW,QAAQ,CAAC,sCAAsC,CAAC,mBAAQ,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC;QAC5G,kCAAe,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QACtD,eAAM,CAAC,KAAK,EAAE,CAAC;QAEf,eAAM,CAAC,SAAS,C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C,UAAsB,EAAoB,EAAE;;IAC1E,MAAM,MAAM,GAAG,yBAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAClD,IAAI,MAAM,CAAC,KAAK,EAAE;QAChB,eAAM,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,QAAQ,oBAAoB,MAAA,MAAM,CAAC,KAAK,0CAAE,OAAO,EAAE,CAAC,CAAC;KACjF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
@@ -34,13 +34,18 @@ const argv = yargs.options({
34
34
  type: 'string',
35
35
  alias: 'g',
36
36
  default: 'jekyll',
37
- choices: ['jekyll', 'docsify'],
38
- describe: 'Define the static file generator for which the documents will be created. Currently supports jekyll, and docsify.',
37
+ choices: ['jekyll', 'docsify', 'plain-markdown'],
38
+ describe: 'Define the static file generator for which the documents will be created. Currently supports jekyll, docsify, and plain markdown.',
39
39
  },
40
40
  indexOnly: {
41
41
  type: 'boolean',
42
42
  default: false,
43
- describe: 'Defines whether only the index file should be generated.',
43
+ describe: 'Defines whether only the index file should be generated.',
44
+ },
45
+ defaultGroupName: {
46
+ type: 'string',
47
+ default: 'Miscellaneous',
48
+ describe: 'Defines the @group name to be used when a file does not specify it.',
44
49
  },
45
50
  }).argv;
46
51
  settings_1.Settings.build({
@@ -50,6 +55,7 @@ settings_1.Settings.build({
50
55
  outputDir: argv.targetDir,
51
56
  targetGenerator: argv.targetGenerator,
52
57
  indexOnly: argv.indexOnly,
58
+ defaultGroupName: argv.defaultGroupName,
53
59
  });
54
60
  Apexdocs_1.Apexdocs.generate();
55
61
  //# sourceMappingURL=generate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../src/cli/generate.ts"],"names":[],"mappings":";;;AACA,+BAA+B;AAE/B,0CAAyD;AACzD,sDAAmD;AAEnD,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC;IACzB,SAAS,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,KAAK,EA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,CAAC,QAAQ,EAAE,CAAC"}
@@ -37,6 +37,7 @@ class MarkdownFile extends file_1.File {
37
37
  this.addBlankLine();
38
38
  }
39
39
  initializeTable(...headers) {
40
+ this.addBlankLine();
40
41
  this._contents += '|';
41
42
  headers.forEach((header) => {
42
43
  this._contents += header + '|';
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-file.js","sourceRoot":"","sources":["../../src/model/markdown-file.ts"],"names":[],"mappings":";;;AAAA,iCAA8B;AAC9B,kGAAyF;AAEzF,MAAa,YAAa,SAAQ,WAAI;IACpC,aAAa;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IAED,QAAQ,CAAC,IAAY,EAAE,KAAK,GAAG,CAAC;QAC9B,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;YAC9B,KAAK,IAAI,GAAG,CAAC;SACd;QAED,KAAK,IAAI,GAAG,CAAC;QACb,KAAK,IAAI,IAAI,CAAC;QACd,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;QACxB,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAEM,OAAO,CAAC,IAAY,EAAE,UAAU,GAAG,IAAI;QAC5C,IAAI,GAAG,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,GAAG,YAAY,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC9C,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAClC,CAAC;IAED,cAAc;QACZ,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;QACxB,MAAM,cAAc,GAAG,MAAM,CAAC;QAC9B,IAAI,CAAC,SAAS,IAAI,cAAc,CAAC;QACjC,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED,YAAY;QACV,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;QACxB,IAAI,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YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;SACzF;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAhHD,oCAgHC"}
@@ -38,13 +38,17 @@ function buildSignature(name, parameterAware) {
38
38
  }
39
39
  const signatureParameters = parameterAware.parameters.map((param) => `${param.type} ${param.name}`);
40
40
  signature += signatureParameters.join(', ');
41
- return (signature += ')');
41
+ return `${signature})`;
42
42
  }
43
43
  function addParameters(markdownFile, methodModel, startingHeadingLevel) {
44
- var _a;
44
+ var _a, _b;
45
+ if (!((_a = methodModel.docComment) === null || _a === void 0 ? void 0 : _a.paramAnnotations.length)) {
46
+ // If there are no parameters defined in the docs then we don't want to display this section
47
+ return;
48
+ }
45
49
  markdownFile.addTitle('Parameters', startingHeadingLevel + 3);
46
50
  markdownFile.initializeTable('Param', 'Description');
47
- (_a = methodModel.docComment) === null || _a === void 0 ? void 0 : _a.paramAnnotations.forEach((paramAnnotation) => {
51
+ (_b = methodModel.docComment) === null || _b === void 0 ? void 0 : _b.paramAnnotations.forEach((paramAnnotation) => {
48
52
  const paramName = paramAnnotation.paramName;
49
53
  const paramDescription = paramAnnotation.bodyLines.join(' ');
50
54
  markdownFile.addTableRow(`\`${paramName}\``, paramDescription);
@@ -1 +1 @@
1
- {"version":3,"file":"method-declaration-util.js","sourceRoot":"","sources":["../../../src/model/markdown-generation-util/method-declaration-util.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAE/E,SAAgB,aAAa,CAC3B,YAA0B,EAC1B,OAA6C,EAC7C,oBAA4B,EAC5B,SAAS,GAAG,EAAE;IAEd,OAAO,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;;QAChC,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAE,aAA8B,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;QACjG,YAAY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AC,cAAc,EAAE,CAAC;IAC9B,MAAA,eAAe,CAAC,UAAU,0CAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACvE,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC,EAAE;IACH,YAAY,CAAC,YAAY,EAAE,CAAC;IAC5B,YAAY,CAAC,YAAY,EAAE,CAAC;AAC9B,CAAC;AAED,SAAS,QAAQ,CAAC,MAAyD;IACzE,OAAQ,MAAuB,CAAC,IAAI,KAAK,SAAS,CAAC;AACrD,CAAC"}
1
+ {"version":3,"file":"method-declaration-util.js","sourceRoot":"","sources":["../../../src/model/markdown-generation-util/method-declaration-util.ts"],"names":[],"mappings":";;;AAGA,+EAA+E;AAE/E,SAAgB,aAAa,CAC3B,YAA0B,EAC1B,OAA6C,EAC7C,oBAA4B,EAC5B,SAAS,GAAG,EAAE;IAEd,OAAO,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;;QAChC,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAE,aAA8B,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;QACjG,YAAY,CAAC,QAAQ,CAAC,KAAK,cAAc,CAAC,aAAa,EAAE,aAAa,CAAC,IAAI,EAAE,oBAAoB,GAAG,CAAC,CAAC,CAAC;QACvG,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YAC/C,YAAY,CAAC,YAAY,EAAE,CAAC;YAC5B,YAAY,CAAC,OAAO,CAAC,KAAK,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QAC/D,CAAC,CAAC,CAAC;QAEH,UAAI,aAAa,CAAC,UAAU,0CAAE,WAAW,EAAE;YACzC,YAAY,CAAC,YAAY,EAAE,CAAC;YAC5B,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,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CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Type } from '@cparra/apex-reflection';
2
+ export default class State {
3
+ private static instance;
4
+ private typeBeingProcessed?;
5
+ private constructor();
6
+ static getInstance(): State;
7
+ setTypeBeingProcessed(typeToSet: Type): void;
8
+ getTypeBeingProcessed(): Type | undefined;
9
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class State {
4
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
5
+ constructor() { }
6
+ static getInstance() {
7
+ if (!State.instance) {
8
+ State.instance = new State();
9
+ }
10
+ return State.instance;
11
+ }
12
+ setTypeBeingProcessed(typeToSet) {
13
+ this.typeBeingProcessed = typeToSet;
14
+ }
15
+ getTypeBeingProcessed() {
16
+ return this.typeBeingProcessed;
17
+ }
18
+ }
19
+ exports.default = State;
20
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/service/state.ts"],"names":[],"mappings":";;AAEA,MAAqB,KAAK;IAIxB,gEAAgE;IAChE,gBAAuB,CAAC;IAEjB,MAAM,CAAC,WAAW;QACvB,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACnB,KAAK,CAAC,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;SAC9B;QACD,OAAO,KAAK,CAAC,QAAQ,CAAC;IACxB,CAAC;IAEM,qBAAqB,CAAC,SAAe;QAC1C,IAAI,CAAC,kBAAkB,GAAG,SAAS,CAAC;IACtC,CAAC;IAEM,qBAAqB;QAC1B,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACjC,CAAC;CACF;AArBD,wBAqBC"}
package/lib/settings.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import ProcessorTypeTranspiler from './transpiler/processor-type-transpiler';
2
- export declare type GeneratorChoices = 'jekyll' | 'docsify';
2
+ export declare type GeneratorChoices = 'jekyll' | 'docsify' | 'plain-markdown';
3
3
  export interface SettingsConfig {
4
4
  sourceDirectory: string;
5
5
  recursive: boolean;
@@ -7,6 +7,7 @@ export interface SettingsConfig {
7
7
  outputDir: string;
8
8
  targetGenerator: GeneratorChoices;
9
9
  indexOnly: boolean;
10
+ defaultGroupName: string;
10
11
  }
11
12
  export declare class Settings {
12
13
  config: SettingsConfig;
@@ -18,6 +19,8 @@ export declare class Settings {
18
19
  get recursive(): boolean;
19
20
  get scope(): string[];
20
21
  get outputDir(): string;
22
+ private static typeTranspilerCache?;
21
23
  get typeTranspiler(): ProcessorTypeTranspiler;
22
24
  get indexOnly(): boolean;
25
+ getDefaultGroupName(): string;
23
26
  }
package/lib/settings.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Settings = void 0;
4
4
  const jekyll_docsProcessor_1 = require("./transpiler/markdown/jekyll/jekyll-docsProcessor");
5
5
  const docsify_docs_processor_1 = require("./transpiler/markdown/docsify/docsify-docs-processor");
6
+ const plain_docsProcessor_1 = require("./transpiler/markdown/plain-markdown/plain-docsProcessor");
6
7
  class Settings {
7
8
  constructor(config) {
8
9
  this.config = config;
@@ -29,11 +30,19 @@ class Settings {
29
30
  return this.config.outputDir;
30
31
  }
31
32
  get typeTranspiler() {
33
+ if (Settings.typeTranspilerCache) {
34
+ return Settings.typeTranspilerCache;
35
+ }
32
36
  switch (this.config.targetGenerator) {
33
37
  case 'jekyll':
34
- return new jekyll_docsProcessor_1.JekyllDocsProcessor();
38
+ Settings.typeTranspilerCache = new jekyll_docsProcessor_1.JekyllDocsProcessor();
39
+ return Settings.typeTranspilerCache;
35
40
  case 'docsify':
36
- return new docsify_docs_processor_1.default();
41
+ Settings.typeTranspilerCache = new docsify_docs_processor_1.default();
42
+ return Settings.typeTranspilerCache;
43
+ case 'plain-markdown':
44
+ Settings.typeTranspilerCache = new plain_docsProcessor_1.PlainMarkdownDocsProcessor();
45
+ return Settings.typeTranspilerCache;
37
46
  default:
38
47
  throw Error('Invalid target generator');
39
48
  }
@@ -41,6 +50,9 @@ class Settings {
41
50
  get indexOnly() {
42
51
  return this.config.indexOnly;
43
52
  }
53
+ getDefaultGroupName() {
54
+ return this.config.defaultGroupName;
55
+ }
44
56
  }
45
57
  exports.Settings = Settings;
46
58
  //# sourceMappingURL=settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":";;;AACA,4FAAwF;AACxF,iGAAwF;AAaxF,MAAa,QAAQ;IAGnB,YAA2B,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;IAAG,CAAC;IAE9C,MAAM,CAAC,KAAK,CAAC,MAAsB;QACxC,QAAQ,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;IAEM,MAAM,CAAC,WAAW;QACvB,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;SACtD;QACD,OAAO,QAAQ,CAAC,QAAQ,CAAC;IAC3B,CAAC;IAED,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;IACrC,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC/B,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IAC3B,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC/B,CAAC;IAED,IAAI,cAAc;QAChB,QAAQ,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE;YACnC,KAAK,QAAQ;gBACX,OAAO,IAAI,0CAAmB,EAAE,CAAC;YACnC,KAAK,SAAS;gBACZ,OAAO,IAAI,gCAAoB,EAAE,CAAC;YACpC;gBACE,MAAM,KAAK,CAAC,0BAA0B,CAAC,CAAC;SAC3C;IACH,CA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gCAAoB,EAAE,CAAC;gBAC1D,OAAO,QAAQ,CAAC,mBAAmB,CAAC;YACtC,KAAK,gBAAgB;gBACnB,QAAQ,CAAC,mBAAmB,GAAG,IAAI,gDAA0B,EAAE,CAAC;gBAChE,OAAO,QAAQ,CAAC,mBAAmB,CAAC;YACtC;gBACE,MAAM,KAAK,CAAC,0BAA0B,CAAC,CAAC;SAC3C;IACH,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC/B,CAAC;IAEM,mBAAmB;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;IACtC,CAAC;CACF;AA3DD,4BA2DC"}
@@ -3,5 +3,6 @@ export default class ClassFileGeneratorHelper {
3
3
  static getSanitizedGroup(classModel: Type): string;
4
4
  static getFileLink(classModel: Type): string;
5
5
  static getFileLinkByTypeName(typeName: string): string;
6
+ private static getDirectoryRoot;
6
7
  private static getClassGroup;
7
8
  }