@cparra/apexdocs 2.24.0 → 2.25.0-alpha.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.
- package/.eslintrc.js +12 -12
- package/.github/workflows/ci.yaml +22 -0
- package/.github/workflows/close_stale.yml +22 -22
- package/.prettierrc.js +7 -7
- package/LICENSE +21 -21
- package/README.md +742 -718
- package/apexdocs.config.ts +13 -13
- package/docs/{README.md → __old/README.md} +1 -1
- package/docs/{restapi.json → __old/restapi.json} +589 -589
- package/docs/{types → __old/types}/Classes/nspc.ChildClass.md +97 -97
- package/docs/{types → __old/types}/Main/nspc.SampleClass.md +189 -189
- package/examples/force-app/main/default/classes/AnotherInterface.cls +16 -16
- package/examples/force-app/main/default/classes/ChildClass.cls +42 -42
- package/examples/force-app/main/default/classes/EscapedAnnotations.cls +5 -5
- package/examples/force-app/main/default/classes/GrandparentClass.cls +4 -4
- package/examples/force-app/main/default/classes/GroupedClass.cls +8 -8
- package/examples/force-app/main/default/classes/MemberGrouping.cls +17 -17
- package/examples/force-app/main/default/classes/ParentClass.cls +16 -16
- package/examples/force-app/main/default/classes/SampleClass.cls +166 -166
- package/examples/force-app/main/default/classes/SampleClass.cls-meta.xml +5 -5
- package/examples/force-app/main/default/classes/SampleClassWithoutModifier.cls +9 -9
- package/examples/force-app/main/default/classes/SampleInterface.cls +16 -16
- package/examples/force-app/main/default/restapi/SampleRestResource.cls +195 -195
- package/examples/force-app/main/default/restapi/SampleRestResourceToSkip.cls +35 -35
- package/examples/force-app/main/default/restapi/SampleRestResourceWithInnerClass.cls +24 -24
- package/examples/force-app/main/default/restapi/SampleRestResourceWithoutApexDocs.cls +15 -15
- package/examples/force-app/main/default/restapi/references/Reference1.cls +9 -9
- package/examples/force-app/main/default/restapi/references/Reference2.cls +9 -9
- package/examples/force-app/main/default/restapi/references/Reference3.cls +3 -3
- package/examples/force-app/main/default/restapi/references/Reference4.cls +3 -3
- package/examples/force-app/main/default/restapi/references/Reference5.cls +3 -3
- package/examples/force-app/main/default/restapi/references/Reference6.cls +6 -6
- package/examples/force-app/main/default/restapi/references/Reference7.cls +3 -3
- package/examples/includes/header.md +3 -3
- package/examples/plain-markdown/.forceignore +12 -0
- package/examples/plain-markdown/README.md +301 -0
- package/examples/plain-markdown/config/project-scratch-def.json +5 -0
- package/examples/plain-markdown/force-app/classes/BaseClass.cls +3 -0
- package/examples/plain-markdown/force-app/classes/ParentInterface.cls +3 -0
- package/examples/plain-markdown/force-app/classes/ReferencedEnum.cls +3 -0
- package/examples/plain-markdown/force-app/classes/SampleClass.cls +35 -0
- package/examples/plain-markdown/force-app/classes/SampleEnum.cls +30 -0
- package/examples/plain-markdown/force-app/classes/SampleException.cls +1 -0
- package/examples/plain-markdown/force-app/classes/SampleInterface.cls +46 -0
- package/examples/plain-markdown/package-lock.json +665 -0
- package/examples/plain-markdown/package.json +24 -0
- package/examples/plain-markdown/sfdx-project.json +12 -0
- package/examples/plain-markdown/template.md +3 -0
- package/jest.config.js +5 -5
- package/lib/adapters/apex-types.d.ts +5 -0
- package/lib/adapters/apex-types.js +34 -0
- package/lib/adapters/apex-types.js.map +1 -0
- package/lib/adapters/documentables.d.ts +6 -0
- package/lib/adapters/documentables.js +41 -0
- package/lib/adapters/documentables.js.map +1 -0
- package/lib/adapters/fields-and-properties.d.ts +3 -0
- package/lib/adapters/fields-and-properties.js +10 -0
- package/lib/adapters/fields-and-properties.js.map +1 -0
- package/lib/adapters/methods-and-constructors.d.ts +4 -0
- package/lib/adapters/methods-and-constructors.js +49 -0
- package/lib/adapters/methods-and-constructors.js.map +1 -0
- package/lib/adapters/references.d.ts +5 -0
- package/lib/adapters/references.js +82 -0
- package/lib/adapters/references.js.map +1 -0
- package/lib/adapters/type-utils.d.ts +2 -0
- package/lib/adapters/type-utils.js +8 -0
- package/lib/adapters/type-utils.js.map +1 -0
- package/lib/application/Apexdocs.d.ts +13 -13
- package/lib/application/Apexdocs.js +79 -76
- package/lib/application/Apexdocs.js.map +1 -1
- package/lib/cli/generate.d.ts +2 -2
- package/lib/cli/generate.js +156 -130
- package/lib/cli/generate.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +17 -17
- package/lib/model/apex-bundle.d.ts +6 -6
- package/lib/model/apex-bundle.js +10 -10
- package/lib/model/apex-type-wrappers/ClassMirrorWrapper.d.ts +7 -7
- package/lib/model/apex-type-wrappers/ClassMirrorWrapper.js +13 -13
- package/lib/model/apex-type-wrappers/MethodMirrorWrapper.d.ts +7 -7
- package/lib/model/apex-type-wrappers/MethodMirrorWrapper.js +11 -11
- package/lib/model/inheritance.d.ts +8 -8
- package/lib/model/inheritance.js +2 -2
- package/lib/model/manifest.d.ts +22 -22
- package/lib/model/manifest.js +46 -46
- package/lib/model/manifest.js.map +1 -1
- package/lib/model/markdown-file.d.ts +16 -16
- package/lib/model/markdown-file.js +109 -106
- package/lib/model/markdown-file.js.map +1 -1
- package/lib/model/markdown-generation-util/doc-comment-annotation-util.d.ts +8 -8
- package/lib/model/markdown-generation-util/doc-comment-annotation-util.js +46 -43
- package/lib/model/markdown-generation-util/doc-comment-annotation-util.js.map +1 -1
- package/lib/model/markdown-generation-util/field-declaration-util.d.ts +3 -3
- package/lib/model/markdown-generation-util/field-declaration-util.js +54 -54
- package/lib/model/markdown-generation-util/index.d.ts +3 -3
- package/lib/model/markdown-generation-util/index.js +19 -19
- package/lib/model/markdown-generation-util/method-declaration-util.d.ts +4 -4
- package/lib/model/markdown-generation-util/method-declaration-util.js +114 -114
- package/lib/model/markdown-generation-util/type-declaration-util.d.ts +3 -3
- package/lib/model/markdown-generation-util/type-declaration-util.js +81 -81
- package/lib/model/markdown-home-file.d.ts +11 -11
- package/lib/model/markdown-home-file.js +56 -53
- package/lib/model/markdown-home-file.js.map +1 -1
- package/lib/model/markdown-type-file.d.ts +26 -26
- package/lib/model/markdown-type-file.js +136 -133
- package/lib/model/markdown-type-file.js.map +1 -1
- package/lib/model/openapi/apex-doc-types.d.ts +19 -19
- package/lib/model/openapi/apex-doc-types.js +4 -4
- package/lib/model/openapi/open-api-types.d.ts +93 -93
- package/lib/model/openapi/open-api-types.js +2 -2
- package/lib/model/openapi/open-api.d.ts +16 -16
- package/lib/model/openapi/open-api.js +33 -33
- package/lib/model/openapi/openapi-type-file.d.ts +7 -7
- package/lib/model/openapi/openapi-type-file.js +16 -16
- package/lib/model/outputFile.d.ts +10 -10
- package/lib/model/outputFile.js +28 -28
- package/lib/model/types-repository.d.ts +16 -16
- package/lib/model/types-repository.js +53 -53
- package/lib/service/apex-file-reader.d.ts +14 -14
- package/lib/service/apex-file-reader.js +48 -45
- package/lib/service/apex-file-reader.js.map +1 -1
- package/lib/service/file-system.d.ts +14 -14
- package/lib/service/file-system.js +47 -24
- package/lib/service/file-system.js.map +1 -1
- package/lib/service/file-writer.d.ts +6 -6
- package/lib/service/file-writer.js +56 -33
- package/lib/service/file-writer.js.map +1 -1
- package/lib/service/manifest-factory.d.ts +10 -10
- package/lib/service/manifest-factory.js +16 -13
- package/lib/service/manifest-factory.js.map +1 -1
- package/lib/service/metadata-processor.d.ts +3 -3
- package/lib/service/metadata-processor.js +16 -16
- package/lib/service/parser.d.ts +21 -21
- package/lib/service/parser.js +137 -134
- package/lib/service/parser.js.map +1 -1
- package/lib/service/state.d.ts +9 -9
- package/lib/service/state.js +19 -19
- package/lib/service/walkers/class-walker.d.ts +4 -4
- package/lib/service/walkers/class-walker.js +32 -32
- package/lib/service/walkers/enum-walker.d.ts +4 -4
- package/lib/service/walkers/enum-walker.js +10 -10
- package/lib/service/walkers/interface-walker.d.ts +4 -4
- package/lib/service/walkers/interface-walker.js +14 -14
- package/lib/service/walkers/walker-factory.d.ts +5 -5
- package/lib/service/walkers/walker-factory.js +20 -20
- package/lib/service/walkers/walker.d.ts +19 -19
- package/lib/service/walkers/walker.js +16 -16
- package/lib/settings.d.ts +70 -64
- package/lib/settings.js +99 -88
- package/lib/settings.js.map +1 -1
- package/lib/templating/compile.d.ts +7 -0
- package/lib/templating/compile.js +98 -0
- package/lib/templating/compile.js.map +1 -0
- package/lib/templating/helpers.d.ts +2 -0
- package/lib/templating/helpers.js +18 -0
- package/lib/templating/helpers.js.map +1 -0
- package/lib/test-helpers/AnnotationBuilder.d.ts +12 -12
- package/lib/test-helpers/AnnotationBuilder.js +30 -30
- package/lib/test-helpers/ClassMirrorBuilder.d.ts +18 -18
- package/lib/test-helpers/ClassMirrorBuilder.js +53 -53
- package/lib/test-helpers/DocCommentAnnotationBuilder.d.ts +8 -8
- package/lib/test-helpers/DocCommentAnnotationBuilder.js +25 -25
- package/lib/test-helpers/DocCommentBuilder.d.ts +12 -12
- package/lib/test-helpers/DocCommentBuilder.js +37 -37
- package/lib/test-helpers/FieldMirrorBuilder.d.ts +18 -18
- package/lib/test-helpers/FieldMirrorBuilder.js +53 -53
- package/lib/test-helpers/InterfaceMirrorBuilder.d.ts +16 -0
- package/lib/test-helpers/InterfaceMirrorBuilder.js +43 -0
- package/lib/test-helpers/InterfaceMirrorBuilder.js.map +1 -0
- package/lib/test-helpers/MethodMirrorBuilder.d.ts +29 -10
- package/lib/test-helpers/MethodMirrorBuilder.js +71 -36
- package/lib/test-helpers/MethodMirrorBuilder.js.map +1 -1
- package/lib/test-helpers/SettingsBuilder.d.ts +8 -8
- package/lib/test-helpers/SettingsBuilder.js +26 -26
- package/lib/transpiler/factory.d.ts +6 -6
- package/lib/transpiler/factory.js +34 -31
- package/lib/transpiler/factory.js.map +1 -1
- package/lib/transpiler/file-container.d.ts +6 -6
- package/lib/transpiler/file-container.js +15 -15
- package/lib/transpiler/generator-choices.d.ts +1 -1
- package/lib/transpiler/generator-choices.js +2 -2
- package/lib/transpiler/markdown/class-file-generatorHelper.d.ts +11 -8
- package/lib/transpiler/markdown/class-file-generatorHelper.js +74 -55
- package/lib/transpiler/markdown/class-file-generatorHelper.js.map +1 -1
- package/lib/transpiler/markdown/docsify/docsify-docs-processor.d.ts +6 -6
- package/lib/transpiler/markdown/docsify/docsify-docs-processor.js +12 -12
- package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.d.ts +11 -11
- package/lib/transpiler/markdown/jekyll/jekyll-docsProcessor.js +50 -50
- package/lib/transpiler/markdown/markdown-transpiler-base.d.ts +11 -11
- package/lib/transpiler/markdown/markdown-transpiler-base.js +26 -23
- package/lib/transpiler/markdown/markdown-transpiler-base.js.map +1 -1
- package/lib/transpiler/markdown/plain-markdown/class-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/class-template.js +36 -0
- package/lib/transpiler/markdown/plain-markdown/class-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/constructors-partial-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/constructors-partial-template.js +39 -0
- package/lib/transpiler/markdown/plain-markdown/constructors-partial-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/documentable-partial-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/documentable-partial-template.js +25 -0
- package/lib/transpiler/markdown/plain-markdown/documentable-partial-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/enum-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/enum-template.js +15 -0
- package/lib/transpiler/markdown/plain-markdown/enum-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/fieldsPartialTemplate.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/fieldsPartialTemplate.js +24 -0
- package/lib/transpiler/markdown/plain-markdown/fieldsPartialTemplate.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/interface-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/interface-template.js +20 -0
- package/lib/transpiler/markdown/plain-markdown/interface-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/methods-partial-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/methods-partial-template.js +49 -0
- package/lib/transpiler/markdown/plain-markdown/methods-partial-template.js.map +1 -0
- package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.d.ts +13 -6
- package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.js +121 -13
- package/lib/transpiler/markdown/plain-markdown/plain-docsProcessor.js.map +1 -1
- package/lib/transpiler/markdown/plain-markdown/type-level-apex-doc-partial-template.d.ts +1 -0
- package/lib/transpiler/markdown/plain-markdown/type-level-apex-doc-partial-template.js +31 -0
- package/lib/transpiler/markdown/plain-markdown/type-level-apex-doc-partial-template.js.map +1 -0
- package/lib/transpiler/openapi/open-api-docs-processor.d.ts +13 -13
- package/lib/transpiler/openapi/open-api-docs-processor.js +77 -74
- package/lib/transpiler/openapi/open-api-docs-processor.js.map +1 -1
- package/lib/transpiler/openapi/parsers/Builder.d.ts +16 -16
- package/lib/transpiler/openapi/parsers/Builder.js +29 -29
- package/lib/transpiler/openapi/parsers/Builder.js.map +1 -1
- package/lib/transpiler/openapi/parsers/MethodParser.d.ts +20 -20
- package/lib/transpiler/openapi/parsers/MethodParser.js +189 -166
- package/lib/transpiler/openapi/parsers/MethodParser.js.map +1 -1
- package/lib/transpiler/openapi/parsers/ParameterObjectBuilder.d.ts +7 -7
- package/lib/transpiler/openapi/parsers/ParameterObjectBuilder.js +10 -10
- package/lib/transpiler/openapi/parsers/ReferenceBuilder.d.ts +39 -39
- package/lib/transpiler/openapi/parsers/ReferenceBuilder.js +248 -225
- package/lib/transpiler/openapi/parsers/ReferenceBuilder.js.map +1 -1
- package/lib/transpiler/openapi/parsers/RequestBodyBuilder.d.ts +10 -10
- package/lib/transpiler/openapi/parsers/RequestBodyBuilder.js +19 -19
- package/lib/transpiler/openapi/parsers/ResponsesBuilder.d.ts +7 -7
- package/lib/transpiler/openapi/parsers/ResponsesBuilder.js +21 -21
- package/lib/transpiler/processor-type-transpiler.d.ts +10 -10
- package/lib/transpiler/processor-type-transpiler.js +8 -8
- package/lib/transpiler/transpiler.d.ts +5 -5
- package/lib/transpiler/transpiler.js +29 -26
- package/lib/transpiler/transpiler.js.map +1 -1
- package/lib/util/error-logger.d.ts +8 -8
- package/lib/util/error-logger.js +89 -89
- package/lib/util/error-logger.js.map +1 -1
- package/lib/util/logger.d.ts +21 -21
- package/lib/util/logger.js +60 -57
- package/lib/util/logger.js.map +1 -1
- package/lib/util/string-utils.d.ts +2 -2
- package/lib/util/string-utils.js +14 -14
- package/package.json +79 -78
- package/src/adapters/__tests__/interface-adapter.spec.ts +76 -0
- package/src/adapters/__tests__/references.spec.ts +115 -0
- package/src/adapters/apex-types.ts +67 -0
- package/src/adapters/documentables.ts +58 -0
- package/src/adapters/fields-and-properties.ts +14 -0
- package/src/adapters/methods-and-constructors.ts +78 -0
- package/src/adapters/references.ts +113 -0
- package/src/adapters/type-utils.ts +5 -0
- package/src/adapters/types.d.ts +8 -0
- package/src/cli/generate.ts +3 -0
- package/src/model/__tests__/manifest.spec.ts +1 -0
- package/src/model/manifest.ts +3 -3
- package/src/model/markdown-file.ts +1 -1
- package/src/model/openapi/open-api-types.ts +2 -2
- package/src/service/__tests__/apex-file-reader.spec.ts +4 -4
- package/src/service/__tests__/manifest-factory.spec.ts +1 -2
- package/src/settings.ts +15 -0
- package/src/templating/__tests__/compile.spec.ts +741 -0
- package/src/templating/compile.ts +187 -0
- package/src/templating/helpers.ts +14 -0
- package/src/templating/types.d.ts +104 -0
- package/src/test-helpers/FieldMirrorBuilder.ts +1 -1
- package/src/test-helpers/InterfaceMirrorBuilder.ts +44 -0
- package/src/test-helpers/MethodMirrorBuilder.ts +46 -6
- package/src/transpiler/markdown/class-file-generatorHelper.ts +22 -2
- package/src/transpiler/markdown/plain-markdown/class-template.ts +32 -0
- package/src/transpiler/markdown/plain-markdown/constructors-partial-template.ts +35 -0
- package/src/transpiler/markdown/plain-markdown/documentable-partial-template.ts +21 -0
- package/src/transpiler/markdown/plain-markdown/enum-template.ts +11 -0
- package/src/transpiler/markdown/plain-markdown/fieldsPartialTemplate.ts +20 -0
- package/src/transpiler/markdown/plain-markdown/interface-template.ts +16 -0
- package/src/transpiler/markdown/plain-markdown/methods-partial-template.ts +45 -0
- package/src/transpiler/markdown/plain-markdown/plain-docsProcessor.ts +122 -0
- package/src/transpiler/markdown/plain-markdown/type-level-apex-doc-partial-template.ts +27 -0
- package/src/transpiler/openapi/parsers/Builder.ts +1 -1
- package/src/transpiler/openapi/parsers/MethodParser.ts +1 -1
- package/src/transpiler/openapi/parsers/ReferenceBuilder.ts +1 -1
- package/src/util/error-logger.ts +4 -4
- package/src/util/logger.ts +3 -3
- package/tsconfig.json +21 -20
- package/tslint.json +5 -5
- package/lib/model/manifest-diff.d.ts +0 -27
- package/lib/model/manifest-diff.js +0 -69
- package/lib/model/manifest-diff.js.map +0 -1
- package/src/model/__tests__/manifest-diff.spec.ts +0 -139
- package/src/model/manifest-diff.ts +0 -94
- /package/docs/{index.html → __old/index.html} +0 -0
- /package/docs/{types → __old/types}/Classes/nspc.AnotherInterface.md +0 -0
- /package/docs/{types → __old/types}/Main/nspc.GroupedClass.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.EscapedAnnotations.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.GrandparentClass.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.InterfaceWithInheritance.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.MemberGrouping.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.ParentClass.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference1.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference2.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference3.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference4.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference5.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference6.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.Reference7.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.SampleClassWithoutModifier.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.SampleRestResource.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.SampleRestResourceWithInnerClass.md +0 -0
- /package/docs/{types → __old/types}/Misc-Group/nspc.SampleRestResourceWithoutApexDocs.md +0 -0
- /package/docs/{types → __old/types}/README.md +0 -0
- /package/docs/{types → __old/types}/Sample-Interfaces/nspc.SampleInterface.md +0 -0
|
@@ -1,56 +1,75 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
static
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const fullClassName =
|
|
16
|
-
return `[${fullClassName}](${
|
|
17
|
-
}
|
|
18
|
-
static
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const types_repository_1 = require("../../model/types-repository");
|
|
7
|
+
const settings_1 = require("../../settings");
|
|
8
|
+
const state_1 = __importDefault(require("../../service/state"));
|
|
9
|
+
const factory_1 = require("../factory");
|
|
10
|
+
class ClassFileGeneratorHelper {
|
|
11
|
+
static getSanitizedGroup(classModel) {
|
|
12
|
+
return this.getClassGroup(classModel).replace(/ /g, '-').replace('.', '');
|
|
13
|
+
}
|
|
14
|
+
static getFileLink(classModel) {
|
|
15
|
+
const [fullClassName, fileLink] = ClassFileGeneratorHelper.getFileLinkTuple(classModel);
|
|
16
|
+
return `[${fullClassName}](${fileLink})`;
|
|
17
|
+
}
|
|
18
|
+
static getFileLinkTuple(classModel) {
|
|
19
|
+
var _a;
|
|
20
|
+
const documentationRoot = (_a = settings_1.Settings.getInstance().getRootDir()) !== null && _a !== void 0 ? _a : '';
|
|
21
|
+
const directoryRoot = `${documentationRoot}${this.getDirectoryRoot(classModel)}`;
|
|
22
|
+
const fullClassName = `${settings_1.Settings.getInstance().getNamespacePrefix()}${classModel.name}`;
|
|
23
|
+
return [fullClassName, `${directoryRoot}${fullClassName}.md`];
|
|
24
|
+
}
|
|
25
|
+
static getFileLinkByTypeName(typeName) {
|
|
26
|
+
const type = types_repository_1.TypesRepository.getInstance().getFromScopedByName(typeName);
|
|
27
|
+
if (!type) {
|
|
28
|
+
// If the type is not found, we return a Markdown hyperlink with whatever we received.
|
|
29
|
+
return `[${typeName}](${typeName})`;
|
|
30
|
+
}
|
|
31
|
+
return this.getFileLink(type);
|
|
32
|
+
}
|
|
33
|
+
static getRenderableLinkByTypeName(typeName) {
|
|
34
|
+
const type = types_repository_1.TypesRepository.getInstance().getFromScopedByName(typeName);
|
|
35
|
+
if (!type) {
|
|
36
|
+
// If the type is not found, we return the type name as a string.
|
|
37
|
+
return typeName;
|
|
38
|
+
}
|
|
39
|
+
const [fullClassName, fileLink] = ClassFileGeneratorHelper.getFileLinkTuple(type);
|
|
40
|
+
return {
|
|
41
|
+
title: fullClassName,
|
|
42
|
+
url: fileLink,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static getDirectoryRoot(classModel) {
|
|
46
|
+
// root-relative links start from the root by using a leading '/'
|
|
47
|
+
const generator = settings_1.Settings.getInstance().targetGenerator;
|
|
48
|
+
if (factory_1.TypeTranspilerFactory.get(generator).getLinkingStrategy() === 'root-relative') {
|
|
49
|
+
return `/${this.getSanitizedGroup(classModel)}/`;
|
|
50
|
+
}
|
|
51
|
+
// path-relative links traverse the directory structure
|
|
52
|
+
const typeBeingProcessed = state_1.default.getInstance().getTypeBeingProcessed();
|
|
53
|
+
if (typeBeingProcessed) {
|
|
54
|
+
if (this.getClassGroup(typeBeingProcessed) === this.getClassGroup(classModel)) {
|
|
55
|
+
// If the types the same groups then we simply link directly to that file
|
|
56
|
+
return './';
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
// If the types have different groups, then we have to go up a directory
|
|
60
|
+
return `../${this.getSanitizedGroup(classModel)}/`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
// If nothing is being processed, then we assume we are at the root and links should include the groups
|
|
65
|
+
return `./${this.getSanitizedGroup(classModel)}/`;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
static getClassGroup(classModel) {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
const groupAnnotation = (_a = classModel.docComment) === null || _a === void 0 ? void 0 : _a.annotations.find((annotation) => annotation.name.toLowerCase() === 'group');
|
|
71
|
+
return (_b = groupAnnotation === null || groupAnnotation === void 0 ? void 0 : groupAnnotation.body) !== null && _b !== void 0 ? _b : settings_1.Settings.getInstance().getDefaultGroupName();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.default = ClassFileGeneratorHelper;
|
|
56
75
|
//# sourceMappingURL=class-file-generatorHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-file-generatorHelper.js","sourceRoot":"","sources":["../../../src/transpiler/markdown/class-file-generatorHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"class-file-generatorHelper.js","sourceRoot":"","sources":["../../../src/transpiler/markdown/class-file-generatorHelper.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MarkdownTranspilerBase } from '../markdown-transpiler-base';
|
|
2
|
-
import { LinkingStrategy } from '../../processor-type-transpiler';
|
|
3
|
-
export default class DocsifyDocsProcessor extends MarkdownTranspilerBase {
|
|
4
|
-
homeFileName(): string;
|
|
5
|
-
getLinkingStrategy(): LinkingStrategy;
|
|
6
|
-
}
|
|
1
|
+
import { MarkdownTranspilerBase } from '../markdown-transpiler-base';
|
|
2
|
+
import { LinkingStrategy } from '../../processor-type-transpiler';
|
|
3
|
+
export default class DocsifyDocsProcessor extends MarkdownTranspilerBase {
|
|
4
|
+
homeFileName(): string;
|
|
5
|
+
getLinkingStrategy(): LinkingStrategy;
|
|
6
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const markdown_transpiler_base_1 = require("../markdown-transpiler-base");
|
|
4
|
-
class DocsifyDocsProcessor extends markdown_transpiler_base_1.MarkdownTranspilerBase {
|
|
5
|
-
homeFileName() {
|
|
6
|
-
return 'README';
|
|
7
|
-
}
|
|
8
|
-
getLinkingStrategy() {
|
|
9
|
-
return 'root-relative';
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = DocsifyDocsProcessor;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const markdown_transpiler_base_1 = require("../markdown-transpiler-base");
|
|
4
|
+
class DocsifyDocsProcessor extends markdown_transpiler_base_1.MarkdownTranspilerBase {
|
|
5
|
+
homeFileName() {
|
|
6
|
+
return 'README';
|
|
7
|
+
}
|
|
8
|
+
getLinkingStrategy() {
|
|
9
|
+
return 'root-relative';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = DocsifyDocsProcessor;
|
|
13
13
|
//# sourceMappingURL=docsify-docs-processor.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { MarkdownTranspilerBase } from '../markdown-transpiler-base';
|
|
2
|
-
import { Type } from '@cparra/apex-reflection';
|
|
3
|
-
import { LinkingStrategy } from '../../processor-type-transpiler';
|
|
4
|
-
export declare class JekyllDocsProcessor extends MarkdownTranspilerBase {
|
|
5
|
-
homeFileName(): string;
|
|
6
|
-
onBeforeProcess: (types: Type[]) => void;
|
|
7
|
-
onProcess(type: Type): void;
|
|
8
|
-
get frontMatterForHomeFile(): string;
|
|
9
|
-
getFrontMatterHeader(type: Type): string;
|
|
10
|
-
getLinkingStrategy(): LinkingStrategy;
|
|
11
|
-
}
|
|
1
|
+
import { MarkdownTranspilerBase } from '../markdown-transpiler-base';
|
|
2
|
+
import { Type } from '@cparra/apex-reflection';
|
|
3
|
+
import { LinkingStrategy } from '../../processor-type-transpiler';
|
|
4
|
+
export declare class JekyllDocsProcessor extends MarkdownTranspilerBase {
|
|
5
|
+
homeFileName(): string;
|
|
6
|
+
onBeforeProcess: (types: Type[]) => void;
|
|
7
|
+
onProcess(type: Type): void;
|
|
8
|
+
get frontMatterForHomeFile(): string;
|
|
9
|
+
getFrontMatterHeader(type: Type): string;
|
|
10
|
+
getLinkingStrategy(): LinkingStrategy;
|
|
11
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JekyllDocsProcessor = void 0;
|
|
4
|
-
const markdown_transpiler_base_1 = require("../markdown-transpiler-base");
|
|
5
|
-
const markdown_home_file_1 = require("../../../model/markdown-home-file");
|
|
6
|
-
const markdown_type_file_1 = require("../../../model/markdown-type-file");
|
|
7
|
-
const settings_1 = require("../../../settings");
|
|
8
|
-
class JekyllDocsProcessor extends markdown_transpiler_base_1.MarkdownTranspilerBase {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.onBeforeProcess = (types) => {
|
|
12
|
-
this._fileContainer.pushFile(new markdown_home_file_1.MarkdownHomeFile(this.homeFileName(), types, this.frontMatterForHomeFile));
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
homeFileName() {
|
|
16
|
-
return 'index';
|
|
17
|
-
}
|
|
18
|
-
onProcess(type) {
|
|
19
|
-
this._fileContainer.pushFile(new markdown_type_file_1.MarkdownTypeFile(type, 1, this.getFrontMatterHeader(type)));
|
|
20
|
-
}
|
|
21
|
-
get frontMatterForHomeFile() {
|
|
22
|
-
return '---\nlayout: default\n---';
|
|
23
|
-
}
|
|
24
|
-
getFrontMatterHeader(type) {
|
|
25
|
-
var _a;
|
|
26
|
-
const headerLines = ['---'];
|
|
27
|
-
// "layout: default" is a required front matter header for Jekyll
|
|
28
|
-
headerLines.push('layout: default');
|
|
29
|
-
// Add any additional front matter headers that might have been configured in the settings
|
|
30
|
-
const targetType = {
|
|
31
|
-
name: type.name,
|
|
32
|
-
typeName: type.type_name,
|
|
33
|
-
accessModifier: type.access_modifier,
|
|
34
|
-
group: type.group,
|
|
35
|
-
description: (_a = type.docComment) === null || _a === void 0 ? void 0 : _a.description,
|
|
36
|
-
};
|
|
37
|
-
const configuredHeaders = settings_1.Settings.getInstance().frontMatterHeader(targetType);
|
|
38
|
-
if (configuredHeaders) {
|
|
39
|
-
configuredHeaders.forEach((header) => {
|
|
40
|
-
headerLines.push(header);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
headerLines.push('---');
|
|
44
|
-
return headerLines.join('\n');
|
|
45
|
-
}
|
|
46
|
-
getLinkingStrategy() {
|
|
47
|
-
return 'path-relative';
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.JekyllDocsProcessor = JekyllDocsProcessor;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JekyllDocsProcessor = void 0;
|
|
4
|
+
const markdown_transpiler_base_1 = require("../markdown-transpiler-base");
|
|
5
|
+
const markdown_home_file_1 = require("../../../model/markdown-home-file");
|
|
6
|
+
const markdown_type_file_1 = require("../../../model/markdown-type-file");
|
|
7
|
+
const settings_1 = require("../../../settings");
|
|
8
|
+
class JekyllDocsProcessor extends markdown_transpiler_base_1.MarkdownTranspilerBase {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.onBeforeProcess = (types) => {
|
|
12
|
+
this._fileContainer.pushFile(new markdown_home_file_1.MarkdownHomeFile(this.homeFileName(), types, this.frontMatterForHomeFile));
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
homeFileName() {
|
|
16
|
+
return 'index';
|
|
17
|
+
}
|
|
18
|
+
onProcess(type) {
|
|
19
|
+
this._fileContainer.pushFile(new markdown_type_file_1.MarkdownTypeFile(type, 1, this.getFrontMatterHeader(type)));
|
|
20
|
+
}
|
|
21
|
+
get frontMatterForHomeFile() {
|
|
22
|
+
return '---\nlayout: default\n---';
|
|
23
|
+
}
|
|
24
|
+
getFrontMatterHeader(type) {
|
|
25
|
+
var _a;
|
|
26
|
+
const headerLines = ['---'];
|
|
27
|
+
// "layout: default" is a required front matter header for Jekyll
|
|
28
|
+
headerLines.push('layout: default');
|
|
29
|
+
// Add any additional front matter headers that might have been configured in the settings
|
|
30
|
+
const targetType = {
|
|
31
|
+
name: type.name,
|
|
32
|
+
typeName: type.type_name,
|
|
33
|
+
accessModifier: type.access_modifier,
|
|
34
|
+
group: type.group,
|
|
35
|
+
description: (_a = type.docComment) === null || _a === void 0 ? void 0 : _a.description,
|
|
36
|
+
};
|
|
37
|
+
const configuredHeaders = settings_1.Settings.getInstance().frontMatterHeader(targetType);
|
|
38
|
+
if (configuredHeaders) {
|
|
39
|
+
configuredHeaders.forEach((header) => {
|
|
40
|
+
headerLines.push(header);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
headerLines.push('---');
|
|
44
|
+
return headerLines.join('\n');
|
|
45
|
+
}
|
|
46
|
+
getLinkingStrategy() {
|
|
47
|
+
return 'path-relative';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.JekyllDocsProcessor = JekyllDocsProcessor;
|
|
51
51
|
//# sourceMappingURL=jekyll-docsProcessor.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import ProcessorTypeTranspiler from '../processor-type-transpiler';
|
|
2
|
-
import { Type } from '@cparra/apex-reflection';
|
|
3
|
-
import { FileContainer } from '../file-container';
|
|
4
|
-
export declare abstract class MarkdownTranspilerBase extends ProcessorTypeTranspiler {
|
|
5
|
-
protected readonly _fileContainer: FileContainer;
|
|
6
|
-
constructor();
|
|
7
|
-
abstract homeFileName(): string;
|
|
8
|
-
fileBuilder(): FileContainer;
|
|
9
|
-
onBeforeProcess: (types: Type[]) => void;
|
|
10
|
-
onProcess(type: Type): void;
|
|
11
|
-
}
|
|
1
|
+
import ProcessorTypeTranspiler from '../processor-type-transpiler';
|
|
2
|
+
import { Type } from '@cparra/apex-reflection';
|
|
3
|
+
import { FileContainer } from '../file-container';
|
|
4
|
+
export declare abstract class MarkdownTranspilerBase extends ProcessorTypeTranspiler {
|
|
5
|
+
protected readonly _fileContainer: FileContainer;
|
|
6
|
+
constructor();
|
|
7
|
+
abstract homeFileName(): string;
|
|
8
|
+
fileBuilder(): FileContainer;
|
|
9
|
+
onBeforeProcess: (types: Type[]) => void;
|
|
10
|
+
onProcess(type: Type): void;
|
|
11
|
+
}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
this._fileContainer
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MarkdownTranspilerBase = void 0;
|
|
7
|
+
const processor_type_transpiler_1 = __importDefault(require("../processor-type-transpiler"));
|
|
8
|
+
const file_container_1 = require("../file-container");
|
|
9
|
+
const markdown_home_file_1 = require("../../model/markdown-home-file");
|
|
10
|
+
const markdown_type_file_1 = require("../../model/markdown-type-file");
|
|
11
|
+
class MarkdownTranspilerBase extends processor_type_transpiler_1.default {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.onBeforeProcess = (types) => {
|
|
15
|
+
this._fileContainer.pushFile(new markdown_home_file_1.MarkdownHomeFile(this.homeFileName(), types));
|
|
16
|
+
};
|
|
17
|
+
this._fileContainer = new file_container_1.FileContainer();
|
|
18
|
+
}
|
|
19
|
+
fileBuilder() {
|
|
20
|
+
return this._fileContainer;
|
|
21
|
+
}
|
|
22
|
+
onProcess(type) {
|
|
23
|
+
this._fileContainer.pushFile(new markdown_type_file_1.MarkdownTypeFile(type));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.MarkdownTranspilerBase = MarkdownTranspilerBase;
|
|
24
27
|
//# sourceMappingURL=markdown-transpiler-base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-transpiler-base.js","sourceRoot":"","sources":["../../../src/transpiler/markdown/markdown-transpiler-base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"markdown-transpiler-base.js","sourceRoot":"","sources":["../../../src/transpiler/markdown/markdown-transpiler-base.ts"],"names":[],"mappings":";;;;;;AAAA,6FAAmE;AAEnE,sDAAkD;AAClD,uEAAkE;AAClE,uEAAkE;AAElE,MAAsB,sBAAuB,SAAQ,mCAAuB;IAG1E;QACE,KAAK,EAAE,CAAC;QAUV,oBAAe,GAAG,CAAC,KAAa,EAAE,EAAE;YAClC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,qCAAgB,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;QACjF,CAAC,CAAC;QAXA,IAAI,CAAC,cAAc,GAAG,IAAI,8BAAa,EAAE,CAAC;IAC5C,CAAC;IAID,WAAW;QACT,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAMD,SAAS,CAAC,IAAU;QAClB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,qCAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF;AArBD,wDAqBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const classMarkdownTemplate: string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.classMarkdownTemplate = void 0;
|
|
4
|
+
exports.classMarkdownTemplate = `
|
|
5
|
+
# {{name}} Class
|
|
6
|
+
{{#if classModifier}}
|
|
7
|
+
\`{{classModifier}}\`
|
|
8
|
+
{{/if}}
|
|
9
|
+
|
|
10
|
+
{{> typeLevelApexDocPartialTemplate}}
|
|
11
|
+
|
|
12
|
+
{{#if extends}}
|
|
13
|
+
**Extends**
|
|
14
|
+
{{extends}}
|
|
15
|
+
{{/if}}
|
|
16
|
+
|
|
17
|
+
{{#if implements}}
|
|
18
|
+
**Implements**
|
|
19
|
+
{{#each implements}}
|
|
20
|
+
{{this}}{{#unless @last}}, {{/unless}}
|
|
21
|
+
{{/each}}
|
|
22
|
+
{{/if}}
|
|
23
|
+
|
|
24
|
+
{{#if fields}}
|
|
25
|
+
{{> fieldsPartialTemplate}}
|
|
26
|
+
{{/if}}
|
|
27
|
+
|
|
28
|
+
{{#if constructors}}
|
|
29
|
+
{{> constructorsPartialTemplate}}
|
|
30
|
+
{{/if}}
|
|
31
|
+
|
|
32
|
+
{{#if methods}}
|
|
33
|
+
{{> methodsPartialTemplate}}
|
|
34
|
+
{{/if}}
|
|
35
|
+
`.trim();
|
|
36
|
+
//# sourceMappingURL=class-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-template.js","sourceRoot":"","sources":["../../../../src/transpiler/markdown/plain-markdown/class-template.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BpC,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const constructorsPartialTemplate: string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.constructorsPartialTemplate = void 0;
|
|
4
|
+
exports.constructorsPartialTemplate = `
|
|
5
|
+
## Constructors
|
|
6
|
+
{{#each constructors}}
|
|
7
|
+
### \`{{title}}\`
|
|
8
|
+
|
|
9
|
+
{{#> documentablePartialTemplate}}
|
|
10
|
+
|
|
11
|
+
### Signature
|
|
12
|
+
\`\`\`apex
|
|
13
|
+
{{signature}}
|
|
14
|
+
\`\`\`
|
|
15
|
+
|
|
16
|
+
{{#if parameters}}
|
|
17
|
+
### Parameters
|
|
18
|
+
| Name | Type | Description |
|
|
19
|
+
|------|------|-------------|
|
|
20
|
+
{{#each parameters}}
|
|
21
|
+
| {{name}} | {{type}} | {{description}} |
|
|
22
|
+
{{/each}}
|
|
23
|
+
{{/if}}
|
|
24
|
+
|
|
25
|
+
{{#if throws}}
|
|
26
|
+
### Throws
|
|
27
|
+
{{#each throws}}
|
|
28
|
+
{{this.type}}: {{this.description}}
|
|
29
|
+
|
|
30
|
+
{{/each}}
|
|
31
|
+
{{/if}}
|
|
32
|
+
|
|
33
|
+
{{/documentablePartialTemplate}}
|
|
34
|
+
|
|
35
|
+
{{#unless @last}}---{{/unless}}
|
|
36
|
+
{{/each}}
|
|
37
|
+
|
|
38
|
+
`.trim();
|
|
39
|
+
//# sourceMappingURL=constructors-partial-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constructors-partial-template.js","sourceRoot":"","sources":["../../../../src/transpiler/markdown/plain-markdown/constructors-partial-template.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC1C,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const documentablePartialTemplate: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.documentablePartialTemplate = void 0;
|
|
4
|
+
exports.documentablePartialTemplate = `
|
|
5
|
+
{{#each annotations}}
|
|
6
|
+
\`{{this}}\`
|
|
7
|
+
{{/each}}
|
|
8
|
+
|
|
9
|
+
{{description}}
|
|
10
|
+
|
|
11
|
+
{{#each customTags}}
|
|
12
|
+
**{{splitAndCapitalize name}}** {{description}}
|
|
13
|
+
|
|
14
|
+
{{/each}}
|
|
15
|
+
|
|
16
|
+
{{> @partial-block}}
|
|
17
|
+
|
|
18
|
+
{{{mermaid}}}
|
|
19
|
+
|
|
20
|
+
{{#if example}}
|
|
21
|
+
##{{#if isInner}}#{{/if}} Example
|
|
22
|
+
{{{example}}}
|
|
23
|
+
{{/if}}
|
|
24
|
+
`.trim();
|
|
25
|
+
//# sourceMappingURL=documentable-partial-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentable-partial-template.js","sourceRoot":"","sources":["../../../../src/transpiler/markdown/plain-markdown/documentable-partial-template.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;CAoB1C,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const enumMarkdownTemplate: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.enumMarkdownTemplate = void 0;
|
|
4
|
+
exports.enumMarkdownTemplate = `
|
|
5
|
+
# {{name}} Enum
|
|
6
|
+
|
|
7
|
+
{{> typeLevelApexDocPartialTemplate}}
|
|
8
|
+
|
|
9
|
+
## Enum Values
|
|
10
|
+
{{#each values}}
|
|
11
|
+
### {{value}}
|
|
12
|
+
{{description}}
|
|
13
|
+
{{/each}}
|
|
14
|
+
`.trim();
|
|
15
|
+
//# sourceMappingURL=enum-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum-template.js","sourceRoot":"","sources":["../../../../src/transpiler/markdown/plain-markdown/enum-template.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;;;;;;;;;;CAUnC,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fieldsPartialTemplate: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fieldsPartialTemplate = void 0;
|
|
4
|
+
exports.fieldsPartialTemplate = `
|
|
5
|
+
## Fields
|
|
6
|
+
{{#each fields}}
|
|
7
|
+
### \`\{{name}}\`
|
|
8
|
+
|
|
9
|
+
{{#if inherited}}
|
|
10
|
+
*Inherited*
|
|
11
|
+
{{/if}}
|
|
12
|
+
|
|
13
|
+
{{#> documentablePartialTemplate}}
|
|
14
|
+
|
|
15
|
+
#### Type
|
|
16
|
+
{{type}}
|
|
17
|
+
|
|
18
|
+
{{/documentablePartialTemplate}}
|
|
19
|
+
|
|
20
|
+
{{#unless @last}}---{{/unless}}
|
|
21
|
+
|
|
22
|
+
{{/each}}
|
|
23
|
+
`.trim();
|
|
24
|
+
//# sourceMappingURL=fieldsPartialTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldsPartialTemplate.js","sourceRoot":"","sources":["../../../../src/transpiler/markdown/plain-markdown/fieldsPartialTemplate.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;CAmBpC,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const interfaceMarkdownTemplate: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.interfaceMarkdownTemplate = void 0;
|
|
4
|
+
exports.interfaceMarkdownTemplate = `
|
|
5
|
+
# {{name}} Interface
|
|
6
|
+
|
|
7
|
+
{{> typeLevelApexDocPartialTemplate}}
|
|
8
|
+
|
|
9
|
+
{{#if extends}}
|
|
10
|
+
**Extends**
|
|
11
|
+
{{#each extends}}
|
|
12
|
+
{{this}}{{#unless @last}}, {{/unless}}
|
|
13
|
+
{{/each}}
|
|
14
|
+
{{/if}}
|
|
15
|
+
|
|
16
|
+
{{#if methods}}
|
|
17
|
+
{{> methodsPartialTemplate}}
|
|
18
|
+
{{/if}}
|
|
19
|
+
`.trim();
|
|
20
|
+
//# sourceMappingURL=interface-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface-template.js","sourceRoot":"","sources":["../../../../src/transpiler/markdown/plain-markdown/interface-template.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;CAexC,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const methodsPartialTemplate: string;
|