@apify/docusaurus-plugin-typedoc-api 4.2.9 → 4.2.11-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/lib/_virtual/_commonjsHelpers.js +44 -0
- package/lib/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/node_modules/boolbase/index.js +18 -0
- package/lib/node_modules/boolbase/index.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/api/attributes.js +568 -0
- package/lib/node_modules/cheerio/lib/esm/api/attributes.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/api/css.js +113 -0
- package/lib/node_modules/cheerio/lib/esm/api/css.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/api/forms.js +92 -0
- package/lib/node_modules/cheerio/lib/esm/api/forms.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/api/manipulation.js +807 -0
- package/lib/node_modules/cheerio/lib/esm/api/manipulation.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/api/traversing.js +842 -0
- package/lib/node_modules/cheerio/lib/esm/api/traversing.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/cheerio.js +41 -0
- package/lib/node_modules/cheerio/lib/esm/cheerio.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/index.js +112 -0
- package/lib/node_modules/cheerio/lib/esm/index.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/load.js +110 -0
- package/lib/node_modules/cheerio/lib/esm/load.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/options.js +32 -0
- package/lib/node_modules/cheerio/lib/esm/options.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/parse.js +78 -0
- package/lib/node_modules/cheerio/lib/esm/parse.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/parsers/parse5-adapter.js +57 -0
- package/lib/node_modules/cheerio/lib/esm/parsers/parse5-adapter.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/static.js +191 -0
- package/lib/node_modules/cheerio/lib/esm/static.js.map +1 -0
- package/lib/node_modules/cheerio/lib/esm/utils.js +105 -0
- package/lib/node_modules/cheerio/lib/esm/utils.js.map +1 -0
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Parser.js +381 -0
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Parser.js.map +1 -0
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Tokenizer.js +888 -0
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/Tokenizer.js.map +1 -0
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/index.js +69 -0
- package/lib/node_modules/cheerio/node_modules/htmlparser2/lib/esm/index.js.map +1 -0
- package/lib/node_modules/cheerio-select/lib/esm/helpers.js +22 -0
- package/lib/node_modules/cheerio-select/lib/esm/helpers.js.map +1 -0
- package/lib/node_modules/cheerio-select/lib/esm/index.js +252 -0
- package/lib/node_modules/cheerio-select/lib/esm/index.js.map +1 -0
- package/lib/node_modules/cheerio-select/lib/esm/positionals.js +37 -0
- package/lib/node_modules/cheerio-select/lib/esm/positionals.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/attributes.js +155 -0
- package/lib/node_modules/css-select/lib/esm/attributes.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/compile.js +118 -0
- package/lib/node_modules/css-select/lib/esm/compile.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/general.js +155 -0
- package/lib/node_modules/css-select/lib/esm/general.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/index.js +115 -0
- package/lib/node_modules/css-select/lib/esm/index.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js +38 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/filters.js +151 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/filters.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/index.js +47 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/index.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js +88 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js +85 -0
- package/lib/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js.map +1 -0
- package/lib/node_modules/css-select/lib/esm/sort.js +70 -0
- package/lib/node_modules/css-select/lib/esm/sort.js.map +1 -0
- package/lib/node_modules/css-what/lib/es/index.js +18 -0
- package/lib/node_modules/css-what/lib/es/index.js.map +1 -0
- package/lib/node_modules/css-what/lib/es/parse.js +397 -0
- package/lib/node_modules/css-what/lib/es/parse.js.map +1 -0
- package/lib/node_modules/css-what/lib/es/stringify.js +95 -0
- package/lib/node_modules/css-what/lib/es/stringify.js.map +1 -0
- package/lib/node_modules/css-what/lib/es/types.js +43 -0
- package/lib/node_modules/css-what/lib/es/types.js.map +1 -0
- package/lib/node_modules/dom-serializer/lib/esm/foreignNames.js +7 -0
- package/lib/node_modules/dom-serializer/lib/esm/foreignNames.js.map +1 -0
- package/lib/node_modules/dom-serializer/lib/esm/index.js +146 -0
- package/lib/node_modules/dom-serializer/lib/esm/index.js.map +1 -0
- package/lib/node_modules/domelementtype/lib/esm/index.js +62 -0
- package/lib/node_modules/domelementtype/lib/esm/index.js.map +1 -0
- package/lib/node_modules/domhandler/lib/esm/index.js +166 -0
- package/lib/node_modules/domhandler/lib/esm/index.js.map +1 -0
- package/lib/node_modules/domhandler/lib/esm/node.js +352 -0
- package/lib/node_modules/domhandler/lib/esm/node.js.map +1 -0
- package/lib/node_modules/domutils/lib/esm/feeds.js +176 -0
- package/lib/node_modules/domutils/lib/esm/feeds.js.map +1 -0
- package/lib/node_modules/domutils/lib/esm/helpers.js +142 -0
- package/lib/node_modules/domutils/lib/esm/helpers.js.map +1 -0
- package/lib/node_modules/domutils/lib/esm/index.js +56 -0
- package/lib/node_modules/domutils/lib/esm/index.js.map +1 -0
- package/lib/node_modules/domutils/lib/esm/legacy.js +144 -0
- package/lib/node_modules/domutils/lib/esm/legacy.js.map +1 -0
- package/lib/node_modules/domutils/lib/esm/manipulation.js +137 -0
- package/lib/node_modules/domutils/lib/esm/manipulation.js.map +1 -0
- package/lib/node_modules/domutils/lib/esm/querying.js +149 -0
- package/lib/node_modules/domutils/lib/esm/querying.js.map +1 -0
- package/lib/node_modules/domutils/lib/esm/stringify.js +80 -0
- package/lib/node_modules/domutils/lib/esm/stringify.js.map +1 -0
- package/lib/node_modules/domutils/lib/esm/traversal.js +128 -0
- package/lib/node_modules/domutils/lib/esm/traversal.js.map +1 -0
- package/lib/node_modules/entities/lib/esm/decode.js +495 -0
- package/lib/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/lib/node_modules/entities/lib/esm/decode_codepoint.js +52 -0
- package/lib/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/lib/node_modules/entities/lib/esm/encode.js +68 -0
- package/lib/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/lib/node_modules/entities/lib/esm/escape.js +103 -0
- package/lib/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/lib/node_modules/entities/lib/esm/generated/decode-data-html.js +8 -0
- package/lib/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/lib/node_modules/entities/lib/esm/generated/decode-data-xml.js +8 -0
- package/lib/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/lib/node_modules/entities/lib/esm/generated/encode-html.js +264 -0
- package/lib/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/lib/node_modules/entities/lib/esm/index.js +122 -0
- package/lib/node_modules/entities/lib/esm/index.js.map +1 -0
- package/lib/node_modules/nth-check/lib/esm/compile.js +111 -0
- package/lib/node_modules/nth-check/lib/esm/compile.js.map +1 -0
- package/lib/node_modules/nth-check/lib/esm/index.js +73 -0
- package/lib/node_modules/nth-check/lib/esm/index.js.map +1 -0
- package/lib/node_modules/nth-check/lib/esm/parse.js +71 -0
- package/lib/node_modules/nth-check/lib/esm/parse.js.map +1 -0
- package/lib/node_modules/parse5/dist/common/doctype.js +49 -0
- package/lib/node_modules/parse5/dist/common/doctype.js.map +1 -0
- package/lib/node_modules/parse5/dist/common/error-codes.js +66 -0
- package/lib/node_modules/parse5/dist/common/error-codes.js.map +1 -0
- package/lib/node_modules/parse5/dist/common/foreign-content.js +134 -0
- package/lib/node_modules/parse5/dist/common/foreign-content.js.map +1 -0
- package/lib/node_modules/parse5/dist/common/html.js +316 -0
- package/lib/node_modules/parse5/dist/common/html.js.map +1 -0
- package/lib/node_modules/parse5/dist/common/token.js +24 -0
- package/lib/node_modules/parse5/dist/common/token.js.map +1 -0
- package/lib/node_modules/parse5/dist/common/unicode.js +72 -0
- package/lib/node_modules/parse5/dist/common/unicode.js.map +1 -0
- package/lib/node_modules/parse5/dist/index.js +58 -0
- package/lib/node_modules/parse5/dist/index.js.map +1 -0
- package/lib/node_modules/parse5/dist/parser/formatting-element-list.js +115 -0
- package/lib/node_modules/parse5/dist/parser/formatting-element-list.js.map +1 -0
- package/lib/node_modules/parse5/dist/parser/index.js +3387 -0
- package/lib/node_modules/parse5/dist/parser/index.js.map +1 -0
- package/lib/node_modules/parse5/dist/parser/open-element-stack.js +286 -0
- package/lib/node_modules/parse5/dist/parser/open-element-stack.js.map +1 -0
- package/lib/node_modules/parse5/dist/serializer/index.js +160 -0
- package/lib/node_modules/parse5/dist/serializer/index.js.map +1 -0
- package/lib/node_modules/parse5/dist/tokenizer/index.js +3142 -0
- package/lib/node_modules/parse5/dist/tokenizer/index.js.map +1 -0
- package/lib/node_modules/parse5/dist/tokenizer/preprocessor.js +195 -0
- package/lib/node_modules/parse5/dist/tokenizer/preprocessor.js.map +1 -0
- package/lib/node_modules/parse5/dist/tree-adapters/default.js +180 -0
- package/lib/node_modules/parse5/dist/tree-adapters/default.js.map +1 -0
- package/lib/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +218 -0
- package/lib/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js.map +1 -0
- package/lib/packages/plugin/src/components/AnchorLink.js.map +1 -0
- package/lib/packages/plugin/src/components/ApiChangelog.js.map +1 -0
- package/lib/packages/plugin/src/components/ApiDataContext.js.map +1 -0
- package/lib/packages/plugin/src/components/ApiIndex.js.map +1 -0
- package/lib/{components → packages/plugin/src/components}/ApiItem.js +97 -2
- package/lib/packages/plugin/src/components/ApiItem.js.map +1 -0
- package/lib/packages/plugin/src/components/ApiItemLayout.js.map +1 -0
- package/lib/packages/plugin/src/components/ApiOptionsLayout.js.map +1 -0
- package/lib/{components → packages/plugin/src/components}/ApiPage.js +0 -3
- package/lib/packages/plugin/src/components/ApiPage.js.map +1 -0
- package/lib/packages/plugin/src/components/Breadcrumb.js.map +1 -0
- package/lib/packages/plugin/src/components/Comment.js.map +1 -0
- package/lib/packages/plugin/src/components/CommentBadges.js.map +1 -0
- package/lib/{components → packages/plugin/src/components}/DefaultValue.js +4 -4
- package/lib/packages/plugin/src/components/DefaultValue.js.map +1 -0
- package/lib/packages/plugin/src/components/Flags.js.map +1 -0
- package/lib/packages/plugin/src/components/Footer.js.map +1 -0
- package/lib/packages/plugin/src/components/Hierarchy.js.map +1 -0
- package/lib/packages/plugin/src/components/Icon.js.map +1 -0
- package/lib/packages/plugin/src/components/Index.js.map +1 -0
- package/lib/{components → packages/plugin/src/components}/Markdown.js +0 -2
- package/lib/packages/plugin/src/components/Markdown.js.map +1 -0
- package/lib/packages/plugin/src/components/Member.js.map +1 -0
- package/lib/packages/plugin/src/components/MemberDeclaration.js.map +1 -0
- package/lib/{components → packages/plugin/src/components}/MemberGetterSetter.js +0 -1
- package/lib/packages/plugin/src/components/MemberGetterSetter.js.map +1 -0
- package/lib/packages/plugin/src/components/MemberReference.js.map +1 -0
- package/lib/{components → packages/plugin/src/components}/MemberSignatureBody.js +2 -7
- package/lib/packages/plugin/src/components/MemberSignatureBody.js.map +1 -0
- package/lib/packages/plugin/src/components/MemberSignatureTitle.js.map +1 -0
- package/lib/packages/plugin/src/components/MemberSignatures.js.map +1 -0
- package/lib/packages/plugin/src/components/MemberSources.js.map +1 -0
- package/lib/packages/plugin/src/components/Members.js.map +1 -0
- package/lib/packages/plugin/src/components/MembersGroup.js.map +1 -0
- package/lib/packages/plugin/src/components/Parameter.js.map +1 -0
- package/lib/{components → packages/plugin/src/components}/Reflection.js +0 -1
- package/lib/packages/plugin/src/components/Reflection.js.map +1 -0
- package/lib/{components → packages/plugin/src/components}/SourceLink.js +5 -1
- package/lib/packages/plugin/src/components/SourceLink.js.map +1 -0
- package/lib/{components → packages/plugin/src/components}/Type.js +2 -3
- package/lib/packages/plugin/src/components/Type.js.map +1 -0
- package/lib/packages/plugin/src/components/TypeAndParent.js.map +1 -0
- package/lib/packages/plugin/src/components/TypeParameters.js.map +1 -0
- package/lib/packages/plugin/src/components/TypeParametersGeneric.js.map +1 -0
- package/lib/packages/plugin/src/components/VersionBanner.js.map +1 -0
- package/lib/packages/plugin/src/hooks/useBreadcrumbs.js.map +1 -0
- package/lib/packages/plugin/src/hooks/useGitRefName.js.map +1 -0
- package/lib/packages/plugin/src/hooks/useMinimalLayout.js.map +1 -0
- package/lib/packages/plugin/src/hooks/useReflection.js.map +1 -0
- package/lib/packages/plugin/src/hooks/useReflectionMap.js.map +1 -0
- package/lib/{index.js → packages/plugin/src/index.js} +23 -10
- package/lib/packages/plugin/src/index.js.map +1 -0
- package/lib/packages/plugin/src/markdownLoader.js.map +1 -0
- package/lib/{plugin → packages/plugin/src/plugin}/data.js +1 -9
- package/lib/packages/plugin/src/plugin/data.js.map +1 -0
- package/lib/packages/plugin/src/plugin/python/consts.js +47 -0
- package/lib/packages/plugin/src/plugin/python/consts.js.map +1 -0
- package/lib/packages/plugin/src/plugin/python/index.js +36 -0
- package/lib/packages/plugin/src/plugin/python/index.js.map +1 -0
- package/lib/packages/plugin/src/plugin/python/inheritance.js +71 -0
- package/lib/packages/plugin/src/plugin/python/inheritance.js.map +1 -0
- package/lib/packages/plugin/src/plugin/python/packageVersions.js +46 -0
- package/lib/packages/plugin/src/plugin/python/packageVersions.js.map +1 -0
- package/lib/packages/plugin/src/plugin/python/transformation.js +359 -0
- package/lib/packages/plugin/src/plugin/python/transformation.js.map +1 -0
- package/lib/packages/plugin/src/plugin/python/type-parsing/index.js +79 -0
- package/lib/packages/plugin/src/plugin/python/type-parsing/index.js.map +1 -0
- package/lib/packages/plugin/src/plugin/python/types.js +2 -0
- package/lib/packages/plugin/src/plugin/python/types.js.map +1 -0
- package/lib/packages/plugin/src/plugin/python/utils.js +106 -0
- package/lib/packages/plugin/src/plugin/python/utils.js.map +1 -0
- package/lib/packages/plugin/src/plugin/sidebar.js.map +1 -0
- package/lib/{plugin → packages/plugin/src/plugin}/structure/0.23.js +0 -2
- package/lib/packages/plugin/src/plugin/structure/0.23.js.map +1 -0
- package/lib/packages/plugin/src/plugin/url.js.map +1 -0
- package/lib/packages/plugin/src/plugin/version.js.map +1 -0
- package/lib/packages/plugin/src/types.js +2 -0
- package/lib/packages/plugin/src/types.js.map +1 -0
- package/lib/packages/plugin/src/utils/helpers.js.map +1 -0
- package/lib/packages/plugin/src/utils/hierarchy.js.map +1 -0
- package/lib/{utils → packages/plugin/src/utils}/icons.js +4 -3
- package/lib/packages/plugin/src/utils/icons.js.map +1 -0
- package/lib/packages/plugin/src/utils/links.js.map +1 -0
- package/lib/packages/plugin/src/utils/markdown.js.map +1 -0
- package/lib/packages/plugin/src/utils/reexports.js +96 -0
- package/lib/packages/plugin/src/utils/reexports.js.map +1 -0
- package/lib/packages/plugin/src/utils/visibility.js.map +1 -0
- package/package.json +4 -3
- package/src/components/ApiItem.tsx +103 -9
- package/src/components/ApiItemLayout.tsx +4 -2
- package/src/components/ApiOptionsLayout.tsx +18 -16
- package/src/components/ApiPage.tsx +0 -2
- package/src/components/DefaultValue.tsx +2 -7
- package/src/components/Flags.tsx +1 -1
- package/src/components/Markdown.tsx +0 -1
- package/src/components/Member.tsx +19 -17
- package/src/components/MemberGetterSetter.tsx +0 -1
- package/src/components/MemberSignatureBody.tsx +42 -38
- package/src/components/MemberSignatureTitle.tsx +18 -15
- package/src/components/Reflection.tsx +1 -1
- package/src/components/SourceLink.tsx +6 -8
- package/src/components/Type.tsx +6 -14
- package/src/components/VersionBanner.tsx +5 -1
- package/src/index.ts +39 -9
- package/src/plugin/data.ts +6 -12
- package/src/plugin/python/consts.ts +50 -0
- package/src/plugin/python/docspec-gen/__init__.py +0 -0
- package/src/plugin/python/docspec-gen/generate_ast.py +73 -0
- package/src/plugin/python/docspec-gen/google_docstring_processor.py +185 -0
- package/src/plugin/python/index.ts +47 -0
- package/src/plugin/python/inheritance.ts +80 -0
- package/src/plugin/python/packageVersions.ts +43 -0
- package/src/plugin/python/transformation.ts +444 -0
- package/src/plugin/python/type-parsing/index.ts +88 -0
- package/src/plugin/python/type-parsing/parse_types.py +82 -0
- package/src/plugin/python/types.ts +83 -0
- package/src/plugin/python/utils.ts +123 -0
- package/src/plugin/structure/0.23.ts +0 -2
- package/src/plugin/version.ts +2 -2
- package/src/types.ts +9 -0
- package/src/utils/icons.ts +4 -2
- package/src/utils/reexports.ts +105 -0
- package/lib/components/AnchorLink.js.map +0 -1
- package/lib/components/ApiChangelog.js.map +0 -1
- package/lib/components/ApiDataContext.js.map +0 -1
- package/lib/components/ApiIndex.js.map +0 -1
- package/lib/components/ApiItem.js.map +0 -1
- package/lib/components/ApiItemLayout.js.map +0 -1
- package/lib/components/ApiOptionsLayout.js.map +0 -1
- package/lib/components/ApiPage.js.map +0 -1
- package/lib/components/Breadcrumb.js.map +0 -1
- package/lib/components/Comment.js.map +0 -1
- package/lib/components/CommentBadges.js.map +0 -1
- package/lib/components/DefaultValue.js.map +0 -1
- package/lib/components/Flags.js.map +0 -1
- package/lib/components/Footer.js.map +0 -1
- package/lib/components/Hierarchy.js.map +0 -1
- package/lib/components/Icon.js.map +0 -1
- package/lib/components/Index.js.map +0 -1
- package/lib/components/Markdown.js.map +0 -1
- package/lib/components/Member.js.map +0 -1
- package/lib/components/MemberDeclaration.js.map +0 -1
- package/lib/components/MemberGetterSetter.js.map +0 -1
- package/lib/components/MemberReference.js.map +0 -1
- package/lib/components/MemberSignatureBody.js.map +0 -1
- package/lib/components/MemberSignatureTitle.js.map +0 -1
- package/lib/components/MemberSignatures.js.map +0 -1
- package/lib/components/MemberSources.js.map +0 -1
- package/lib/components/Members.js.map +0 -1
- package/lib/components/MembersGroup.js.map +0 -1
- package/lib/components/Parameter.js.map +0 -1
- package/lib/components/Reflection.js.map +0 -1
- package/lib/components/SourceLink.js.map +0 -1
- package/lib/components/Type.js.map +0 -1
- package/lib/components/TypeAndParent.js.map +0 -1
- package/lib/components/TypeParameters.js.map +0 -1
- package/lib/components/TypeParametersGeneric.js.map +0 -1
- package/lib/components/VersionBanner.js.map +0 -1
- package/lib/hooks/useBreadcrumbs.js.map +0 -1
- package/lib/hooks/useGitRefName.js.map +0 -1
- package/lib/hooks/useMinimalLayout.js.map +0 -1
- package/lib/hooks/useReflection.js.map +0 -1
- package/lib/hooks/useReflectionMap.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/markdownLoader.js.map +0 -1
- package/lib/plugin/data.js.map +0 -1
- package/lib/plugin/sidebar.js.map +0 -1
- package/lib/plugin/structure/0.23.js.map +0 -1
- package/lib/plugin/url.js.map +0 -1
- package/lib/plugin/version.js.map +0 -1
- package/lib/utils/helpers.js.map +0 -1
- package/lib/utils/hierarchy.js.map +0 -1
- package/lib/utils/icons.js.map +0 -1
- package/lib/utils/links.js.map +0 -1
- package/lib/utils/markdown.js.map +0 -1
- package/lib/utils/visibility.js.map +0 -1
- /package/lib/{types.js → node_modules/cheerio/lib/esm/types.js} +0 -0
- /package/lib/{types.js.map → node_modules/cheerio/lib/esm/types.js.map} +0 -0
- /package/lib/{components → packages/plugin/src/components}/AnchorLink.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/ApiChangelog.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/ApiDataContext.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/ApiIndex.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/ApiItemLayout.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/ApiOptionsLayout.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Breadcrumb.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Comment.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/CommentBadges.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Flags.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Footer.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Hierarchy.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Icon.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Index.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Member.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/MemberDeclaration.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/MemberReference.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/MemberSignatureTitle.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/MemberSignatures.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/MemberSources.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Members.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/MembersGroup.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/Parameter.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/TypeAndParent.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/TypeParameters.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/TypeParametersGeneric.js +0 -0
- /package/lib/{components → packages/plugin/src/components}/VersionBanner.js +0 -0
- /package/lib/{hooks → packages/plugin/src/hooks}/useBreadcrumbs.js +0 -0
- /package/lib/{hooks → packages/plugin/src/hooks}/useGitRefName.js +0 -0
- /package/lib/{hooks → packages/plugin/src/hooks}/useMinimalLayout.js +0 -0
- /package/lib/{hooks → packages/plugin/src/hooks}/useReflection.js +0 -0
- /package/lib/{hooks → packages/plugin/src/hooks}/useReflectionMap.js +0 -0
- /package/lib/{markdownLoader.js → packages/plugin/src/markdownLoader.js} +0 -0
- /package/lib/{plugin → packages/plugin/src/plugin}/sidebar.js +0 -0
- /package/lib/{plugin → packages/plugin/src/plugin}/url.js +0 -0
- /package/lib/{plugin → packages/plugin/src/plugin}/version.js +0 -0
- /package/lib/{utils → packages/plugin/src/utils}/helpers.js +0 -0
- /package/lib/{utils → packages/plugin/src/utils}/hierarchy.js +0 -0
- /package/lib/{utils → packages/plugin/src/utils}/links.js +0 -0
- /package/lib/{utils → packages/plugin/src/utils}/markdown.js +0 -0
- /package/lib/{utils → packages/plugin/src/utils}/visibility.js +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
const utils = require('./utils.js');
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Given an ancestor and a descendant objects, injects the children of the ancestor into the descendant.
|
|
12
|
+
*
|
|
13
|
+
* Sets the `extendedTypes` / `extendedBy` properties.
|
|
14
|
+
* @param ancestor
|
|
15
|
+
* @param descendant
|
|
16
|
+
*/
|
|
17
|
+
function resolveInheritedSymbols(ancestor, descendant) {
|
|
18
|
+
descendant.children ??= [];
|
|
19
|
+
descendant.extendedTypes = [...(descendant.extendedTypes ?? []), {
|
|
20
|
+
name: ancestor.name,
|
|
21
|
+
target: ancestor.id,
|
|
22
|
+
type: 'reference'
|
|
23
|
+
}];
|
|
24
|
+
ancestor.extendedBy = [...(ancestor.extendedBy ?? []), {
|
|
25
|
+
name: descendant.name,
|
|
26
|
+
target: descendant.id,
|
|
27
|
+
type: 'reference'
|
|
28
|
+
}];
|
|
29
|
+
for (const inheritedChild of ancestor.children ?? []) {
|
|
30
|
+
const ownChild = descendant.children?.find(x => x.name === inheritedChild.name);
|
|
31
|
+
if (!ownChild) {
|
|
32
|
+
const childId = utils.getOID();
|
|
33
|
+
const _utils$getGroupName = utils.getGroupName(inheritedChild),
|
|
34
|
+
groupName = _utils$getGroupName.groupName;
|
|
35
|
+
if (!groupName) {
|
|
36
|
+
throw new Error(`Couldn't resolve the group name for ${inheritedChild.name} (inherited child of ${ancestor.name})`);
|
|
37
|
+
}
|
|
38
|
+
const group = descendant.groups?.find(g => g.title === groupName);
|
|
39
|
+
if (group) {
|
|
40
|
+
group.children.push(inheritedChild.id);
|
|
41
|
+
} else {
|
|
42
|
+
descendant.groups?.push({
|
|
43
|
+
children: [inheritedChild.id],
|
|
44
|
+
title: groupName
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
descendant.children.push(_objectSpread(_objectSpread({}, inheritedChild), {}, {
|
|
48
|
+
id: childId,
|
|
49
|
+
inheritedFrom: {
|
|
50
|
+
name: `${ancestor.name}.${inheritedChild.name}`,
|
|
51
|
+
target: inheritedChild.id,
|
|
52
|
+
type: 'reference'
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
} else if (!ownChild.comment?.summary?.[0]?.text) {
|
|
56
|
+
ownChild.inheritedFrom = {
|
|
57
|
+
name: `${ancestor.name}.${inheritedChild.name}`,
|
|
58
|
+
target: inheritedChild.id,
|
|
59
|
+
type: 'reference'
|
|
60
|
+
};
|
|
61
|
+
for (const key of Object.keys(inheritedChild)) {
|
|
62
|
+
if (key !== 'id' && key !== 'inheritedFrom') {
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
64
|
+
ownChild[key] = inheritedChild[key];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.resolveInheritedSymbols = resolveInheritedSymbols;
|
|
71
|
+
//# sourceMappingURL=inheritance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inheritance.js","sources":["../../../../../../src/plugin/python/inheritance.ts"],"sourcesContent":null,"names":["getOID","getGroupName"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,uBAAuB,CAAC,QAAQ,EAAE,UAAU,EAAE;AAC9D,EAAE,UAAU,CAAC,QAAQ,KAAK,EAAE,CAAC;AAC7B,EAAE,UAAU,CAAC,aAAa,GAAG,CAAC,IAAI,UAAU,CAAC,aAAa,IAAI,EAAE,CAAC,EAAE;AACnE,IAAI,IAAI,EAAE,QAAQ,CAAC,IAAI;AACvB,IAAI,MAAM,EAAE,QAAQ,CAAC,EAAE;AACvB,IAAI,IAAI,EAAE,WAAW;AACrB,GAAG,CAAC,CAAC;AACL,EAAE,QAAQ,CAAC,UAAU,GAAG,CAAC,IAAI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/B,QAAQ,GAAG,cAAc;AACzB,QAAQ,EAAE,EAAE,OAAO;AACnB,QAAQ,aAAa,EAAE;AACvB,UAAU,IAAI,EAAE,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;AACzD,UAAU,MAAM,EAAE,cAAc,CAAC,EAAE;AACnC,UAAU,IAAI,EAAE,WAAW;AAC3B,SAAS;AACT,OAAO,CAAC,CAAC;AACT,KAAK,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE;AACtD,MAAM,QAAQ,CAAC,aAAa,GAAG;AAC/B,QAAQ,IAAI,EAAE,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;AACvD,QAAQ,MAAM,EAAE,cAAc,CAAC,EAAE;AACjC,QAAQ,IAAI,EAAE,WAAW;AACzB,OAAO,CAAC;AACR,MAAM,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;AACrD,QAAQ,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,eAAe,EAAE;AACrD;AACA,UAAU,QAAQ,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAC9C,SAAS;AACT,OAAO;AACP,KAAK;AACL,GAAG;AACH;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const childProcess = require('node:child_process');
|
|
4
|
+
const fs = require('node:fs');
|
|
5
|
+
const path = require('node:path');
|
|
6
|
+
const _interopDefault = e => e && e.__esModule ? e : {
|
|
7
|
+
default: e
|
|
8
|
+
};
|
|
9
|
+
const childProcess__default = /*#__PURE__*/_interopDefault(childProcess);
|
|
10
|
+
const fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
11
|
+
const path__default = /*#__PURE__*/_interopDefault(path);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Looks for the installed versions of the given packages and returns them as a dictionary.
|
|
15
|
+
*/
|
|
16
|
+
function getPackageGitHubTags(packageNames) {
|
|
17
|
+
// For each package, get the installed version, and set the tag to the corresponding version
|
|
18
|
+
const packageTags = {};
|
|
19
|
+
for (const pkg of packageNames) {
|
|
20
|
+
const spawnResult = childProcess__default.default.spawnSync('python', ['-c', `import ${pkg}; print(${pkg}.__version__)`]);
|
|
21
|
+
if (spawnResult.status === 0) {
|
|
22
|
+
packageTags[pkg] = `v${spawnResult.stdout.toString().trim()}`;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return packageTags;
|
|
26
|
+
}
|
|
27
|
+
function findNearestInParent(currentPath, filename) {
|
|
28
|
+
let parentPath = currentPath;
|
|
29
|
+
while (parentPath !== '/') {
|
|
30
|
+
parentPath = path__default.default.dirname(parentPath);
|
|
31
|
+
if (fs__default.default.existsSync(path__default.default.join(parentPath, filename))) {
|
|
32
|
+
return path__default.default.join(parentPath, filename);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
throw new Error(`No ${filename} found in any parent directory`);
|
|
36
|
+
}
|
|
37
|
+
function getCurrentPackageName(pyprojectTomlPath) {
|
|
38
|
+
const currentPath = path__default.default.dirname(__dirname);
|
|
39
|
+
pyprojectTomlPath ??= findNearestInParent(currentPath, 'pyproject.toml');
|
|
40
|
+
const pyprojectToml = fs__default.default.readFileSync(pyprojectTomlPath, 'utf8');
|
|
41
|
+
return pyprojectToml.match(/^name = "(.+)"$/m)?.[1];
|
|
42
|
+
}
|
|
43
|
+
exports.findNearestInParent = findNearestInParent;
|
|
44
|
+
exports.getCurrentPackageName = getCurrentPackageName;
|
|
45
|
+
exports.getPackageGitHubTags = getPackageGitHubTags;
|
|
46
|
+
//# sourceMappingURL=packageVersions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageVersions.js","sources":["../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AW,GAAGA,qBAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAC9C,EAAE,iBAAiB,KAAK,mBAAmB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;AAC3E,EAAE,MAAM,aAAa,GAAGC,mBAAE,CAAC,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;AACnE,EAAE,OAAO,aAAa,CAAC,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;AACtD;;;;;;"}
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
const consts = require('./consts.js');
|
|
9
|
+
const inheritance = require('./inheritance.js');
|
|
10
|
+
const index = require('./type-parsing/index.js');
|
|
11
|
+
const utils = require('./utils.js');
|
|
12
|
+
class DocspecTransformer {
|
|
13
|
+
pythonTypeResolver;
|
|
14
|
+
symbolIdMap = {};
|
|
15
|
+
namesToIds = {};
|
|
16
|
+
moduleShortcuts;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Maps the name of the class to the list of Typedoc objects representing the classes that extend it.
|
|
20
|
+
*
|
|
21
|
+
* This is used for resolving the references to the base classes - in case the base class is encountered after the class that extends it.
|
|
22
|
+
*/
|
|
23
|
+
forwardAncestorRefs = new Map();
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Maps the name of the class to the reference to the Typedoc object representing the class.
|
|
27
|
+
*
|
|
28
|
+
* This is used to resolve the references to the base classes of a class using the name.
|
|
29
|
+
*/
|
|
30
|
+
backwardAncestorRefs = new Map();
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Stack of the docstrings of the current context.
|
|
34
|
+
*
|
|
35
|
+
* Used to read the class Google-style docstrings from the class' properties and methods.
|
|
36
|
+
*/
|
|
37
|
+
contextStack = [];
|
|
38
|
+
settings = {
|
|
39
|
+
useDocsGroup: false
|
|
40
|
+
};
|
|
41
|
+
constructor({
|
|
42
|
+
moduleShortcuts
|
|
43
|
+
}) {
|
|
44
|
+
this.pythonTypeResolver = new index.PythonTypeResolver();
|
|
45
|
+
this.moduleShortcuts = moduleShortcuts ?? {};
|
|
46
|
+
}
|
|
47
|
+
transform(docspecModules) {
|
|
48
|
+
// Root object of the Typedoc structure, accumulator for the recursive walk
|
|
49
|
+
const typedocApiReference = {
|
|
50
|
+
children: [],
|
|
51
|
+
flags: {},
|
|
52
|
+
groups: [],
|
|
53
|
+
id: 0,
|
|
54
|
+
kind: 1,
|
|
55
|
+
kindString: 'Project',
|
|
56
|
+
name: 'apify-client',
|
|
57
|
+
sources: [{
|
|
58
|
+
character: 0,
|
|
59
|
+
fileName: 'src/index.ts',
|
|
60
|
+
line: 1
|
|
61
|
+
}],
|
|
62
|
+
symbolIdMap: this.symbolIdMap
|
|
63
|
+
};
|
|
64
|
+
this.settings.useDocsGroup = utils.projectUsesDocsGroupDecorator(docspecModules);
|
|
65
|
+
|
|
66
|
+
// Convert all the modules, store them in the root object
|
|
67
|
+
for (const module of docspecModules) {
|
|
68
|
+
this.walkAndTransform({
|
|
69
|
+
currentDocspecNode: module,
|
|
70
|
+
moduleName: module.name,
|
|
71
|
+
parentTypeDoc: typedocApiReference
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
this.pythonTypeResolver.resolveTypes();
|
|
75
|
+
this.namesToIds = Object.entries(this.symbolIdMap).reduce((acc, [id, {
|
|
76
|
+
qualifiedName
|
|
77
|
+
}]) => {
|
|
78
|
+
acc[qualifiedName] = Number(id);
|
|
79
|
+
return acc;
|
|
80
|
+
}, {});
|
|
81
|
+
this.fixRefs(typedocApiReference);
|
|
82
|
+
this.sortChildren(typedocApiReference);
|
|
83
|
+
return typedocApiReference;
|
|
84
|
+
}
|
|
85
|
+
getContext() {
|
|
86
|
+
return this.contextStack[this.contextStack.length - 1];
|
|
87
|
+
}
|
|
88
|
+
popContext() {
|
|
89
|
+
this.contextStack.pop();
|
|
90
|
+
}
|
|
91
|
+
newContext(context) {
|
|
92
|
+
this.contextStack.push(context);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Recursively traverse the Typedoc structure and fix the references to the named entities.
|
|
97
|
+
*
|
|
98
|
+
* Searches for the {@link TypeDocType} structure with the `type` property set to `reference`, and replaces the `target` property
|
|
99
|
+
* with the corresponding ID of the named entity.
|
|
100
|
+
*/
|
|
101
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
102
|
+
fixRefs(obj) {
|
|
103
|
+
for (const key of Object.keys(obj)) {
|
|
104
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
105
|
+
if (key === 'name' && obj?.type === 'reference' && this.namesToIds[obj?.name]) {
|
|
106
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
107
|
+
obj.target = this.namesToIds[obj?.name];
|
|
108
|
+
}
|
|
109
|
+
if (typeof obj[key] === 'object' && obj[key] !== null) {
|
|
110
|
+
this.fixRefs(obj[key]);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Given a docspec object outputted by `pydoc-markdown`, transforms this object into the Typedoc structure,
|
|
117
|
+
* and appends it as a child of the `parentTypeDoc` Typedoc object (which serves as an accumulator for the recursion).
|
|
118
|
+
* @param obj
|
|
119
|
+
* @param parent
|
|
120
|
+
* @param module
|
|
121
|
+
*/
|
|
122
|
+
walkAndTransform({
|
|
123
|
+
currentDocspecNode,
|
|
124
|
+
parentTypeDoc,
|
|
125
|
+
moduleName
|
|
126
|
+
}) {
|
|
127
|
+
if (utils.isHidden(currentDocspecNode)) {
|
|
128
|
+
for (const docspecMember of currentDocspecNode.members ?? []) {
|
|
129
|
+
this.walkAndTransform({
|
|
130
|
+
currentDocspecNode: docspecMember,
|
|
131
|
+
moduleName,
|
|
132
|
+
// Skips the hidden member, i.e. its children will be appended to the parent of the hidden member
|
|
133
|
+
parentTypeDoc
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const _this$getTypedocType = this.getTypedocType(currentDocspecNode, parentTypeDoc),
|
|
139
|
+
typedocType = _this$getTypedocType.typedocType,
|
|
140
|
+
typedocKind = _this$getTypedocType.typedocKind;
|
|
141
|
+
const _this$getGitHubUrls = this.getGitHubUrls(currentDocspecNode),
|
|
142
|
+
filePathInRepo = _this$getGitHubUrls.filePathInRepo;
|
|
143
|
+
const docstring = this.parseDocstring(currentDocspecNode);
|
|
144
|
+
const currentId = utils.getOID();
|
|
145
|
+
this.symbolIdMap[currentId] = {
|
|
146
|
+
qualifiedName: currentDocspecNode.name,
|
|
147
|
+
sourceFileName: filePathInRepo
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// Get the module name of the member, and check if it has a shortcut (reexport from an ancestor module)
|
|
151
|
+
const fullName = `${moduleName}.${currentDocspecNode.name}`;
|
|
152
|
+
if (fullName in this.moduleShortcuts) {
|
|
153
|
+
moduleName = this.moduleShortcuts[fullName].replace(`.${currentDocspecNode.name}`, '');
|
|
154
|
+
}
|
|
155
|
+
currentDocspecNode.name = currentDocspecNode.decorations?.find(d => d.name === 'docs_name')?.args.slice(2, -2) ?? currentDocspecNode.name;
|
|
156
|
+
|
|
157
|
+
// Create the Typedoc member object
|
|
158
|
+
const currentTypedocNode = _objectSpread(_objectSpread({}, typedocKind), {}, {
|
|
159
|
+
children: [],
|
|
160
|
+
comment: docstring ? {
|
|
161
|
+
summary: [{
|
|
162
|
+
kind: 'text',
|
|
163
|
+
text: docstring.text
|
|
164
|
+
}]
|
|
165
|
+
} : undefined,
|
|
166
|
+
decorations: currentDocspecNode.decorations?.map(({
|
|
167
|
+
name,
|
|
168
|
+
args
|
|
169
|
+
}) => ({
|
|
170
|
+
args,
|
|
171
|
+
name
|
|
172
|
+
})),
|
|
173
|
+
flags: {},
|
|
174
|
+
groups: [],
|
|
175
|
+
id: currentId,
|
|
176
|
+
module: moduleName,
|
|
177
|
+
// This is an extension to the original Typedoc structure, to support showing where the member is exported from
|
|
178
|
+
name: currentDocspecNode.name,
|
|
179
|
+
sources: [{
|
|
180
|
+
character: 1,
|
|
181
|
+
fileName: filePathInRepo,
|
|
182
|
+
line: currentDocspecNode.location.lineno
|
|
183
|
+
}],
|
|
184
|
+
type: typedocType
|
|
185
|
+
});
|
|
186
|
+
if (currentTypedocNode.kindString === 'Method') {
|
|
187
|
+
currentTypedocNode.signatures = [{
|
|
188
|
+
comment: docstring.text ? {
|
|
189
|
+
blockTags: docstring?.returns ? [{
|
|
190
|
+
content: [{
|
|
191
|
+
kind: 'text',
|
|
192
|
+
text: docstring.returns
|
|
193
|
+
}],
|
|
194
|
+
tag: '@returns'
|
|
195
|
+
}] : undefined,
|
|
196
|
+
summary: [{
|
|
197
|
+
kind: 'text',
|
|
198
|
+
text: docstring?.text
|
|
199
|
+
}]
|
|
200
|
+
} : undefined,
|
|
201
|
+
flags: {},
|
|
202
|
+
id: utils.getOID(),
|
|
203
|
+
kind: 4096,
|
|
204
|
+
kindString: 'Call signature',
|
|
205
|
+
modifiers: currentDocspecNode.modifiers ?? [],
|
|
206
|
+
name: currentDocspecNode.name,
|
|
207
|
+
parameters: currentDocspecNode.args?.filter(arg => arg.name !== 'self' && arg.name !== 'cls').map(arg => ({
|
|
208
|
+
comment: docstring.args?.[arg.name] ? {
|
|
209
|
+
summary: [{
|
|
210
|
+
kind: 'text',
|
|
211
|
+
text: docstring.args[arg.name]
|
|
212
|
+
}]
|
|
213
|
+
} : undefined,
|
|
214
|
+
defaultValue: arg.default_value,
|
|
215
|
+
flags: {
|
|
216
|
+
isOptional: arg.datatype?.includes('Optional'),
|
|
217
|
+
'keyword-only': arg.type === 'KEYWORD_ONLY'
|
|
218
|
+
},
|
|
219
|
+
id: utils.getOID(),
|
|
220
|
+
kind: 32_768,
|
|
221
|
+
kindString: 'Parameter',
|
|
222
|
+
name: arg.name,
|
|
223
|
+
type: this.pythonTypeResolver.registerType(arg.datatype)
|
|
224
|
+
})),
|
|
225
|
+
type: this.pythonTypeResolver.registerType(currentDocspecNode.return_type)
|
|
226
|
+
}];
|
|
227
|
+
}
|
|
228
|
+
if (currentTypedocNode.kindString === 'Class') {
|
|
229
|
+
this.newContext(docstring);
|
|
230
|
+
}
|
|
231
|
+
for (const docspecMember of currentDocspecNode.members ?? []) {
|
|
232
|
+
this.walkAndTransform({
|
|
233
|
+
currentDocspecNode: docspecMember,
|
|
234
|
+
moduleName,
|
|
235
|
+
parentTypeDoc: currentTypedocNode
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
if (currentTypedocNode.kindString === 'Class') {
|
|
239
|
+
this.popContext();
|
|
240
|
+
if (currentDocspecNode.bases && currentDocspecNode.bases.length > 0) {
|
|
241
|
+
for (const base of currentDocspecNode.bases) {
|
|
242
|
+
const canonicalAncestorType = this.pythonTypeResolver.getBaseType(base);
|
|
243
|
+
const baseTypedocMember = this.backwardAncestorRefs.get(canonicalAncestorType);
|
|
244
|
+
if (baseTypedocMember) {
|
|
245
|
+
inheritance.resolveInheritedSymbols(baseTypedocMember, currentTypedocNode);
|
|
246
|
+
} else {
|
|
247
|
+
this.forwardAncestorRefs.set(canonicalAncestorType, [...(this.forwardAncestorRefs.get(canonicalAncestorType) ?? []), currentTypedocNode]);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
this.backwardAncestorRefs.set(currentDocspecNode.name, currentTypedocNode);
|
|
252
|
+
}
|
|
253
|
+
const _utils$getGroupName = utils.getGroupName(currentTypedocNode),
|
|
254
|
+
groupName = _utils$getGroupName.groupName,
|
|
255
|
+
groupSource = _utils$getGroupName.source;
|
|
256
|
+
if (groupName && (
|
|
257
|
+
// If the group comes from a decorator, use it always; otherwise check if the symbol isn't top-level
|
|
258
|
+
!this.settings.useDocsGroup || groupSource === 'decorator' || parentTypeDoc.kindString !== 'Project')) {
|
|
259
|
+
const group = parentTypeDoc.groups?.find(g => g.title === groupName);
|
|
260
|
+
if (group) {
|
|
261
|
+
group.children.push(currentTypedocNode.id);
|
|
262
|
+
} else {
|
|
263
|
+
parentTypeDoc.groups?.push({
|
|
264
|
+
children: [currentTypedocNode.id],
|
|
265
|
+
title: groupName
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
parentTypeDoc.children?.push(currentTypedocNode);
|
|
270
|
+
this.sortChildren(currentTypedocNode);
|
|
271
|
+
if (currentTypedocNode.kindString === 'Class') {
|
|
272
|
+
for (const descendant of this.forwardAncestorRefs.get(currentTypedocNode.name) ?? []) {
|
|
273
|
+
inheritance.resolveInheritedSymbols(currentTypedocNode, descendant);
|
|
274
|
+
this.sortChildren(descendant);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// Get the URL of the member in GitHub
|
|
280
|
+
getGitHubUrls(docspecMember) {
|
|
281
|
+
const filePathInRepo = docspecMember.location.filename.replace(consts.REPO_ROOT_PLACEHOLDER, '');
|
|
282
|
+
return {
|
|
283
|
+
filePathInRepo
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Sorts the `groups` of `typedocMember` using {@link groupSort} and sorts the children of each group alphabetically.
|
|
289
|
+
*/
|
|
290
|
+
sortChildren(typedocMember) {
|
|
291
|
+
if (!typedocMember.groups) return;
|
|
292
|
+
for (const group of typedocMember.groups) {
|
|
293
|
+
group.children.sort((a, b) => {
|
|
294
|
+
const firstName = typedocMember.children?.find(x => x.id === a || x.inheritedFrom?.target === a)?.name ?? 'a';
|
|
295
|
+
const secondName = typedocMember.children?.find(x => x.id === b || x.inheritedFrom?.target === b)?.name ?? 'b';
|
|
296
|
+
return firstName.localeCompare(secondName);
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
typedocMember.groups?.sort((a, b) => utils.groupSort(a.title, b.title));
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* If possible, parses the `.docstring` property of the passed object. If the docstring is a stringified JSON object,
|
|
304
|
+
* it extracts the `args` and `returns` sections and adds them to the returned object.
|
|
305
|
+
*
|
|
306
|
+
* TODO
|
|
307
|
+
* This structure is created in the `google` docstring format, which is a JSON object with the following structure:
|
|
308
|
+
*/
|
|
309
|
+
parseDocstring(docspecMember) {
|
|
310
|
+
const docstring = {
|
|
311
|
+
text: docspecMember.docstring?.content ?? ''
|
|
312
|
+
};
|
|
313
|
+
try {
|
|
314
|
+
const parsedDocstring = JSON.parse(docstring.text);
|
|
315
|
+
docstring.text = parsedDocstring.text;
|
|
316
|
+
const parsedArguments = parsedDocstring.sections?.find(section => Object.keys(section)[0] === 'Arguments')?.Arguments ?? [];
|
|
317
|
+
docstring.args = parsedArguments?.reduce((acc, arg) => {
|
|
318
|
+
acc[arg.param] = arg.desc;
|
|
319
|
+
return acc;
|
|
320
|
+
}, {}) ?? {};
|
|
321
|
+
const returnTypes = docstring.sections?.find(section => Object.keys(section)[0] === 'Returns')?.Returns ?? [];
|
|
322
|
+
docstring.returns = returnTypes.join('\n');
|
|
323
|
+
} catch {
|
|
324
|
+
// Do nothing
|
|
325
|
+
}
|
|
326
|
+
if (!docstring.text) {
|
|
327
|
+
docstring.text = this.getContext()?.args?.[docspecMember.name] ?? '';
|
|
328
|
+
}
|
|
329
|
+
return docstring;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Given the current Docspec object and the parent Typedoc object, returns the Typedoc type and kind of the current object.
|
|
334
|
+
*/
|
|
335
|
+
getTypedocType(docspecMember, parentTypeDoc) {
|
|
336
|
+
let typedocKind = consts.TYPEDOC_KINDS[docspecMember.type];
|
|
337
|
+
if (docspecMember.bases?.includes('Enum')) {
|
|
338
|
+
typedocKind = consts.TYPEDOC_KINDS.enum;
|
|
339
|
+
}
|
|
340
|
+
let typedocType = this.pythonTypeResolver.registerType(docspecMember.datatype);
|
|
341
|
+
if (docspecMember.decorations?.some(d => ['property', 'dualproperty'].includes(d.name))) {
|
|
342
|
+
typedocKind = consts.TYPEDOC_KINDS.data;
|
|
343
|
+
typedocType = this.pythonTypeResolver.registerType(docspecMember.return_type ?? docspecMember.datatype);
|
|
344
|
+
}
|
|
345
|
+
if (parentTypeDoc.kindString === 'Enumeration') {
|
|
346
|
+
typedocKind = consts.TYPEDOC_KINDS.enumValue;
|
|
347
|
+
typedocType = {
|
|
348
|
+
type: 'literal',
|
|
349
|
+
value: docspecMember.value
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
return {
|
|
353
|
+
typedocKind,
|
|
354
|
+
typedocType
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
exports.DocspecTransformer = DocspecTransformer;
|
|
359
|
+
//# sourceMappingURL=transformation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformation.js","sources":["../../../../../../src/plugin/python/transformation.ts"],"sourcesContent":null,"names":["PythonTypeResolver","projectUsesDocsGroupDecorator","isHidden","getOID","resolveInheritedSymbols","getGroupName","REPO_ROOT_PLACEHOLDER","groupSort","TYPEDOC_KINDS"],"mappings":";;;;;;;AAIO,MAAM,kBAAkB,CAAC;AAChC,EAAE,kBAAkB,CAAC;AACrB,EAAE,WAAW,GAAG,EAAE,CAAC;AACnB,EAAE,UAAU,GAAG,EAAE,CAAC;AAClB,EAAE,eAAe,CAAC;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,mBAAmB,GAAG,IAAI,GAAG,EAAE,CAAC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,oBAAoB,GAAG,IAAI,GAAG,EAAE,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,YAAY,GAAG,EAAE,CAAC;AACpB,EAAE,QAAQ,GAAG;AACb,IAAI,YAAY,EAAE,KAAK;AACvB,GAAG,CAAC;AACJ,EAAE,WAAW,CAAC;AACd,IAAI,eAAe;AACnB,GAAG,EAAE;AACL,IAAI,IAAI,CAAC,kBAAkB,GAAG,IAAIA,wBAAkB,EAAE,CAAC;AACvD,IAAI,IAAI,CAAC,eAAe,GAAG,eAAe,IAAI,EAAE,CAAC;AACjD,GAAG;AACH,EAAE,SAAS,CAAC,cAAc,EAAE;AAC5B;AACA,IAAI,MAAM,mBAAmB,GAAG;AAChC,MAAM,QAAQ,EAAE,EAAE;AAClB,MAAM,KAAK,EAAE,EAAE;AACf,MAAM,MAAM,EAAE,EAAE;AAChB,MAAM,EAAE,EAAE,CAAC;AACX,MAAM,IAAI,EAAE,CAAC;AACb,MAAM,UAAU,EAAE,SAAS;AAC3B,MAAM,IAAI,EAAE,cAAc;AAC1B,MAAM,OAAO,EA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AI,IAAI,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE;AAC/C,MAAM,WAAW,GAAGA,oBAAa,CAAC,IAAI,CAAC;AACvC,KAAK;AACL,IAAI,IAAI,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AACnF,IAAI,IAAI,aAAa,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE;AAC7F,MAAM,WAAW,GAAGA,oBAAa,CAAC,IAAI,CAAC;AACvC,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,aAAa,CAAC,WAAW,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC;AAC9G,KAAK;AACL,IAAI,IAAI,aAAa,CAAC,UAAU,KAAK,aAAa,EAAE;AACpD,MAAM,WAAW,GAAGA,oBAAa,CAAC,SAAS,CAAC;AAC5C,MAAM,WAAW,GAAG;AACpB,QAAQ,IAAI,EAAE,SAAS;AACvB,QAAQ,KAAK,EAAE,aAAa,CAAC,KAAK;AAClC,OAAO,CAAC;AACR,KAAK;AACL,IAAI,OAAO;AACX,MAAM,WAAW;AACjB,MAAM,WAAW;AACjB,KAAK,CAAC;AACN,GAAG;AACH;;;;"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const childProcess = require('node:child_process');
|
|
4
|
+
const fs = require('node:fs');
|
|
5
|
+
const path = require('node:path');
|
|
6
|
+
const _interopDefault = e => e && e.__esModule ? e : {
|
|
7
|
+
default: e
|
|
8
|
+
};
|
|
9
|
+
const childProcess__default = /*#__PURE__*/_interopDefault(childProcess);
|
|
10
|
+
const fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
11
|
+
const path__default = /*#__PURE__*/_interopDefault(path);
|
|
12
|
+
const RAW_TYPES_JSON_FILEPATH = path__default.default.join(__dirname, 'typedoc-types.raw');
|
|
13
|
+
const PARSED_TYPES_JSON_FILEPATH = path__default.default.join(__dirname, 'typedoc-types-parsed.json');
|
|
14
|
+
const PYTHON_SCRIPT_FILEPATH = path__default.default.join(__dirname, 'parse_types.py');
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Keeps track of Typedoc type objects. When `resolveTypes` is called, it tries to parse
|
|
18
|
+
* the Python types using Python's `ast` module.
|
|
19
|
+
*
|
|
20
|
+
* The parsed types are then applied to the original registered Typedoc type objects.
|
|
21
|
+
*/
|
|
22
|
+
class PythonTypeResolver {
|
|
23
|
+
typedocTypes = [];
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Register a new Python type to be resolved.
|
|
27
|
+
*
|
|
28
|
+
* Given a string representation of the type, returns a Typedoc type object.
|
|
29
|
+
*/
|
|
30
|
+
registerType(docspecType) {
|
|
31
|
+
const newType = {
|
|
32
|
+
name: docspecType?.replaceAll(/#.*/g, '').replaceAll('\n', '').trim() ?? 'Undefined',
|
|
33
|
+
type: 'reference'
|
|
34
|
+
};
|
|
35
|
+
this.typedocTypes.push(newType);
|
|
36
|
+
return newType;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Parse the registered Python types using Python's ast module.
|
|
41
|
+
* For the actual Python implementation, see `parse_types.py`.
|
|
42
|
+
*
|
|
43
|
+
* Modifies the objects registered with `registerType` in-place.
|
|
44
|
+
*
|
|
45
|
+
* @param typedocTypes The "opaque" Python types to parse.
|
|
46
|
+
* @returns {void} Nothing. The registered types are mutated in-place.
|
|
47
|
+
*/
|
|
48
|
+
resolveTypes() {
|
|
49
|
+
fs__default.default.writeFileSync(RAW_TYPES_JSON_FILEPATH, JSON.stringify(this.typedocTypes.map(x => {
|
|
50
|
+
if (x.type === 'reference') {
|
|
51
|
+
return x.name;
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}).filter(Boolean)));
|
|
55
|
+
childProcess__default.default.spawnSync('python', [PYTHON_SCRIPT_FILEPATH, RAW_TYPES_JSON_FILEPATH]);
|
|
56
|
+
const parsedTypes = JSON.parse(fs__default.default.readFileSync(PARSED_TYPES_JSON_FILEPATH, 'utf8'));
|
|
57
|
+
for (const originalType of this.typedocTypes) {
|
|
58
|
+
if (originalType.type === 'reference') {
|
|
59
|
+
const parsedType = parsedTypes[originalType.name];
|
|
60
|
+
if (parsedType) {
|
|
61
|
+
for (const key of Object.keys(parsedType)) {
|
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
63
|
+
originalType[key] = parsedType[key];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Strips the Optional[] type from the type string,
|
|
72
|
+
* and replaces generic types with just the main type.
|
|
73
|
+
*/
|
|
74
|
+
getBaseType(type) {
|
|
75
|
+
return type?.replace(/Optional\[(.*)]/g, '$1').split('[')[0];
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.PythonTypeResolver = PythonTypeResolver;
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../src/plugin/python/type-parsing/index.ts"],"sourcesContent":null,"names":["path","fs","childProcess"],"mappings":";;;;;;;;;;;;AAGA,MAAM,uBAAuB,GAAGA,qBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;AAC1E,MAAM,0BAA0B,GAAGA,qBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAC;AACrF,MAAM,sBAAsB,GAAGA,qBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,kBAA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