@diplodoc/cli 5.46.1 → 5.47.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/build/index.js +3 -3
- package/build/index.mjs +3 -3
- package/package.json +24 -8
- package/tests/.eslintrc.js +9 -0
- package/tests/e2e/__snapshots__/alternates.test.ts.snap +1199 -0
- package/tests/e2e/__snapshots__/assets.spec.ts.snap +0 -0
- package/tests/e2e/__snapshots__/build-content-map.spec.ts.snap +329 -0
- package/tests/e2e/__snapshots__/bundles.spec.ts.snap +172 -0
- package/tests/e2e/__snapshots__/cleanup-empty-dirs.spec.ts.snap +65 -0
- package/tests/e2e/__snapshots__/crawler-manifest.spec.ts.snap +28 -0
- package/tests/e2e/__snapshots__/files.spec.ts.snap +164 -0
- package/tests/e2e/__snapshots__/files.test.ts.snap +146 -0
- package/tests/e2e/__snapshots__/generate-map.spec.ts.snap +408 -0
- package/tests/e2e/__snapshots__/include-toc.test.ts.snap +797 -0
- package/tests/e2e/__snapshots__/include-with-meta.test.ts.snap +67 -0
- package/tests/e2e/__snapshots__/includes-conditions.test.ts.snap +78 -0
- package/tests/e2e/__snapshots__/includes.test.ts.snap +780 -0
- package/tests/e2e/__snapshots__/init.test.ts.snap +283 -0
- package/tests/e2e/__snapshots__/llms.spec.ts.snap +257 -0
- package/tests/e2e/__snapshots__/load-custom-resources.spec.ts.snap +362 -0
- package/tests/e2e/__snapshots__/markdown-options.spec.ts.snap +209 -0
- package/tests/e2e/__snapshots__/merge-includes.spec.ts.snap +1058 -0
- package/tests/e2e/__snapshots__/metadata.spec.ts.snap +200 -0
- package/tests/e2e/__snapshots__/neuro-expert.test.ts.snap +625 -0
- package/tests/e2e/__snapshots__/pdf-page.spec.ts.snap +341 -0
- package/tests/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
- package/tests/e2e/__snapshots__/preprocess.test.ts.snap +1558 -0
- package/tests/e2e/__snapshots__/regression.test.ts.snap +2033 -0
- package/tests/e2e/__snapshots__/restricted-access.test.ts.snap +244 -0
- package/tests/e2e/__snapshots__/rtl.spec.ts.snap +234 -0
- package/tests/e2e/__snapshots__/search.test.ts.snap +56 -0
- package/tests/e2e/__snapshots__/single-page.spec.ts.snap +163 -0
- package/tests/e2e/__snapshots__/skip-html-extension.spec.ts.snap +519 -0
- package/tests/e2e/__snapshots__/toc-label.test.ts.snap +127 -0
- package/tests/e2e/__snapshots__/translation.spec.ts.snap +2386 -0
- package/tests/e2e/__snapshots__/vars-conditions.spec.ts.snap +131 -0
- package/tests/e2e/alternates.test.ts +49 -0
- package/tests/e2e/assets.spec.ts +31 -0
- package/tests/e2e/autotitles.spec.ts +37 -0
- package/tests/e2e/build-content-map.spec.ts +220 -0
- package/tests/e2e/bundles.spec.ts +16 -0
- package/tests/e2e/cleanup-empty-dirs.spec.ts +59 -0
- package/tests/e2e/crawler-manifest.spec.ts +129 -0
- package/tests/e2e/disable-csp.spec.ts +55 -0
- package/tests/e2e/empty-presets.spec.ts +32 -0
- package/tests/e2e/errors.spec.ts +158 -0
- package/tests/e2e/files.spec.ts +21 -0
- package/tests/e2e/generate-map.spec.ts +47 -0
- package/tests/e2e/include-toc.test.ts +73 -0
- package/tests/e2e/include-with-meta.test.ts +20 -0
- package/tests/e2e/includes-conditions.test.ts +23 -0
- package/tests/e2e/includes.test.ts +52 -0
- package/tests/e2e/init.test.ts +105 -0
- package/tests/e2e/llms.spec.ts +24 -0
- package/tests/e2e/load-custom-resources.spec.ts +23 -0
- package/tests/e2e/markdown-options.spec.ts +17 -0
- package/tests/e2e/merge-includes.spec.ts +196 -0
- package/tests/e2e/metadata.spec.ts +79 -0
- package/tests/e2e/nested-include-links.spec.ts +26 -0
- package/tests/e2e/neuro-expert.test.ts +16 -0
- package/tests/e2e/openapi-companion.spec.ts +213 -0
- package/tests/e2e/openapi-include-size.spec.ts +55 -0
- package/tests/e2e/pdf-page.spec.ts +127 -0
- package/tests/e2e/plugin-corner-cases.spec.ts +14 -0
- package/tests/e2e/preprocess.test.ts +40 -0
- package/tests/e2e/redirects-validation.spec.ts +62 -0
- package/tests/e2e/regression.test.ts +39 -0
- package/tests/e2e/restricted-access.test.ts +19 -0
- package/tests/e2e/rtl.spec.ts +17 -0
- package/tests/e2e/search.test.ts +16 -0
- package/tests/e2e/single-page.spec.ts +23 -0
- package/tests/e2e/skip-html-extension.spec.ts +17 -0
- package/tests/e2e/themer.test.ts +307 -0
- package/tests/e2e/toc-label.test.ts +23 -0
- package/tests/e2e/translation.spec.ts +221 -0
- package/tests/e2e/vars-conditions.spec.ts +16 -0
- package/tests/e2e/vars-ignore.test.ts +168 -0
- package/tests/fixtures/cli.ts +103 -0
- package/tests/fixtures/file.ts +148 -0
- package/tests/fixtures/globals.d.ts +4 -0
- package/tests/fixtures/index.ts +4 -0
- package/tests/fixtures/runner.ts +49 -0
- package/tests/fixtures/test.ts +210 -0
- package/tests/mocks/alternates/input/.yfm +1 -0
- package/tests/mocks/alternates/input/az/about.md +3 -0
- package/tests/mocks/alternates/input/az/deep/test.md +3 -0
- package/tests/mocks/alternates/input/az/index.yaml +3 -0
- package/tests/mocks/alternates/input/az/toc.yaml +6 -0
- package/tests/mocks/alternates/input/en/about.md +3 -0
- package/tests/mocks/alternates/input/en/deep/test.md +3 -0
- package/tests/mocks/alternates/input/en/index.yaml +3 -0
- package/tests/mocks/alternates/input/en/toc.yaml +6 -0
- package/tests/mocks/alternates/input/ru/about.md +8 -0
- package/tests/mocks/alternates/input/ru/deep/test.md +3 -0
- package/tests/mocks/alternates/input/ru/index.yaml +3 -0
- package/tests/mocks/alternates/input/ru/toc.yaml +6 -0
- package/tests/mocks/assets/input/.yfm +1 -0
- package/tests/mocks/assets/input/_images/camera.svg +1 -0
- package/tests/mocks/assets/input/_images/icons/bulb.svg +1 -0
- package/tests/mocks/assets/input/_images/mountain.jpg +0 -0
- package/tests/mocks/assets/input/_images/versions.png +0 -0
- package/tests/mocks/assets/input/index.md +18 -0
- package/tests/mocks/assets/input/page.yaml +7 -0
- package/tests/mocks/assets/input/toc.yaml +7 -0
- package/tests/mocks/autotitles/input/docs/index.md +3 -0
- package/tests/mocks/autotitles/input/docs/target.md +3 -0
- package/tests/mocks/autotitles/input/toc.yaml +5 -0
- package/tests/mocks/build-content-map/autotitle-chain/input/.yfm +0 -0
- package/tests/mocks/build-content-map/autotitle-chain/input/a.md +3 -0
- package/tests/mocks/build-content-map/autotitle-chain/input/b.md +3 -0
- package/tests/mocks/build-content-map/autotitle-chain/input/c.md +3 -0
- package/tests/mocks/build-content-map/autotitle-chain/input/toc.yaml +9 -0
- package/tests/mocks/build-content-map/autotitle-target-with-include/input/.yfm +0 -0
- package/tests/mocks/build-content-map/autotitle-target-with-include/input/_includes/snippet.md +3 -0
- package/tests/mocks/build-content-map/autotitle-target-with-include/input/a.md +3 -0
- package/tests/mocks/build-content-map/autotitle-target-with-include/input/b.md +3 -0
- package/tests/mocks/build-content-map/autotitle-target-with-include/input/toc.yaml +7 -0
- package/tests/mocks/build-content-map/diamond-includes/input/.yfm +0 -0
- package/tests/mocks/build-content-map/diamond-includes/input/_includes/branch-a.md +5 -0
- package/tests/mocks/build-content-map/diamond-includes/input/_includes/branch-b.md +5 -0
- package/tests/mocks/build-content-map/diamond-includes/input/_includes/shared.md +3 -0
- package/tests/mocks/build-content-map/diamond-includes/input/index.md +7 -0
- package/tests/mocks/build-content-map/diamond-includes/input/toc.yaml +5 -0
- package/tests/mocks/build-content-map/nested-includes/input/.yfm +0 -0
- package/tests/mocks/build-content-map/nested-includes/input/_includes/level1.md +5 -0
- package/tests/mocks/build-content-map/nested-includes/input/_includes/level2.md +3 -0
- package/tests/mocks/build-content-map/nested-includes/input/index.md +5 -0
- package/tests/mocks/build-content-map/nested-includes/input/toc.yaml +5 -0
- package/tests/mocks/build-content-map/with-autotitles/input/.yfm +0 -0
- package/tests/mocks/build-content-map/with-autotitles/input/index.md +3 -0
- package/tests/mocks/build-content-map/with-autotitles/input/other.md +3 -0
- package/tests/mocks/build-content-map/with-autotitles/input/toc.yaml +7 -0
- package/tests/mocks/build-content-map/with-includes/input/.yfm +0 -0
- package/tests/mocks/build-content-map/with-includes/input/_includes/snippet.md +1 -0
- package/tests/mocks/build-content-map/with-includes/input/index.md +5 -0
- package/tests/mocks/build-content-map/with-includes/input/logo.svg +1 -0
- package/tests/mocks/build-content-map/with-includes/input/toc.yaml +5 -0
- package/tests/mocks/bundles/input/.yfm +13 -0
- package/tests/mocks/bundles/input/index.md +12 -0
- package/tests/mocks/bundles/input/page1.md +3 -0
- package/tests/mocks/bundles/input/page2.md +5 -0
- package/tests/mocks/bundles/input/toc.yaml +9 -0
- package/tests/mocks/cleanup-empty-dirs/input/.yfm +2 -0
- package/tests/mocks/cleanup-empty-dirs/input/active/page.md +5 -0
- package/tests/mocks/cleanup-empty-dirs/input/active/presets.yaml +2 -0
- package/tests/mocks/cleanup-empty-dirs/input/active/toc.yaml +4 -0
- package/tests/mocks/cleanup-empty-dirs/input/empty-section/page.md +5 -0
- package/tests/mocks/cleanup-empty-dirs/input/empty-section/presets.yaml +2 -0
- package/tests/mocks/cleanup-empty-dirs/input/empty-section/toc.yaml +5 -0
- package/tests/mocks/cleanup-empty-dirs/input/index.md +5 -0
- package/tests/mocks/cleanup-empty-dirs/input/presets.yaml +2 -0
- package/tests/mocks/cleanup-empty-dirs/input/toc.yaml +5 -0
- package/tests/mocks/crawler-manifest/config/input/.yfm +1 -0
- package/tests/mocks/crawler-manifest/config/input/index.md +3 -0
- package/tests/mocks/crawler-manifest/config/input/toc.yaml +4 -0
- package/tests/mocks/crawler-manifest/exclude/input/.yfm +9 -0
- package/tests/mocks/crawler-manifest/exclude/input/index.md +5 -0
- package/tests/mocks/crawler-manifest/exclude/input/toc.yaml +4 -0
- package/tests/mocks/crawler-manifest/no-links/input/index.md +5 -0
- package/tests/mocks/crawler-manifest/no-links/input/toc.yaml +4 -0
- package/tests/mocks/crawler-manifest/notifications-docs-viewer/input/.yfm +8 -0
- package/tests/mocks/crawler-manifest/notifications-docs-viewer/input/index.md +3 -0
- package/tests/mocks/crawler-manifest/notifications-docs-viewer/input/toc.yaml +4 -0
- package/tests/mocks/crawler-manifest/notifications-no-receivers/input/.yfm +5 -0
- package/tests/mocks/crawler-manifest/notifications-no-receivers/input/index.md +3 -0
- package/tests/mocks/crawler-manifest/notifications-no-receivers/input/toc.yaml +4 -0
- package/tests/mocks/crawler-manifest/notifications-root/input/.yfm +11 -0
- package/tests/mocks/crawler-manifest/notifications-root/input/index.md +3 -0
- package/tests/mocks/crawler-manifest/notifications-root/input/toc.yaml +4 -0
- package/tests/mocks/crawler-manifest/with-links/input/redirects.yaml +5 -0
- package/tests/mocks/crawler-manifest/with-links/input/ru/_includes/snippet.md +1 -0
- package/tests/mocks/crawler-manifest/with-links/input/ru/index.md +35 -0
- package/tests/mocks/crawler-manifest/with-links/input/ru/leading.yaml +5 -0
- package/tests/mocks/crawler-manifest/with-links/input/ru/no-links.md +3 -0
- package/tests/mocks/crawler-manifest/with-links/input/ru/references.md +5 -0
- package/tests/mocks/crawler-manifest/with-links/input/toc.yaml +12 -0
- package/tests/mocks/disable-csp/input/.yfm +8 -0
- package/tests/mocks/disable-csp/input/en/index.md +3 -0
- package/tests/mocks/disable-csp/input/en/page.md +3 -0
- package/tests/mocks/disable-csp/input/en/toc.yaml +5 -0
- package/tests/mocks/docs-viewer-interface/input/.yfm +6 -0
- package/tests/mocks/docs-viewer-interface/input/index.md +3 -0
- package/tests/mocks/docs-viewer-interface/input/toc.yaml +5 -0
- package/tests/mocks/empty-presets/input/.yfm +1 -0
- package/tests/mocks/empty-presets/input/index.md +3 -0
- package/tests/mocks/empty-presets/input/presets.yaml +3 -0
- package/tests/mocks/empty-presets/input/subfolder/presets.yaml +3 -0
- package/tests/mocks/empty-presets/input/subfolder/subpage.md +3 -0
- package/tests/mocks/empty-presets/input/subfolder/toc.yaml +4 -0
- package/tests/mocks/empty-presets/input/toc.yaml +4 -0
- package/tests/mocks/errors/extract-filtered-link/input/filtered.md +1 -0
- package/tests/mocks/errors/extract-filtered-link/input/filtered2.md +0 -0
- package/tests/mocks/errors/extract-filtered-link/input/index.md +7 -0
- package/tests/mocks/errors/extract-filtered-link/input/toc.yaml +1 -0
- package/tests/mocks/errors/invalid-frontmatter/input/index.md +9 -0
- package/tests/mocks/errors/invalid-frontmatter/input/toc.yaml +1 -0
- package/tests/mocks/errors/invalid-toc-entry-href/input/.yfm +1 -0
- package/tests/mocks/errors/invalid-toc-entry-href/input/ru/toc.yaml +3 -0
- package/tests/mocks/errors/invalid-toc-root-array/input/.yfm +1 -0
- package/tests/mocks/errors/invalid-toc-root-array/input/ru/toc.yaml +2 -0
- package/tests/mocks/errors/max-asset-size/input/_images/large-image.png +0 -0
- package/tests/mocks/errors/max-asset-size/input/index.md +5 -0
- package/tests/mocks/errors/max-asset-size/input/toc.yaml +1 -0
- package/tests/mocks/errors/object-validation/input/index.md +3 -0
- package/tests/mocks/errors/object-validation/input/toc.yaml +14 -0
- package/tests/mocks/errors/unreachable-link/input/exists.md +1 -0
- package/tests/mocks/errors/unreachable-link/input/index.md +2 -0
- package/tests/mocks/errors/unreachable-link/input/toc.yaml +1 -0
- package/tests/mocks/errors/unreachable-link-in-include/input/_includes/chapter.md +1 -0
- package/tests/mocks/errors/unreachable-link-in-include/input/index.md +5 -0
- package/tests/mocks/errors/unreachable-link-in-include/input/toc.yaml +1 -0
- package/tests/mocks/errors/unreachable-link-in-nested-include/input/_includes/chapter.md +3 -0
- package/tests/mocks/errors/unreachable-link-in-nested-include/input/_includes/details.md +1 -0
- package/tests/mocks/errors/unreachable-link-in-nested-include/input/index.md +3 -0
- package/tests/mocks/errors/unreachable-link-in-nested-include/input/toc.yaml +1 -0
- package/tests/mocks/errors/valid-link-in-include/input/_includes/content.md +1 -0
- package/tests/mocks/errors/valid-link-in-include/input/index.md +3 -0
- package/tests/mocks/errors/valid-link-in-include/input/page.md +3 -0
- package/tests/mocks/errors/valid-link-in-include/input/toc.yaml +4 -0
- package/tests/mocks/fileContent/metadata/authorAliasInMetadata.md +7 -0
- package/tests/mocks/fileContent/metadata/fullAuthorInMetadata.md +10 -0
- package/tests/mocks/fileContent/metadata/includesContent/firstIncludeFile.md +7 -0
- package/tests/mocks/fileContent/metadata/includesContent/secondIncludeFile.md +5 -0
- package/tests/mocks/fileContent/metadata/includesContent/withIncludes.md +7 -0
- package/tests/mocks/fileContent/metadata/keywordsInMetadata.md +9 -0
- package/tests/mocks/fileContent/metadata/simpleMetadata.md +6 -0
- package/tests/mocks/fileContent/metadata/substitutionsInMetadataPropertyKeys.md +7 -0
- package/tests/mocks/fileContent/metadata/substitutionsInMetadataPropertyValues.md +11 -0
- package/tests/mocks/fileContent/metadata/substitutionsWithEmptyString.md +7 -0
- package/tests/mocks/fileContent/metadata/variableInMetadata.md +7 -0
- package/tests/mocks/fileContent/metadata/withAdditionalSeparatorsInContent.md +9 -0
- package/tests/mocks/fileContent/metadata/withoutMetadata.md +2 -0
- package/tests/mocks/fileContent/metadata/withoutMetadataWithAdditionalSeparatorsInContent.md +6 -0
- package/tests/mocks/files/input/_assets/test.csv +0 -0
- package/tests/mocks/files/input/_assets/test.docx +0 -0
- package/tests/mocks/files/input/_assets/test.pdf +0 -0
- package/tests/mocks/files/input/_assets/test.pptx +0 -0
- package/tests/mocks/files/input/_assets/test.txt +0 -0
- package/tests/mocks/files/input/_assets/test.xlsx +0 -0
- package/tests/mocks/files/input/_assets/test.yaml +50 -0
- package/tests/mocks/files/input/index.md +17 -0
- package/tests/mocks/files/input/pc-index.yaml +70 -0
- package/tests/mocks/files/input/toc.yaml +6 -0
- package/tests/mocks/generate-map/test1/input/.yfm +0 -0
- package/tests/mocks/generate-map/test1/input/ru/_includes/file.md +0 -0
- package/tests/mocks/generate-map/test1/input/ru/_includes/plugins.md +0 -0
- package/tests/mocks/generate-map/test1/input/ru/folder1/a1.md +1 -0
- package/tests/mocks/generate-map/test1/input/ru/folder1/folder2/a1.md +1 -0
- package/tests/mocks/generate-map/test1/input/ru/folder1/folder2/toc.yaml +5 -0
- package/tests/mocks/generate-map/test1/input/ru/folder1/toc.yaml +7 -0
- package/tests/mocks/generate-map/test1/input/ru/index.md +0 -0
- package/tests/mocks/generate-map/test1/input/ru/plugins/import.md +0 -0
- package/tests/mocks/generate-map/test1/input/ru/plugins/index.md +0 -0
- package/tests/mocks/generate-map/test1/input/ru/project/config.md +0 -0
- package/tests/mocks/generate-map/test1/input/ru/project/index.md +0 -0
- package/tests/mocks/generate-map/test1/input/ru/settings.md +0 -0
- package/tests/mocks/generate-map/test1/input/ru/toc.yaml +22 -0
- package/tests/mocks/generate-map/test2/input/en/_includes/file.md +0 -0
- package/tests/mocks/generate-map/test2/input/en/_includes/plugins.md +0 -0
- package/tests/mocks/generate-map/test2/input/en/index.md +0 -0
- package/tests/mocks/generate-map/test2/input/en/plugins/import.md +0 -0
- package/tests/mocks/generate-map/test2/input/en/plugins/index.md +0 -0
- package/tests/mocks/generate-map/test2/input/en/project/config.md +0 -0
- package/tests/mocks/generate-map/test2/input/en/project/index.md +0 -0
- package/tests/mocks/generate-map/test2/input/en/settings.md +0 -0
- package/tests/mocks/generate-map/test2/input/en/toc.yaml +18 -0
- package/tests/mocks/generate-map/test2/input/ru/_includes/file.md +0 -0
- package/tests/mocks/generate-map/test2/input/ru/_includes/plugins.md +0 -0
- package/tests/mocks/generate-map/test2/input/ru/index.md +0 -0
- package/tests/mocks/generate-map/test2/input/ru/plugins/import.md +0 -0
- package/tests/mocks/generate-map/test2/input/ru/plugins/index.md +0 -0
- package/tests/mocks/generate-map/test2/input/ru/project/config.md +0 -0
- package/tests/mocks/generate-map/test2/input/ru/project/index.md +0 -0
- package/tests/mocks/generate-map/test2/input/ru/settings.md +0 -0
- package/tests/mocks/generate-map/test2/input/ru/toc.yaml +18 -0
- package/tests/mocks/generate-map/test3/input/.yfm +0 -0
- package/tests/mocks/generate-map/test3/input/ru/_includes/file.md +0 -0
- package/tests/mocks/generate-map/test3/input/ru/_includes/plugins.md +0 -0
- package/tests/mocks/generate-map/test3/input/ru/folder1/a1.md +1 -0
- package/tests/mocks/generate-map/test3/input/ru/folder1/folder2/a1.md +1 -0
- package/tests/mocks/generate-map/test3/input/ru/folder1/folder2/toc.yaml +5 -0
- package/tests/mocks/generate-map/test3/input/ru/folder1/toc.yaml +7 -0
- package/tests/mocks/generate-map/test3/input/ru/index.md +0 -0
- package/tests/mocks/generate-map/test3/input/ru/plugins/import.md +0 -0
- package/tests/mocks/generate-map/test3/input/ru/plugins/index.md +0 -0
- package/tests/mocks/generate-map/test3/input/ru/project/config.md +0 -0
- package/tests/mocks/generate-map/test3/input/ru/project/index.md +0 -0
- package/tests/mocks/generate-map/test3/input/ru/settings.md +0 -0
- package/tests/mocks/generate-map/test3/input/ru/toc.yaml +22 -0
- package/tests/mocks/include-skip/test1/input/includes/missing.md +1 -0
- package/tests/mocks/include-skip/test1/input/index.md +3 -0
- package/tests/mocks/include-skip/test1/input/toc.yaml +3 -0
- package/tests/mocks/include-skip/test2/input/includes/missing.md +1 -0
- package/tests/mocks/include-skip/test2/input/includes/valid.md +4 -0
- package/tests/mocks/include-skip/test2/input/index.md +4 -0
- package/tests/mocks/include-skip/test2/input/toc.yaml +4 -0
- package/tests/mocks/include-toc/test1/input/a1.md +1 -0
- package/tests/mocks/include-toc/test1/input/folder1/a1.md +1 -0
- package/tests/mocks/include-toc/test1/input/folder1/folder2/a1.md +1 -0
- package/tests/mocks/include-toc/test1/input/folder1/folder2/toc.yaml +5 -0
- package/tests/mocks/include-toc/test1/input/folder1/toc.yaml +7 -0
- package/tests/mocks/include-toc/test1/input/toc.yaml +9 -0
- package/tests/mocks/include-toc/test10/input/test/index.md +4 -0
- package/tests/mocks/include-toc/test10/input/test/sub/index.md +1 -0
- package/tests/mocks/include-toc/test10/input/test/sub/sub/sub-3.md +1 -0
- package/tests/mocks/include-toc/test10/input/test/sub/sub-1.md +5 -0
- package/tests/mocks/include-toc/test10/input/test/sub/sub-2.md +1 -0
- package/tests/mocks/include-toc/test10/input/test/test.md +1 -0
- package/tests/mocks/include-toc/test10/input/toc.yaml +9 -0
- package/tests/mocks/include-toc/test2/input/.yfm +1 -0
- package/tests/mocks/include-toc/test2/input/file1.md +1 -0
- package/tests/mocks/include-toc/test2/input/fileX.md +1 -0
- package/tests/mocks/include-toc/test2/input/folder/fileA.md +11 -0
- package/tests/mocks/include-toc/test2/input/folder/fileB.md +9 -0
- package/tests/mocks/include-toc/test2/input/folder/folder/fileC.md +1 -0
- package/tests/mocks/include-toc/test2/input/folder/folder/toc.yaml +3 -0
- package/tests/mocks/include-toc/test2/input/folder/toc.yaml +6 -0
- package/tests/mocks/include-toc/test2/input/presets.yaml +2 -0
- package/tests/mocks/include-toc/test2/input/toc.yaml +6 -0
- package/tests/mocks/include-toc/test3/input/product1/core/_includes/inc.md +1 -0
- package/tests/mocks/include-toc/test3/input/product1/core/article1.md +3 -0
- package/tests/mocks/include-toc/test3/input/product1/core/toc_m.yaml +2 -0
- package/tests/mocks/include-toc/test3/input/product1/product/toc_p.yaml +3 -0
- package/tests/mocks/include-toc/test3/input/product1/toc.yaml +3 -0
- package/tests/mocks/include-toc/test3/input/product2/core/_includes/inc.md +1 -0
- package/tests/mocks/include-toc/test3/input/product2/core/article1.md +3 -0
- package/tests/mocks/include-toc/test3/input/product2/core/toc_m.yaml +2 -0
- package/tests/mocks/include-toc/test3/input/product2/overlay1/product/article1.md +3 -0
- package/tests/mocks/include-toc/test3/input/product2/overlay1/product/toc_p.yaml +3 -0
- package/tests/mocks/include-toc/test3/input/product2/overlay1/toc.yaml +2 -0
- package/tests/mocks/include-toc/test3/input/product2/overlay2/product/article1.md +3 -0
- package/tests/mocks/include-toc/test3/input/product2/overlay2/product/toc_p.yaml +3 -0
- package/tests/mocks/include-toc/test3/input/product2/overlay2/toc.yaml +2 -0
- package/tests/mocks/include-toc/test3/input/product2/overlay3/product/toc_p.yaml +3 -0
- package/tests/mocks/include-toc/test3/input/product2/overlay3/toc.yaml +2 -0
- package/tests/mocks/include-toc/test3/input/product2/p2.md +4 -0
- package/tests/mocks/include-toc/test3/input/product2/toc.yaml +10 -0
- package/tests/mocks/include-toc/test4/input/a1.md +1 -0
- package/tests/mocks/include-toc/test4/input/index.yaml +20 -0
- package/tests/mocks/include-toc/test4/input/toc.yaml +9 -0
- package/tests/mocks/include-toc/test5/input/core/concepts/toc_i.yaml +2 -0
- package/tests/mocks/include-toc/test5/input/core/concepts/toc_p.yaml +3 -0
- package/tests/mocks/include-toc/test5/input/core/toc_i.yaml +6 -0
- package/tests/mocks/include-toc/test5/input/core/toc_m.yaml +3 -0
- package/tests/mocks/include-toc/test5/input/core/toc_p.yaml +5 -0
- package/tests/mocks/include-toc/test5/input/overlay/toc_p.yaml +3 -0
- package/tests/mocks/include-toc/test5/input/toc.yaml +4 -0
- package/tests/mocks/include-toc/test6/input/test/index.md +4 -0
- package/tests/mocks/include-toc/test6/input/test/sub/sub/sub-3.md +1 -0
- package/tests/mocks/include-toc/test6/input/test/sub/sub-1.md +5 -0
- package/tests/mocks/include-toc/test6/input/test/sub/sub-2.md +1 -0
- package/tests/mocks/include-toc/test6/input/test/test.md +1 -0
- package/tests/mocks/include-toc/test6/input/toc.yaml +8 -0
- package/tests/mocks/include-toc/test7/input/.yfm +1 -0
- package/tests/mocks/include-toc/test7/input/ru/presets.yaml +2 -0
- package/tests/mocks/include-toc/test7/input/ru/sub/folder/index.yaml +4 -0
- package/tests/mocks/include-toc/test7/input/ru/sub/folder/toc.yaml +3 -0
- package/tests/mocks/include-toc/test7/input/ru/toc.yaml +3 -0
- package/tests/mocks/include-toc/test8/input/test/index.md +4 -0
- package/tests/mocks/include-toc/test8/input/test/sub/index.md +1 -0
- package/tests/mocks/include-toc/test8/input/test/sub/sub/sub-3.md +1 -0
- package/tests/mocks/include-toc/test8/input/test/sub/sub-1.md +5 -0
- package/tests/mocks/include-toc/test8/input/test/sub/sub-2.md +1 -0
- package/tests/mocks/include-toc/test8/input/test/test.md +1 -0
- package/tests/mocks/include-toc/test8/input/toc.yaml +9 -0
- package/tests/mocks/include-toc/test9/input/test/index.md +4 -0
- package/tests/mocks/include-toc/test9/input/test/sub/index.md +1 -0
- package/tests/mocks/include-toc/test9/input/test/sub/sub/sub-3.md +1 -0
- package/tests/mocks/include-toc/test9/input/test/sub/sub-1.md +5 -0
- package/tests/mocks/include-toc/test9/input/test/sub/sub-2.md +1 -0
- package/tests/mocks/include-toc/test9/input/test/test.md +1 -0
- package/tests/mocks/include-toc/test9/input/toc.yaml +8 -0
- package/tests/mocks/include-with-meta/input/included.md +16 -0
- package/tests/mocks/include-with-meta/input/index.md +15 -0
- package/tests/mocks/include-with-meta/input/toc.yaml +6 -0
- package/tests/mocks/includes/input/.yfm +1 -0
- package/tests/mocks/includes/input/_assets/4.png +0 -0
- package/tests/mocks/includes/input/includes/commented-include.md +5 -0
- package/tests/mocks/includes/input/includes/deep-include.md +13 -0
- package/tests/mocks/includes/input/includes/fragments.md +23 -0
- package/tests/mocks/includes/input/includes/nested-include.md +5 -0
- package/tests/mocks/includes/input/includes/no-title-include.md +19 -0
- package/tests/mocks/includes/input/includes/root-include.md +11 -0
- package/tests/mocks/includes/input/includes/user.md +5 -0
- package/tests/mocks/includes/input/index.md +69 -0
- package/tests/mocks/includes/input/level1/includes/level1-include.md +11 -0
- package/tests/mocks/includes/input/level1/level2/includes/level2-include.md +11 -0
- package/tests/mocks/includes/input/level1/level2/page2.md +29 -0
- package/tests/mocks/includes/input/level1/page1.md +29 -0
- package/tests/mocks/includes/input/presets.yaml +3 -0
- package/tests/mocks/includes/input/toc-include.md +13 -0
- package/tests/mocks/includes/input/toc.yaml +13 -0
- package/tests/mocks/includes-conditions/input/includes/first.md +5 -0
- package/tests/mocks/includes-conditions/input/includes/second.md +5 -0
- package/tests/mocks/includes-conditions/input/includes/third.md +1 -0
- package/tests/mocks/includes-conditions/input/index.md +7 -0
- package/tests/mocks/includes-conditions/input/presets.yaml +2 -0
- package/tests/mocks/includes-conditions/input/toc.yaml +3 -0
- package/tests/mocks/includes-missing/input/index.md +7 -0
- package/tests/mocks/includes-missing/input/toc.yaml +3 -0
- package/tests/mocks/llms/input/.yfm +1 -0
- package/tests/mocks/llms/input/_includes/requirements.md +4 -0
- package/tests/mocks/llms/input/api.md +9 -0
- package/tests/mocks/llms/input/beta.md +4 -0
- package/tests/mocks/llms/input/index.md +8 -0
- package/tests/mocks/llms/input/presets.yaml +2 -0
- package/tests/mocks/llms/input/start.md +9 -0
- package/tests/mocks/llms/input/toc.yaml +11 -0
- package/tests/mocks/load-custom-resources/md2html-with-resources/input/.yfm +5 -0
- package/tests/mocks/load-custom-resources/md2html-with-resources/input/_assets/script/test1.js +0 -0
- package/tests/mocks/load-custom-resources/md2html-with-resources/input/_assets/style/test.css +13 -0
- package/tests/mocks/load-custom-resources/md2html-with-resources/input/index.yaml +9 -0
- package/tests/mocks/load-custom-resources/md2html-with-resources/input/page.md +14 -0
- package/tests/mocks/load-custom-resources/md2html-with-resources/input/project/config.md +1 -0
- package/tests/mocks/load-custom-resources/md2html-with-resources/input/toc.yaml +7 -0
- package/tests/mocks/load-custom-resources/md2md-with-resources/input/.yfm +5 -0
- package/tests/mocks/load-custom-resources/md2md-with-resources/input/_assets/script/test1.js +0 -0
- package/tests/mocks/load-custom-resources/md2md-with-resources/input/_assets/style/test.css +13 -0
- package/tests/mocks/load-custom-resources/md2md-with-resources/input/index.yaml +9 -0
- package/tests/mocks/load-custom-resources/md2md-with-resources/input/page.md +14 -0
- package/tests/mocks/load-custom-resources/md2md-with-resources/input/project/config.md +1 -0
- package/tests/mocks/load-custom-resources/md2md-with-resources/input/toc.yaml +7 -0
- package/tests/mocks/load-custom-resources/single-page-with-resources/input/.yfm +5 -0
- package/tests/mocks/load-custom-resources/single-page-with-resources/input/_assets/script/test1.js +0 -0
- package/tests/mocks/load-custom-resources/single-page-with-resources/input/_assets/style/test.css +13 -0
- package/tests/mocks/load-custom-resources/single-page-with-resources/input/index.yaml +9 -0
- package/tests/mocks/load-custom-resources/single-page-with-resources/input/page.md +14 -0
- package/tests/mocks/load-custom-resources/single-page-with-resources/input/project/config.md +1 -0
- package/tests/mocks/load-custom-resources/single-page-with-resources/input/toc.yaml +7 -0
- package/tests/mocks/markdown-options/example-1/input/.yfm +5 -0
- package/tests/mocks/markdown-options/example-1/input/breaks.md +5 -0
- package/tests/mocks/markdown-options/example-1/input/linkify-tlds.md +7 -0
- package/tests/mocks/markdown-options/example-1/input/linkify.md +3 -0
- package/tests/mocks/markdown-options/example-1/input/toc.yaml +7 -0
- package/tests/mocks/markdown-options/example-2/input/.yfm +3 -0
- package/tests/mocks/markdown-options/example-2/input/breaks.md +5 -0
- package/tests/mocks/markdown-options/example-2/input/linkify-tlds.md +7 -0
- package/tests/mocks/markdown-options/example-2/input/linkify.md +3 -0
- package/tests/mocks/markdown-options/example-2/input/toc.yaml +7 -0
- package/tests/mocks/merge-includes/basic/input/_includes/simple.md +3 -0
- package/tests/mocks/merge-includes/basic/input/index.md +3 -0
- package/tests/mocks/merge-includes/basic/input/main.md +7 -0
- package/tests/mocks/merge-includes/basic/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/hash-fallback/input/_includes/sections.md +19 -0
- package/tests/mocks/merge-includes/hash-fallback/input/index.md +1 -0
- package/tests/mocks/merge-includes/hash-fallback/input/main.md +5 -0
- package/tests/mocks/merge-includes/hash-fallback/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/hash-section-html/input/_includes/mixed.md +11 -0
- package/tests/mocks/merge-includes/hash-section-html/input/index.md +3 -0
- package/tests/mocks/merge-includes/hash-section-html/input/main.md +13 -0
- package/tests/mocks/merge-includes/hash-section-html/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/html-comment-blanks/input/_includes/examples.md +27 -0
- package/tests/mocks/merge-includes/html-comment-blanks/input/index.md +3 -0
- package/tests/mocks/merge-includes/html-comment-blanks/input/main.md +15 -0
- package/tests/mocks/merge-includes/html-comment-blanks/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/html-in-list/input/_includes/styles.md +7 -0
- package/tests/mocks/merge-includes/html-in-list/input/index.md +3 -0
- package/tests/mocks/merge-includes/html-in-list/input/main.md +11 -0
- package/tests/mocks/merge-includes/html-in-list/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/include-after-fence/input/_includes/chat-button.md +1 -0
- package/tests/mocks/merge-includes/include-after-fence/input/_includes/footer.md +1 -0
- package/tests/mocks/merge-includes/include-after-fence/input/index.md +3 -0
- package/tests/mocks/merge-includes/include-after-fence/input/main.md +14 -0
- package/tests/mocks/merge-includes/include-after-fence/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/include-in-code-block/input/_includes/glossary.md +1 -0
- package/tests/mocks/merge-includes/include-in-code-block/input/index.md +3 -0
- package/tests/mocks/merge-includes/include-in-code-block/input/main.md +19 -0
- package/tests/mocks/merge-includes/include-in-code-block/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/indent-paragraph-in-include/input/_includes/requirements.md +9 -0
- package/tests/mocks/merge-includes/indent-paragraph-in-include/input/index.md +3 -0
- package/tests/mocks/merge-includes/indent-paragraph-in-include/input/main.md +12 -0
- package/tests/mocks/merge-includes/indent-paragraph-in-include/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/inline-context/input/_includes/snippet.md +12 -0
- package/tests/mocks/merge-includes/inline-context/input/index.md +3 -0
- package/tests/mocks/merge-includes/inline-context/input/main.md +11 -0
- package/tests/mocks/merge-includes/inline-context/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/nested/input/_includes/inner.md +3 -0
- package/tests/mocks/merge-includes/nested/input/_includes/outer.md +7 -0
- package/tests/mocks/merge-includes/nested/input/index.md +3 -0
- package/tests/mocks/merge-includes/nested/input/main.md +7 -0
- package/tests/mocks/merge-includes/nested/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/relative-paths/input/_includes/sub/with-links.md +7 -0
- package/tests/mocks/merge-includes/relative-paths/input/index.md +3 -0
- package/tests/mocks/merge-includes/relative-paths/input/main.md +3 -0
- package/tests/mocks/merge-includes/relative-paths/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/term-extract/input/_includes/chapter.md +7 -0
- package/tests/mocks/merge-includes/term-extract/input/index.md +3 -0
- package/tests/mocks/merge-includes/term-extract/input/main.md +7 -0
- package/tests/mocks/merge-includes/term-extract/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/term-inline/input/_includes/defs.md +20 -0
- package/tests/mocks/merge-includes/term-inline/input/index.md +3 -0
- package/tests/mocks/merge-includes/term-inline/input/main.md +19 -0
- package/tests/mocks/merge-includes/term-inline/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/yfm-table/input/_includes/cell-content.md +1 -0
- package/tests/mocks/merge-includes/yfm-table/input/index.md +3 -0
- package/tests/mocks/merge-includes/yfm-table/input/main.md +12 -0
- package/tests/mocks/merge-includes/yfm-table/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/yfm-table-html-block/input/_includes/button.md +8 -0
- package/tests/mocks/merge-includes/yfm-table-html-block/input/index.md +3 -0
- package/tests/mocks/merge-includes/yfm-table-html-block/input/main.md +12 -0
- package/tests/mocks/merge-includes/yfm-table-html-block/input/toc.yaml +5 -0
- package/tests/mocks/merge-includes/yfm-table-pipe-in-content/input/_includes/example.md +1 -0
- package/tests/mocks/merge-includes/yfm-table-pipe-in-content/input/index.md +3 -0
- package/tests/mocks/merge-includes/yfm-table-pipe-in-content/input/main.md +22 -0
- package/tests/mocks/merge-includes/yfm-table-pipe-in-content/input/toc.yaml +5 -0
- package/tests/mocks/metadata/include-with-csp-meta/input/.yfm +8 -0
- package/tests/mocks/metadata/include-with-csp-meta/input/_includes/support.md +1 -0
- package/tests/mocks/metadata/include-with-csp-meta/input/page.md +7 -0
- package/tests/mocks/metadata/include-with-csp-meta/input/toc.yaml +4 -0
- package/tests/mocks/metadata/md2html-with-metadata/input/.yfm +1 -0
- package/tests/mocks/metadata/md2html-with-metadata/input/index.yaml +9 -0
- package/tests/mocks/metadata/md2html-with-metadata/input/page.md +16 -0
- package/tests/mocks/metadata/md2html-with-metadata/input/presets.yaml +6 -0
- package/tests/mocks/metadata/md2html-with-metadata/input/project/config.md +7 -0
- package/tests/mocks/metadata/md2html-with-metadata/input/toc.yaml +7 -0
- package/tests/mocks/metadata/md2md-with-metadata/input/index.yaml +9 -0
- package/tests/mocks/metadata/md2md-with-metadata/input/page.md +14 -0
- package/tests/mocks/metadata/md2md-with-metadata/input/presets.yaml +6 -0
- package/tests/mocks/metadata/md2md-with-metadata/input/project/config.md +7 -0
- package/tests/mocks/metadata/md2md-with-metadata/input/toc.yaml +7 -0
- package/tests/mocks/nested-docs/input/.yfm +1 -0
- package/tests/mocks/nested-docs/input/.yfm-subdoc +5 -0
- package/tests/mocks/nested-docs/input/index.md +5 -0
- package/tests/mocks/nested-docs/input/presets.yaml +3 -0
- package/tests/mocks/nested-docs/input/subdoc/.yfm +0 -0
- package/tests/mocks/nested-docs/input/subdoc/index.md +5 -0
- package/tests/mocks/nested-docs/input/subdoc/presets.yaml +3 -0
- package/tests/mocks/nested-docs/input/subdoc/toc.yaml +4 -0
- package/tests/mocks/nested-docs/input/toc.yaml +6 -0
- package/tests/mocks/nested-include-links/input/includes/middle.md +4 -0
- package/tests/mocks/nested-include-links/input/other/page.md +4 -0
- package/tests/mocks/nested-include-links/input/sub/deep/entry.md +8 -0
- package/tests/mocks/nested-include-links/input/target.md +4 -0
- package/tests/mocks/nested-include-links/input/toc.yaml +6 -0
- package/tests/mocks/neuro-expert/input/.yfm +14 -0
- package/tests/mocks/neuro-expert/input/en/folder/index.md +1 -0
- package/tests/mocks/neuro-expert/input/en/index-test-html/index.md +4 -0
- package/tests/mocks/neuro-expert/input/en/index.md +11 -0
- package/tests/mocks/neuro-expert/input/en/page1.md +8 -0
- package/tests/mocks/neuro-expert/input/en/page2.md +6 -0
- package/tests/mocks/neuro-expert/input/en/toc.yaml +13 -0
- package/tests/mocks/neuro-expert/input/ru/folder/index.md +1 -0
- package/tests/mocks/neuro-expert/input/ru/index-test-html/index.md +4 -0
- package/tests/mocks/neuro-expert/input/ru/index.md +5 -0
- package/tests/mocks/neuro-expert/input/ru/page1.md +3 -0
- package/tests/mocks/neuro-expert/input/ru/page2.md +11 -0
- package/tests/mocks/neuro-expert/input/ru/toc.yaml +12 -0
- package/tests/mocks/openapi-companion/input/petstore.yaml +29 -0
- package/tests/mocks/openapi-companion/input/toc.yaml +9 -0
- package/tests/mocks/openapi-companion-disabled/input/.yfm +2 -0
- package/tests/mocks/openapi-companion-disabled/input/petstore.yaml +29 -0
- package/tests/mocks/openapi-companion-disabled/input/toc.yaml +9 -0
- package/tests/mocks/openapi-companion-link/input/petstore.yaml +29 -0
- package/tests/mocks/openapi-companion-link/input/toc.yaml +12 -0
- package/tests/mocks/openapi-include-size-exceeds/input/openapi-spec.yaml +190 -0
- package/tests/mocks/openapi-include-size-exceeds/input/toc.yaml +9 -0
- package/tests/mocks/openapi-include-size-within/input/openapi-spec.yaml +16 -0
- package/tests/mocks/openapi-include-size-within/input/toc.yaml +9 -0
- package/tests/mocks/pdf-page/custom-pdf-icon/input/.yfm +6 -0
- package/tests/mocks/pdf-page/custom-pdf-icon/input/_assets/custom-pdf-icon.svg +1 -0
- package/tests/mocks/pdf-page/custom-pdf-icon/input/index.md +1 -0
- package/tests/mocks/pdf-page/custom-pdf-icon/input/pdf/output.pdf +0 -0
- package/tests/mocks/pdf-page/custom-pdf-icon/input/toc.yaml +2 -0
- package/tests/mocks/pdf-page/flag-enabled/input/__includes/include1.md +3 -0
- package/tests/mocks/pdf-page/flag-enabled/input/index.md +7 -0
- package/tests/mocks/pdf-page/flag-enabled/input/page1.md +6 -0
- package/tests/mocks/pdf-page/flag-enabled/input/page2.md +7 -0
- package/tests/mocks/pdf-page/flag-enabled/input/page3.md +1 -0
- package/tests/mocks/pdf-page/flag-enabled/input/syntax/test.md +1 -0
- package/tests/mocks/pdf-page/flag-enabled/input/toc.yaml +17 -0
- package/tests/mocks/pdf-page/multiple-tocs/input/.yfm +2 -0
- package/tests/mocks/pdf-page/multiple-tocs/input/section1/index.md +5 -0
- package/tests/mocks/pdf-page/multiple-tocs/input/section1/page1.md +3 -0
- package/tests/mocks/pdf-page/multiple-tocs/input/section1/toc.yaml +6 -0
- package/tests/mocks/pdf-page/multiple-tocs/input/section2/index.md +5 -0
- package/tests/mocks/pdf-page/multiple-tocs/input/section2/page1.md +3 -0
- package/tests/mocks/pdf-page/multiple-tocs/input/section2/toc.yaml +6 -0
- package/tests/mocks/pdf-page/pc-page/input/__images/mountain.jpg +0 -0
- package/tests/mocks/pdf-page/pc-page/input/__includes/include1.md +1 -0
- package/tests/mocks/pdf-page/pc-page/input/index.md +1 -0
- package/tests/mocks/pdf-page/pc-page/input/index.yaml +87 -0
- package/tests/mocks/pdf-page/pc-page/input/index2.yaml +135 -0
- package/tests/mocks/pdf-page/pc-page/input/page1.md +3 -0
- package/tests/mocks/pdf-page/pc-page/input/page2.md +3 -0
- package/tests/mocks/pdf-page/pc-page/input/pdf-titles/pdf-title-page1.md +13 -0
- package/tests/mocks/pdf-page/pc-page/input/pdf-titles/pdf-title-page2.md +5 -0
- package/tests/mocks/pdf-page/pc-page/input/presets.yaml +2 -0
- package/tests/mocks/pdf-page/pc-page/input/toc.yaml +13 -0
- package/tests/mocks/pdf-page/pc-page/input/with-pc-page.md +363 -0
- package/tests/mocks/pdf-page/title-pages/input/.yfm +6 -0
- package/tests/mocks/pdf-page/title-pages/input/__assets/start-page.css +16 -0
- package/tests/mocks/pdf-page/title-pages/input/__images/mountain.jpg +0 -0
- package/tests/mocks/pdf-page/title-pages/input/__includes/include1.md +1 -0
- package/tests/mocks/pdf-page/title-pages/input/index.md +1 -0
- package/tests/mocks/pdf-page/title-pages/input/page1.md +3 -0
- package/tests/mocks/pdf-page/title-pages/input/page2.md +3 -0
- package/tests/mocks/pdf-page/title-pages/input/pdf-endings/pdf-ending-page1.md +13 -0
- package/tests/mocks/pdf-page/title-pages/input/pdf-endings/pdf-ending-page2.md +3 -0
- package/tests/mocks/pdf-page/title-pages/input/pdf-titles/pdf-title-page1.md +13 -0
- package/tests/mocks/pdf-page/title-pages/input/pdf-titles/pdf-title-page2.md +3 -0
- package/tests/mocks/pdf-page/title-pages/input/presets.yaml +2 -0
- package/tests/mocks/pdf-page/title-pages/input/toc.yaml +15 -0
- package/tests/mocks/pdf-page/yfm-config/input/.yfm +5 -0
- package/tests/mocks/pdf-page/yfm-config/input/index.md +6 -0
- package/tests/mocks/pdf-page/yfm-config/input/page1.md +3 -0
- package/tests/mocks/pdf-page/yfm-config/input/page2.md +7 -0
- package/tests/mocks/pdf-page/yfm-config/input/page3.md +1 -0
- package/tests/mocks/pdf-page/yfm-config/input/toc.yaml +15 -0
- package/tests/mocks/plugin-corner-cases/images-in-deflists/input/image.jpeg +0 -0
- package/tests/mocks/plugin-corner-cases/images-in-deflists/input/index.md +5 -0
- package/tests/mocks/plugin-corner-cases/images-in-deflists/input/toc.yaml +4 -0
- package/tests/mocks/preprocess/input/.yfm +1 -0
- package/tests/mocks/preprocess/input/1.md +29 -0
- package/tests/mocks/preprocess/input/_assets/1.png +0 -0
- package/tests/mocks/preprocess/input/_assets/1.svg +15 -0
- package/tests/mocks/preprocess/input/_assets/2.svg +19 -0
- package/tests/mocks/preprocess/input/autotitle.md +39 -0
- package/tests/mocks/preprocess/input/commented-include.md +3 -0
- package/tests/mocks/preprocess/input/images.md +163 -0
- package/tests/mocks/preprocess/input/included-item.md +12 -0
- package/tests/mocks/preprocess/input/includes/deep.md +1 -0
- package/tests/mocks/preprocess/input/includes/deepWithIndent.md +6 -0
- package/tests/mocks/preprocess/input/includes/level1.md +9 -0
- package/tests/mocks/preprocess/input/includes/level11.md +1 -0
- package/tests/mocks/preprocess/input/includes/presets.yaml +2 -0
- package/tests/mocks/preprocess/input/includes/sub/level2.md +7 -0
- package/tests/mocks/preprocess/input/includes/sub/user.md +1 -0
- package/tests/mocks/preprocess/input/includes/sub/userWithIndent.md +5 -0
- package/tests/mocks/preprocess/input/includes/test.md +1 -0
- package/tests/mocks/preprocess/input/includes/user.md +1 -0
- package/tests/mocks/preprocess/input/includes.md +18 -0
- package/tests/mocks/preprocess/input/latex.md +3 -0
- package/tests/mocks/preprocess/input/level0.md +7 -0
- package/tests/mocks/preprocess/input/level1/level1.md +7 -0
- package/tests/mocks/preprocess/input/level1/level2/level2.md +6 -0
- package/tests/mocks/preprocess/input/level1/toc.yaml +5 -0
- package/tests/mocks/preprocess/input/mermaid.md +13 -0
- package/tests/mocks/preprocess/input/presets.yaml +8 -0
- package/tests/mocks/preprocess/input/sub/folder/item-1.md +7 -0
- package/tests/mocks/preprocess/input/sub/toc.yaml +5 -0
- package/tests/mocks/preprocess/input/toc-i.yaml +3 -0
- package/tests/mocks/preprocess/input/toc.yaml +24 -0
- package/tests/mocks/redirects-validation/extensions-deprecation/input/blah.md +0 -0
- package/tests/mocks/redirects-validation/extensions-deprecation/input/redirects.yaml +5 -0
- package/tests/mocks/redirects-validation/extensions-deprecation/input/toc.yaml +4 -0
- package/tests/mocks/redirects-validation/invalid-regex/input/blah.md +0 -0
- package/tests/mocks/redirects-validation/invalid-regex/input/redirects.yaml +3 -0
- package/tests/mocks/redirects-validation/invalid-regex/input/toc.yaml +4 -0
- package/tests/mocks/redirects-validation/malformed-redirect/input/blah.md +0 -0
- package/tests/mocks/redirects-validation/malformed-redirect/input/redirects.yaml +6 -0
- package/tests/mocks/redirects-validation/malformed-redirect/input/toc.yaml +4 -0
- package/tests/mocks/redirects-validation/same-path/input/blah.md +0 -0
- package/tests/mocks/redirects-validation/same-path/input/redirects.yaml +3 -0
- package/tests/mocks/redirects-validation/same-path/input/toc.yaml +4 -0
- package/tests/mocks/redirects-validation/unparseable/input/blah.md +0 -0
- package/tests/mocks/redirects-validation/unparseable/input/redirects.yaml +11 -0
- package/tests/mocks/redirects-validation/unparseable/input/toc.yaml +4 -0
- package/tests/mocks/regression/input/.yfm +2 -0
- package/tests/mocks/regression/input/1.md +29 -0
- package/tests/mocks/regression/input/_assets/1.png +0 -0
- package/tests/mocks/regression/input/_assets/2.png +0 -0
- package/tests/mocks/regression/input/_assets/3.png +0 -0
- package/tests/mocks/regression/input/_assets/4.png +0 -0
- package/tests/mocks/regression/input/_assets/5_1.png +0 -0
- package/tests/mocks/regression/input/_assets/empty.pdf +0 -0
- package/tests/mocks/regression/input/autotitle.md +58 -0
- package/tests/mocks/regression/input/commented-include.md +3 -0
- package/tests/mocks/regression/input/entry-as-include.md +3 -0
- package/tests/mocks/regression/input/generic/1.md +3 -0
- package/tests/mocks/regression/input/generic/2.md +3 -0
- package/tests/mocks/regression/input/generic/3.md +1 -0
- package/tests/mocks/regression/input/generic/Sub notes/1.md +3 -0
- package/tests/mocks/regression/input/generic/Sub notes/2.md +3 -0
- package/tests/mocks/regression/input/images.md +13 -0
- package/tests/mocks/regression/input/included-item.md +13 -0
- package/tests/mocks/regression/input/includer-of-entry.md +5 -0
- package/tests/mocks/regression/input/includes/deep.md +3 -0
- package/tests/mocks/regression/input/includes/fragments.md +41 -0
- package/tests/mocks/regression/input/includes/presets.yaml +3 -0
- package/tests/mocks/regression/input/includes/styles.md +8 -0
- package/tests/mocks/regression/input/includes/test.md +1 -0
- package/tests/mocks/regression/input/includes/tools.md +1 -0
- package/tests/mocks/regression/input/includes/user.md +1 -0
- package/tests/mocks/regression/input/includes.md +33 -0
- package/tests/mocks/regression/input/index.yaml +9 -0
- package/tests/mocks/regression/input/latex.md +3 -0
- package/tests/mocks/regression/input/merge/merge.md +5 -0
- package/tests/mocks/regression/input/merge/presets.yaml +3 -0
- package/tests/mocks/regression/input/merge/toc.yaml +6 -0
- package/tests/mocks/regression/input/merge-source/merged.md +3 -0
- package/tests/mocks/regression/input/merge-source/toc-m.yaml +4 -0
- package/tests/mocks/regression/input/mermaid.md +13 -0
- package/tests/mocks/regression/input/openapi-spec.yaml +111 -0
- package/tests/mocks/regression/input/presets.yaml +12 -0
- package/tests/mocks/regression/input/redirects.yaml +6 -0
- package/tests/mocks/regression/input/sub/folder/item-1.md +5 -0
- package/tests/mocks/regression/input/sub/toc.yaml +5 -0
- package/tests/mocks/regression/input/toc-i.yaml +3 -0
- package/tests/mocks/regression/input/toc.yaml +43 -0
- package/tests/mocks/restricted-access/test1/input/index.md +0 -0
- package/tests/mocks/restricted-access/test1/input/plugins/index.md +0 -0
- package/tests/mocks/restricted-access/test1/input/plugins/index2.md +0 -0
- package/tests/mocks/restricted-access/test1/input/plugins/index3.md +0 -0
- package/tests/mocks/restricted-access/test1/input/plugins/index4.md +4 -0
- package/tests/mocks/restricted-access/test1/input/toc.yaml +28 -0
- package/tests/mocks/restricted-access/test2/input/index.md +0 -0
- package/tests/mocks/restricted-access/test2/input/plugins/index.md +0 -0
- package/tests/mocks/restricted-access/test2/input/project/index.md +0 -0
- package/tests/mocks/restricted-access/test2/input/toc.yaml +21 -0
- package/tests/mocks/restricted-access/test3/input/a1.md +1 -0
- package/tests/mocks/restricted-access/test3/input/folder1/a1.md +1 -0
- package/tests/mocks/restricted-access/test3/input/folder1/folder2/a1.md +1 -0
- package/tests/mocks/restricted-access/test3/input/folder1/folder2/toc.yaml +8 -0
- package/tests/mocks/restricted-access/test3/input/folder1/toc.yaml +10 -0
- package/tests/mocks/restricted-access/test3/input/index.md +0 -0
- package/tests/mocks/restricted-access/test3/input/toc.yaml +16 -0
- package/tests/mocks/rtl/multidirectional-languages/input/.yfm +1 -0
- package/tests/mocks/rtl/multidirectional-languages/input/ar/index.yaml +4 -0
- package/tests/mocks/rtl/multidirectional-languages/input/ar/page.md +1 -0
- package/tests/mocks/rtl/multidirectional-languages/input/ar/toc.yaml +5 -0
- package/tests/mocks/rtl/multidirectional-languages/input/en/index.yaml +9 -0
- package/tests/mocks/rtl/multidirectional-languages/input/en/page.md +7 -0
- package/tests/mocks/rtl/multidirectional-languages/input/en/toc.yaml +5 -0
- package/tests/mocks/rtl/rtl-language/input/.yfm +1 -0
- package/tests/mocks/rtl/rtl-language/input/index.yaml +4 -0
- package/tests/mocks/rtl/rtl-language/input/page.md +1 -0
- package/tests/mocks/rtl/rtl-language/input/toc.yaml +5 -0
- package/tests/mocks/search/input/.yfm +12 -0
- package/tests/mocks/search/input/index.md +3 -0
- package/tests/mocks/search/input/toc.yaml +1 -0
- package/tests/mocks/single-page/input/ru/index.yaml +9 -0
- package/tests/mocks/single-page/input/ru/page.md +14 -0
- package/tests/mocks/single-page/input/ru/project/config.md +1 -0
- package/tests/mocks/single-page/input/ru/toc.yaml +7 -0
- package/tests/mocks/skip-html-extension/monolingual/input/.yfm +1 -0
- package/tests/mocks/skip-html-extension/monolingual/input/folder/index.md +1 -0
- package/tests/mocks/skip-html-extension/monolingual/input/index-test-html/index.md +4 -0
- package/tests/mocks/skip-html-extension/monolingual/input/index.md +6 -0
- package/tests/mocks/skip-html-extension/monolingual/input/page1.md +3 -0
- package/tests/mocks/skip-html-extension/monolingual/input/page2.md +6 -0
- package/tests/mocks/skip-html-extension/monolingual/input/toc.yaml +13 -0
- package/tests/mocks/skip-html-extension/multilingual/input/.yfm +2 -0
- package/tests/mocks/skip-html-extension/multilingual/input/en/folder/index.md +1 -0
- package/tests/mocks/skip-html-extension/multilingual/input/en/index-test-html/index.md +4 -0
- package/tests/mocks/skip-html-extension/multilingual/input/en/index.md +6 -0
- package/tests/mocks/skip-html-extension/multilingual/input/en/page1.md +3 -0
- package/tests/mocks/skip-html-extension/multilingual/input/en/page2.md +6 -0
- package/tests/mocks/skip-html-extension/multilingual/input/en/toc.yaml +13 -0
- package/tests/mocks/skip-html-extension/multilingual/input/ru/folder/index.md +1 -0
- package/tests/mocks/skip-html-extension/multilingual/input/ru/index-test-html/index.md +4 -0
- package/tests/mocks/skip-html-extension/multilingual/input/ru/index.md +5 -0
- package/tests/mocks/skip-html-extension/multilingual/input/ru/page1.md +3 -0
- package/tests/mocks/skip-html-extension/multilingual/input/ru/page2.md +6 -0
- package/tests/mocks/skip-html-extension/multilingual/input/ru/toc.yaml +12 -0
- package/tests/mocks/themer/test1/input/.yfm +3 -0
- package/tests/mocks/themer/test1/input/_assets/style/custom.css +3 -0
- package/tests/mocks/themer/test1/input/index.md +1 -0
- package/tests/mocks/themer/test1/input/theme.yaml +14 -0
- package/tests/mocks/themer/test1/input/toc.yaml +3 -0
- package/tests/mocks/themer/test2/input/index.md +1 -0
- package/tests/mocks/themer/test2/input/theme.yaml +8 -0
- package/tests/mocks/themer/test2/input/toc.yaml +3 -0
- package/tests/mocks/themer/test3/input/index.md +1 -0
- package/tests/mocks/themer/test3/input/toc.yaml +3 -0
- package/tests/mocks/themer/test4/input/index.md +1 -0
- package/tests/mocks/themer/test4/input/theme.yaml +3 -0
- package/tests/mocks/themer/test4/input/toc.yaml +3 -0
- package/tests/mocks/themer/test5/input/.yfm +1 -0
- package/tests/mocks/themer/test5/input/index.md +1 -0
- package/tests/mocks/themer/test5/input/toc.yaml +3 -0
- package/tests/mocks/themer/test6/input/.yfm +3 -0
- package/tests/mocks/themer/test6/input/index.md +11 -0
- package/tests/mocks/themer/test6/input/toc.yaml +5 -0
- package/tests/mocks/themer/test7/input/.yfm +3 -0
- package/tests/mocks/themer/test7/input/index.md +5 -0
- package/tests/mocks/themer/test7/input/theme.yaml +7 -0
- package/tests/mocks/themer/test7/input/toc.yaml +5 -0
- package/tests/mocks/themer/test8/input/.yfm +3 -0
- package/tests/mocks/themer/test8/input/index.md +5 -0
- package/tests/mocks/themer/test8/input/toc.yaml +5 -0
- package/tests/mocks/toc-label/input/.yfm +1 -0
- package/tests/mocks/toc-label/input/index.md +3 -0
- package/tests/mocks/toc-label/input/page1.md +3 -0
- package/tests/mocks/toc-label/input/toc.yaml +10 -0
- package/tests/mocks/translation/compose/input/openapi-spec.yaml.skl +41 -0
- package/tests/mocks/translation/compose/input/openapi-spec.yaml.xliff +52 -0
- package/tests/mocks/translation/compose/input/toc.yaml.skl +8 -0
- package/tests/mocks/translation/compose/input/toc.yaml.xliff +16 -0
- package/tests/mocks/translation/conditions/input/index.md +37 -0
- package/tests/mocks/translation/conditions/input/toc.yaml +5 -0
- package/tests/mocks/translation/custom-schema/custom-openapi-schema-30.yaml +1054 -0
- package/tests/mocks/translation/dir-files/input/.yfm +6 -0
- package/tests/mocks/translation/dir-files/input/ru/_includes/test.md +1 -0
- package/tests/mocks/translation/dir-files/input/ru/_no-translate/exclude.md +1 -0
- package/tests/mocks/translation/dir-files/input/ru/aboba.md +5 -0
- package/tests/mocks/translation/dir-files/input/ru/index.md +3 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/a1.md +3 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/folder1/a1.md +3 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/folder1/toc-i.yaml +3 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/index-yfm.md +2 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/index.yaml +24 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/not-in-toc.md +20 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/syntax/base.md +3 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/syntax/index.md +2 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/syntax/lists.md +1 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/toc.yaml +19 -0
- package/tests/mocks/translation/dir-files/input/ru/nested/use_filtered_above.md +4 -0
- package/tests/mocks/translation/dir-files/input/ru/no-var-page.md +3 -0
- package/tests/mocks/translation/dir-files/input/ru/not-in-toc.md +20 -0
- package/tests/mocks/translation/dir-files/input/ru/to-be-excluded.md +1 -0
- package/tests/mocks/translation/dir-files/input/ru/toc.yaml +13 -0
- package/tests/mocks/translation/no-translate/input/index.md +7 -0
- package/tests/mocks/translation/no-translate/input/no-translate.md +57 -0
- package/tests/mocks/translation/no-translate/input/openapi-spec.yaml +37 -0
- package/tests/mocks/translation/no-translate/input/toc.yaml +11 -0
- package/tests/mocks/translation/openapi/input/openapi-spec.yaml +50 -0
- package/tests/mocks/translation/openapi/input/toc.yaml +8 -0
- package/tests/mocks/translation/toc-include/input/included-toc/merged-included-toc-item.md +1 -0
- package/tests/mocks/translation/toc-include/input/included-toc/toc.yaml +3 -0
- package/tests/mocks/translation/toc-include/input/included-toc.md +1 -0
- package/tests/mocks/translation/toc-include/input/index.md +7 -0
- package/tests/mocks/translation/toc-include/input/merged-included-toc-item.md +1 -0
- package/tests/mocks/translation/toc-include/input/no-translate.md +57 -0
- package/tests/mocks/translation/toc-include/input/openapi-spec.yaml +37 -0
- package/tests/mocks/translation/toc-include/input/toc.yaml +14 -0
- package/tests/mocks/translation/yaml-scheme/input/ru/.yfm +1 -0
- package/tests/mocks/translation/yaml-scheme/input/ru/index-direct.yaml +133 -0
- package/tests/mocks/translation/yaml-scheme/input/ru/index.yaml +32 -0
- package/tests/mocks/translation/yaml-scheme/input/ru/toc.yaml +19 -0
- package/tests/mocks/vars-conditions/input/.yfm +1 -0
- package/tests/mocks/vars-conditions/input/index.md +3 -0
- package/tests/mocks/vars-conditions/input/page1.yaml +13 -0
- package/tests/mocks/vars-conditions/input/page2.md +24 -0
- package/tests/mocks/vars-conditions/input/page3.md +1 -0
- package/tests/mocks/vars-conditions/input/page4.md +1 -0
- package/tests/mocks/vars-conditions/input/page5.yaml +10 -0
- package/tests/mocks/vars-conditions/input/presets.yaml +9 -0
- package/tests/mocks/vars-conditions/input/toc.yaml +51 -0
- package/tests/mocks/vars-ignore/input/.yfm +1 -0
- package/tests/mocks/vars-ignore/input/data/data-test.md +4 -0
- package/tests/mocks/vars-ignore/input/data/presets.yaml +3 -0
- package/tests/mocks/vars-ignore/input/data/temp-test.md +4 -0
- package/tests/mocks/vars-ignore/input/ignored/ignored-test.md +4 -0
- package/tests/mocks/vars-ignore/input/ignored/presets.yaml +3 -0
- package/tests/mocks/vars-ignore/input/presets.yaml +3 -0
- package/tests/mocks/vars-ignore/input/test.md +6 -0
- package/tests/mocks/vars-ignore/input/toc.yaml +8 -0
- package/tests/mocks/warning/unreachable-autotitle/input/index.md +1 -0
- package/tests/mocks/warning/unreachable-autotitle/input/link.md +0 -0
- package/tests/mocks/warning/unreachable-autotitle/input/toc.yaml +4 -0
- package/tests/tsconfig.json +13 -0
- package/vitest.integration.config.ts +26 -0
|
@@ -0,0 +1,2033 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Regression > internal > filelist 1`] = `
|
|
4
|
+
"[
|
|
5
|
+
".yfm",
|
|
6
|
+
"1.md",
|
|
7
|
+
"_assets/1.png",
|
|
8
|
+
"_assets/2.png",
|
|
9
|
+
"_assets/3.png",
|
|
10
|
+
"_assets/5_1.png",
|
|
11
|
+
"_assets/empty.pdf",
|
|
12
|
+
"autotitle.md",
|
|
13
|
+
"entry-as-include.md",
|
|
14
|
+
"generic/1.md",
|
|
15
|
+
"generic/2.md",
|
|
16
|
+
"generic/3.md",
|
|
17
|
+
"generic/Sub notes/1.md",
|
|
18
|
+
"generic/Sub notes/2.md",
|
|
19
|
+
"images.md",
|
|
20
|
+
"included-item.md",
|
|
21
|
+
"includer-of-entry.md",
|
|
22
|
+
"includes.md",
|
|
23
|
+
"includes/fragments.md",
|
|
24
|
+
"index.yaml",
|
|
25
|
+
"latex.md",
|
|
26
|
+
"merge/merge.md",
|
|
27
|
+
"merge/merged.md",
|
|
28
|
+
"merge/toc.yaml",
|
|
29
|
+
"mermaid.md",
|
|
30
|
+
"openapi/index.md",
|
|
31
|
+
"openapi/openapi-spec.openapi.json",
|
|
32
|
+
"openapi/test-controller/getHiddenTest.md",
|
|
33
|
+
"openapi/test-controller/getWithPayloadResponse.md",
|
|
34
|
+
"openapi/test-controller/index.md",
|
|
35
|
+
"redirects.yaml",
|
|
36
|
+
"sub/folder/item-1.md",
|
|
37
|
+
"toc.yaml"
|
|
38
|
+
]"
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
exports[`Regression > internal > filelist 2`] = `
|
|
42
|
+
"[
|
|
43
|
+
".yfm",
|
|
44
|
+
"1.html",
|
|
45
|
+
"_assets/1.png",
|
|
46
|
+
"_assets/2.png",
|
|
47
|
+
"_assets/3.png",
|
|
48
|
+
"_assets/5_1.png",
|
|
49
|
+
"_assets/empty.pdf",
|
|
50
|
+
"autotitle.html",
|
|
51
|
+
"c.md",
|
|
52
|
+
"entry-as-include.html",
|
|
53
|
+
"generic/1.html",
|
|
54
|
+
"generic/2.html",
|
|
55
|
+
"generic/3.html",
|
|
56
|
+
"generic/Sub notes/1.html",
|
|
57
|
+
"generic/Sub notes/2.html",
|
|
58
|
+
"images.html",
|
|
59
|
+
"included-item.html",
|
|
60
|
+
"includer-of-entry.html",
|
|
61
|
+
"includes.html",
|
|
62
|
+
"includes/fragments.html",
|
|
63
|
+
"index.html",
|
|
64
|
+
"latex.html",
|
|
65
|
+
"merge/merge.html",
|
|
66
|
+
"merge/merged.html",
|
|
67
|
+
"merge/toc.js",
|
|
68
|
+
"mermaid.html",
|
|
69
|
+
"openapi/index.html",
|
|
70
|
+
"openapi/openapi-spec.openapi.json",
|
|
71
|
+
"openapi/test-controller/getHiddenTest.html",
|
|
72
|
+
"openapi/test-controller/getWithPayloadResponse.html",
|
|
73
|
+
"openapi/test-controller/index.html",
|
|
74
|
+
"sub/folder/item-1.html",
|
|
75
|
+
"toc.js"
|
|
76
|
+
]"
|
|
77
|
+
`;
|
|
78
|
+
|
|
79
|
+
exports[`Regression > internal 1`] = `
|
|
80
|
+
"preprocess:
|
|
81
|
+
mergeAutotitles: true
|
|
82
|
+
"
|
|
83
|
+
`;
|
|
84
|
+
|
|
85
|
+
exports[`Regression > internal 2`] = `
|
|
86
|
+
"---
|
|
87
|
+
metadata:
|
|
88
|
+
- name: generator
|
|
89
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
90
|
+
__system:
|
|
91
|
+
testVar: test-value
|
|
92
|
+
vcsPath: 1.md
|
|
93
|
+
---
|
|
94
|
+
# Title
|
|
95
|
+
|
|
96
|
+
Text not_var{{not-var}} not_var{{skip()}} default-var-value
|
|
97
|
+
|
|
98
|
+
Text \`not_var{{not-var}}\` \`not_var{{skip()}}\` \`default-var-value\`
|
|
99
|
+
|
|
100
|
+
Text
|
|
101
|
+
\`\`\`
|
|
102
|
+
not_var{{not-var}}
|
|
103
|
+
|
|
104
|
+
not_var{{skip()}}
|
|
105
|
+
|
|
106
|
+
default-var-value
|
|
107
|
+
\`\`\`
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
\`[not a link](./path/to/relative/file.md)\`
|
|
111
|
+
|
|
112
|
+
## Subtitle {#subtitle}
|
|
113
|
+
|
|
114
|
+
[Mermaid usage](./mermaid.md)
|
|
115
|
+
|
|
116
|
+
[Mermaid info](./mermaid.md#info)
|
|
117
|
+
|
|
118
|
+
[Latex usage](./latex.md)
|
|
119
|
+
|
|
120
|
+
[noext-link](./includes)
|
|
121
|
+
|
|
122
|
+
<!-- source: includes/user.md -->
|
|
123
|
+
Bob
|
|
124
|
+
<!-- endsource: includes/user.md -->
|
|
125
|
+
"
|
|
126
|
+
`;
|
|
127
|
+
|
|
128
|
+
exports[`Regression > internal 3`] = `
|
|
129
|
+
"---
|
|
130
|
+
metadata:
|
|
131
|
+
- name: generator
|
|
132
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
133
|
+
__system:
|
|
134
|
+
testVar: test-value
|
|
135
|
+
vcsPath: autotitle.md
|
|
136
|
+
---
|
|
137
|
+
# Autotitles
|
|
138
|
+
|
|
139
|
+
Empty title
|
|
140
|
+
[Title](./1.md)
|
|
141
|
+
|
|
142
|
+
Empty subtitle
|
|
143
|
+
[Subtitle](./1.md#subtitle)
|
|
144
|
+
|
|
145
|
+
Special title
|
|
146
|
+
[Title](./1.md)
|
|
147
|
+
|
|
148
|
+
Special subtitle
|
|
149
|
+
[Subtitle](./1.md#subtitle)
|
|
150
|
+
|
|
151
|
+
Empty local title
|
|
152
|
+
[Header](#header)
|
|
153
|
+
|
|
154
|
+
Special local title
|
|
155
|
+
[Header](#header)
|
|
156
|
+
|
|
157
|
+
Circular title
|
|
158
|
+
[Header](./autotitle.md#header)
|
|
159
|
+
|
|
160
|
+
Autotitle from include
|
|
161
|
+
<!-- [{#T}](includes/fragments.md#f3) -->
|
|
162
|
+
|
|
163
|
+
Include with autotitle
|
|
164
|
+
<!-- {% include [test](includes/fragments.md#f4) %} -->
|
|
165
|
+
|
|
166
|
+
link with [some local term1](*term1-1)
|
|
167
|
+
|
|
168
|
+
{% list tabs %}
|
|
169
|
+
|
|
170
|
+
- Название таба 1
|
|
171
|
+
|
|
172
|
+
Текст таба 1.
|
|
173
|
+
|
|
174
|
+
* Можно использовать списки.
|
|
175
|
+
* И **другую** разметку.
|
|
176
|
+
|
|
177
|
+
- Название таба 2
|
|
178
|
+
|
|
179
|
+
Текст таба 2.
|
|
180
|
+
|
|
181
|
+
{% endlist %}
|
|
182
|
+
|
|
183
|
+
All fragments
|
|
184
|
+
|
|
185
|
+
<!-- source: includes/fragments.md -->
|
|
186
|
+
### F1 {#f1}
|
|
187
|
+
Content F1
|
|
188
|
+
|
|
189
|
+
## F2 {#f2}
|
|
190
|
+
Content F2
|
|
191
|
+
|
|
192
|
+
### F2.1 {#f2.1}
|
|
193
|
+
Content F2.1
|
|
194
|
+
|
|
195
|
+
## F3 {#f3}
|
|
196
|
+
Content F3
|
|
197
|
+
|
|
198
|
+
Some paragraph with anchor {#p1}
|
|
199
|
+
|
|
200
|
+
Some paragraph without anchor
|
|
201
|
+
|
|
202
|
+
Some paragraph with anchor {#p2}
|
|
203
|
+
|
|
204
|
+
## F4 {#f4}
|
|
205
|
+
Content F4
|
|
206
|
+
[Header](autotitle.md#header)
|
|
207
|
+
|
|
208
|
+
### F4.1 {#f4.1}
|
|
209
|
+
link with [some term1](*term1)
|
|
210
|
+
|
|
211
|
+
{% list tabs %}
|
|
212
|
+
|
|
213
|
+
- Название таба 1
|
|
214
|
+
|
|
215
|
+
Текст таба 1.
|
|
216
|
+
|
|
217
|
+
* Можно использовать списки.
|
|
218
|
+
* И **другую** разметку.
|
|
219
|
+
|
|
220
|
+
- Название таба 2
|
|
221
|
+
|
|
222
|
+
Текст таба 2.
|
|
223
|
+
|
|
224
|
+
{% endlist %}
|
|
225
|
+
<!-- endsource: includes/fragments.md -->
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
## Header {#header}
|
|
229
|
+
|
|
230
|
+
Content2
|
|
231
|
+
|
|
232
|
+
<!-- source: includes/styles.md -->
|
|
233
|
+
<style>
|
|
234
|
+
|
|
235
|
+
.yfm .border-yes {
|
|
236
|
+
border: 1px solid #ccc;
|
|
237
|
+
border-radius: 10px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
</style>
|
|
241
|
+
<!-- endsource: includes/styles.md -->
|
|
242
|
+
|
|
243
|
+
[*term1-1]: ## F3 {#f3}
|
|
244
|
+
Content F3
|
|
245
|
+
|
|
246
|
+
Some paragraph with anchor {#p1}
|
|
247
|
+
|
|
248
|
+
Some paragraph without anchor
|
|
249
|
+
|
|
250
|
+
Some paragraph with anchor {#p2}
|
|
251
|
+
|
|
252
|
+
[*term1]: Some description"
|
|
253
|
+
`;
|
|
254
|
+
|
|
255
|
+
exports[`Regression > internal 4`] = `
|
|
256
|
+
"---
|
|
257
|
+
metadata:
|
|
258
|
+
- name: generator
|
|
259
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
260
|
+
__system:
|
|
261
|
+
testVar: test-value
|
|
262
|
+
vcsPath: entry-as-include.md
|
|
263
|
+
---
|
|
264
|
+
# Entry that is also used as include
|
|
265
|
+
|
|
266
|
+
This file is both an entry (in toc) and included by another file.
|
|
267
|
+
"
|
|
268
|
+
`;
|
|
269
|
+
|
|
270
|
+
exports[`Regression > internal 5`] = `
|
|
271
|
+
"---
|
|
272
|
+
metadata:
|
|
273
|
+
- name: generator
|
|
274
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
275
|
+
__system:
|
|
276
|
+
testVar: test-value
|
|
277
|
+
vcsPath: generic/1.md
|
|
278
|
+
---
|
|
279
|
+
# Note 1
|
|
280
|
+
|
|
281
|
+
Note content 1
|
|
282
|
+
"
|
|
283
|
+
`;
|
|
284
|
+
|
|
285
|
+
exports[`Regression > internal 6`] = `
|
|
286
|
+
"---
|
|
287
|
+
metadata:
|
|
288
|
+
- name: generator
|
|
289
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
290
|
+
__system:
|
|
291
|
+
testVar: test-value
|
|
292
|
+
vcsPath: generic/2.md
|
|
293
|
+
---
|
|
294
|
+
# Note 1
|
|
295
|
+
|
|
296
|
+
Note content 1
|
|
297
|
+
"
|
|
298
|
+
`;
|
|
299
|
+
|
|
300
|
+
exports[`Regression > internal 7`] = `
|
|
301
|
+
"---
|
|
302
|
+
metadata:
|
|
303
|
+
- name: generator
|
|
304
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
305
|
+
__system:
|
|
306
|
+
testVar: test-value
|
|
307
|
+
vcsPath: generic/3.md
|
|
308
|
+
---
|
|
309
|
+
Note content 1
|
|
310
|
+
"
|
|
311
|
+
`;
|
|
312
|
+
|
|
313
|
+
exports[`Regression > internal 8`] = `
|
|
314
|
+
"---
|
|
315
|
+
metadata:
|
|
316
|
+
- name: generator
|
|
317
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
318
|
+
__system:
|
|
319
|
+
testVar: test-value
|
|
320
|
+
vcsPath: generic/Sub notes/1.md
|
|
321
|
+
---
|
|
322
|
+
# Sub note 1
|
|
323
|
+
|
|
324
|
+
Note content 1
|
|
325
|
+
"
|
|
326
|
+
`;
|
|
327
|
+
|
|
328
|
+
exports[`Regression > internal 9`] = `
|
|
329
|
+
"---
|
|
330
|
+
metadata:
|
|
331
|
+
- name: generator
|
|
332
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
333
|
+
__system:
|
|
334
|
+
testVar: test-value
|
|
335
|
+
vcsPath: generic/Sub notes/2.md
|
|
336
|
+
---
|
|
337
|
+
# Sub note 2
|
|
338
|
+
|
|
339
|
+
Note content 2
|
|
340
|
+
"
|
|
341
|
+
`;
|
|
342
|
+
|
|
343
|
+
exports[`Regression > internal 10`] = `
|
|
344
|
+
"---
|
|
345
|
+
metadata:
|
|
346
|
+
- name: generator
|
|
347
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
348
|
+
__system:
|
|
349
|
+
testVar: test-value
|
|
350
|
+
vcsPath: images.md
|
|
351
|
+
---
|
|
352
|
+
# Images
|
|
353
|
+
|
|
354
|
+

|
|
355
|
+
|
|
356
|
+
<!-- comment -->
|
|
357
|
+
|
|
358
|
+
<!-- comment -->
|
|
359
|
+
|
|
360
|
+
<!--  -->
|
|
361
|
+
|
|
362
|
+

|
|
363
|
+
|
|
364
|
+
[](latex.md)"
|
|
365
|
+
`;
|
|
366
|
+
|
|
367
|
+
exports[`Regression > internal 11`] = `
|
|
368
|
+
"---
|
|
369
|
+
metadata:
|
|
370
|
+
- name: generator
|
|
371
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
372
|
+
__system:
|
|
373
|
+
testVar: test-value
|
|
374
|
+
vcsPath: included-item.md
|
|
375
|
+
---
|
|
376
|
+
# Included item
|
|
377
|
+
|
|
378
|
+
Included item text
|
|
379
|
+
|
|
380
|
+
<!-- : {% include [rec-off](./commented-include.md) %} -->
|
|
381
|
+
|
|
382
|
+
{% note alert "Alert!" %}
|
|
383
|
+
|
|
384
|
+
<!-- content -->
|
|
385
|
+
|
|
386
|
+
{% endnote %}
|
|
387
|
+
|
|
388
|
+

|
|
389
|
+
"
|
|
390
|
+
`;
|
|
391
|
+
|
|
392
|
+
exports[`Regression > internal 12`] = `
|
|
393
|
+
"---
|
|
394
|
+
metadata:
|
|
395
|
+
- name: generator
|
|
396
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
397
|
+
__system:
|
|
398
|
+
testVar: test-value
|
|
399
|
+
vcsPath: includer-of-entry.md
|
|
400
|
+
---
|
|
401
|
+
# Includer of entry
|
|
402
|
+
|
|
403
|
+
This file includes another file that is also an entry.
|
|
404
|
+
|
|
405
|
+
<!-- source: entry-as-include.md -->
|
|
406
|
+
# Entry that is also used as include
|
|
407
|
+
|
|
408
|
+
This file is both an entry (in toc) and included by another file.
|
|
409
|
+
<!-- endsource: entry-as-include.md -->
|
|
410
|
+
"
|
|
411
|
+
`;
|
|
412
|
+
|
|
413
|
+
exports[`Regression > internal 13`] = `
|
|
414
|
+
"---
|
|
415
|
+
metadata:
|
|
416
|
+
- name: generator
|
|
417
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
418
|
+
__system:
|
|
419
|
+
testVar: test-value
|
|
420
|
+
vcsPath: includes.md
|
|
421
|
+
---
|
|
422
|
+
Text
|
|
423
|
+
|
|
424
|
+
<!-- source: includes/user.md -->
|
|
425
|
+
Bob
|
|
426
|
+
<!-- endsource: includes/user.md -->
|
|
427
|
+
|
|
428
|
+
<!-- source: includes/test.md -->
|
|
429
|
+
Test
|
|
430
|
+
<!-- endsource: includes/test.md -->
|
|
431
|
+
|
|
432
|
+
<!-- source: includes/fragments.md -->
|
|
433
|
+
### F1 {#f1}
|
|
434
|
+
Content F1
|
|
435
|
+
|
|
436
|
+
## F2 {#f2}
|
|
437
|
+
Content F2
|
|
438
|
+
<!-- endsource: includes/fragments.md -->
|
|
439
|
+
|
|
440
|
+
<!-- source: includes/fragments.md -->
|
|
441
|
+
Some paragraph with anchor {#p1}
|
|
442
|
+
<!-- endsource: includes/fragments.md -->
|
|
443
|
+
|
|
444
|
+
<!--{% include [For includes/deep.md](includes/deep.md) %}-->
|
|
445
|
+
<!-- source: includes/deep.md -->
|
|
446
|
+
<!-- source: includes/user.md -->
|
|
447
|
+
Bob
|
|
448
|
+
<!-- endsource: includes/user.md -->
|
|
449
|
+
|
|
450
|
+
[](latex.md)
|
|
451
|
+
<!-- endsource: includes/deep.md -->
|
|
452
|
+
|
|
453
|
+
^[?](*term)^
|
|
454
|
+
|
|
455
|
+
[[?](*term)](http://ya.ru)
|
|
456
|
+
|
|
457
|
+
[Term 1](*term1) [Term 2](*term2)
|
|
458
|
+
|
|
459
|
+
Link after include
|
|
460
|
+
[Subtitle](./1.md#subtitle)
|
|
461
|
+
|
|
462
|
+
Autotitle include
|
|
463
|
+
<!-- [{#T}](includes/fragments.md#f3) -->
|
|
464
|
+
|
|
465
|
+
Link after include
|
|
466
|
+
|
|
467
|
+
## Mermaid
|
|
468
|
+
<!-- source: mermaid.md -->
|
|
469
|
+
# Mermaid usage
|
|
470
|
+
|
|
471
|
+
\`\`\`mermaid
|
|
472
|
+
|
|
473
|
+
sequenceDiagram
|
|
474
|
+
rect rgba(251, 243, 232, 0.2)
|
|
475
|
+
Alice ->> Bob:
|
|
476
|
+
end
|
|
477
|
+
\`\`\`
|
|
478
|
+
|
|
479
|
+
## Mermaid info {#info}
|
|
480
|
+
|
|
481
|
+
Some mermaid info
|
|
482
|
+
<!-- endsource: mermaid.md -->
|
|
483
|
+
|
|
484
|
+
[*term]: Test terms
|
|
485
|
+
|
|
486
|
+
[*term1]: ## F3 {#f3}
|
|
487
|
+
Content F3
|
|
488
|
+
|
|
489
|
+
Some paragraph with anchor {#p1}
|
|
490
|
+
|
|
491
|
+
Some paragraph without anchor
|
|
492
|
+
|
|
493
|
+
Some paragraph with anchor {#p2}
|
|
494
|
+
|
|
495
|
+
[*term2]: ## F3 {#f3}
|
|
496
|
+
Content F3
|
|
497
|
+
|
|
498
|
+
Some paragraph with anchor {#p1}
|
|
499
|
+
|
|
500
|
+
Some paragraph without anchor
|
|
501
|
+
|
|
502
|
+
Some paragraph with anchor {#p2}"
|
|
503
|
+
`;
|
|
504
|
+
|
|
505
|
+
exports[`Regression > internal 14`] = `
|
|
506
|
+
"---
|
|
507
|
+
metadata:
|
|
508
|
+
- name: generator
|
|
509
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
510
|
+
__system:
|
|
511
|
+
testVar: test-value
|
|
512
|
+
vcsPath: includes/fragments.md
|
|
513
|
+
---
|
|
514
|
+
### F1 {#f1}
|
|
515
|
+
Content F1
|
|
516
|
+
|
|
517
|
+
## F2 {#f2}
|
|
518
|
+
Content F2
|
|
519
|
+
|
|
520
|
+
### F2.1 {#f2.1}
|
|
521
|
+
Content F2.1
|
|
522
|
+
|
|
523
|
+
## F3 {#f3}
|
|
524
|
+
Content F3
|
|
525
|
+
|
|
526
|
+
Some paragraph with anchor {#p1}
|
|
527
|
+
|
|
528
|
+
Some paragraph without anchor
|
|
529
|
+
|
|
530
|
+
Some paragraph with anchor {#p2}
|
|
531
|
+
|
|
532
|
+
## F4 {#f4}
|
|
533
|
+
Content F4
|
|
534
|
+
[Header](../autotitle.md#header)
|
|
535
|
+
|
|
536
|
+
### F4.1 {#f4.1}
|
|
537
|
+
link with [some term1](*term1)
|
|
538
|
+
|
|
539
|
+
{% list tabs %}
|
|
540
|
+
|
|
541
|
+
- Название таба 1
|
|
542
|
+
|
|
543
|
+
Текст таба 1.
|
|
544
|
+
|
|
545
|
+
* Можно использовать списки.
|
|
546
|
+
* И **другую** разметку.
|
|
547
|
+
|
|
548
|
+
- Название таба 2
|
|
549
|
+
|
|
550
|
+
Текст таба 2.
|
|
551
|
+
|
|
552
|
+
{% endlist %}
|
|
553
|
+
|
|
554
|
+
[*term1]: Some description
|
|
555
|
+
"
|
|
556
|
+
`;
|
|
557
|
+
|
|
558
|
+
exports[`Regression > internal 15`] = `
|
|
559
|
+
"description:
|
|
560
|
+
- Some text
|
|
561
|
+
links:
|
|
562
|
+
- name: Link 1
|
|
563
|
+
href: ./1.md
|
|
564
|
+
- name: Link 2
|
|
565
|
+
href: ./1
|
|
566
|
+
meta:
|
|
567
|
+
metadata:
|
|
568
|
+
- name: generator
|
|
569
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
570
|
+
__system:
|
|
571
|
+
testVar: test-value
|
|
572
|
+
vcsPath: index.yaml
|
|
573
|
+
"
|
|
574
|
+
`;
|
|
575
|
+
|
|
576
|
+
exports[`Regression > internal 16`] = `
|
|
577
|
+
"---
|
|
578
|
+
metadata:
|
|
579
|
+
- name: generator
|
|
580
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
581
|
+
__system:
|
|
582
|
+
testVar: test-value
|
|
583
|
+
vcsPath: latex.md
|
|
584
|
+
---
|
|
585
|
+
# Latex usage
|
|
586
|
+
|
|
587
|
+
$/sqrt{3x-1}+(1+x)^2$
|
|
588
|
+
"
|
|
589
|
+
`;
|
|
590
|
+
|
|
591
|
+
exports[`Regression > internal 17`] = `
|
|
592
|
+
"---
|
|
593
|
+
metadata:
|
|
594
|
+
- name: generator
|
|
595
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
596
|
+
__system:
|
|
597
|
+
testVar: test-value
|
|
598
|
+
vcsPath: merge/merge.md
|
|
599
|
+
---
|
|
600
|
+
# Should use merged item
|
|
601
|
+
|
|
602
|
+
[merged](./merged.md)
|
|
603
|
+
|
|
604
|
+
<!-- source: includes/tools.md -->
|
|
605
|
+
Tool: Hammer and Laser
|
|
606
|
+
<!-- endsource: includes/tools.md -->
|
|
607
|
+
"
|
|
608
|
+
`;
|
|
609
|
+
|
|
610
|
+
exports[`Regression > internal 18`] = `
|
|
611
|
+
"---
|
|
612
|
+
metadata:
|
|
613
|
+
- name: generator
|
|
614
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
615
|
+
sourcePath: merge-source/merged.md
|
|
616
|
+
__system:
|
|
617
|
+
testVar: test-value
|
|
618
|
+
vcsPath: merge-source/merged.md
|
|
619
|
+
---
|
|
620
|
+
# Merged item
|
|
621
|
+
|
|
622
|
+
Should be linked in toc.yaml
|
|
623
|
+
"
|
|
624
|
+
`;
|
|
625
|
+
|
|
626
|
+
exports[`Regression > internal 19`] = `
|
|
627
|
+
"items:
|
|
628
|
+
- name: Use merged
|
|
629
|
+
href: merge.md
|
|
630
|
+
- name: Multitoc item
|
|
631
|
+
href: ../1.md
|
|
632
|
+
- name: Merged item
|
|
633
|
+
href: merged.md
|
|
634
|
+
path: merge/toc.yaml
|
|
635
|
+
"
|
|
636
|
+
`;
|
|
637
|
+
|
|
638
|
+
exports[`Regression > internal 20`] = `
|
|
639
|
+
"---
|
|
640
|
+
metadata:
|
|
641
|
+
- name: generator
|
|
642
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
643
|
+
__system:
|
|
644
|
+
testVar: test-value
|
|
645
|
+
vcsPath: mermaid.md
|
|
646
|
+
---
|
|
647
|
+
# Mermaid usage
|
|
648
|
+
|
|
649
|
+
\`\`\`mermaid
|
|
650
|
+
|
|
651
|
+
sequenceDiagram
|
|
652
|
+
rect rgba(251, 243, 232, 0.2)
|
|
653
|
+
Alice ->> Bob:
|
|
654
|
+
end
|
|
655
|
+
\`\`\`
|
|
656
|
+
|
|
657
|
+
## Mermaid info {#info}
|
|
658
|
+
|
|
659
|
+
Some mermaid info
|
|
660
|
+
"
|
|
661
|
+
`;
|
|
662
|
+
|
|
663
|
+
exports[`Regression > internal 21`] = `
|
|
664
|
+
"---
|
|
665
|
+
metadata:
|
|
666
|
+
- name: generator
|
|
667
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
668
|
+
__system:
|
|
669
|
+
testVar: test-value
|
|
670
|
+
vcsPath: openapi/index.md
|
|
671
|
+
---
|
|
672
|
+
<!-- markdownlint-disable-file -->
|
|
673
|
+
|
|
674
|
+
# OpenAPI definition
|
|
675
|
+
|
|
676
|
+
##version: v0##
|
|
677
|
+
|
|
678
|
+
## Sections
|
|
679
|
+
|
|
680
|
+
- [test-controller](test-controller/index.md)
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
## Specification
|
|
684
|
+
|
|
685
|
+
{% cut "Open API" %}
|
|
686
|
+
|
|
687
|
+
\`\`\`text translate=no
|
|
688
|
+
{
|
|
689
|
+
"openapi": "3.0.1",
|
|
690
|
+
"info": {
|
|
691
|
+
"title": "OpenAPI definition",
|
|
692
|
+
"version": "v0"
|
|
693
|
+
},
|
|
694
|
+
"servers": [
|
|
695
|
+
{
|
|
696
|
+
"url": "http://localhost:8080",
|
|
697
|
+
"description": "Generated server url"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"paths": {
|
|
701
|
+
"/test": {
|
|
702
|
+
"get": {
|
|
703
|
+
"tags": [
|
|
704
|
+
"test-controller"
|
|
705
|
+
],
|
|
706
|
+
"summary": "Simple get operation. тест новой верстки 3",
|
|
707
|
+
"description": "Defines a simple get operation with no inputs and a complex",
|
|
708
|
+
"operationId": "getWithPayloadResponse",
|
|
709
|
+
"responses": {
|
|
710
|
+
"200": {
|
|
711
|
+
"description": "200!!!!",
|
|
712
|
+
"content": {
|
|
713
|
+
"application/json": {
|
|
714
|
+
"schema": {
|
|
715
|
+
"type": "object",
|
|
716
|
+
"properties": {
|
|
717
|
+
"A": {
|
|
718
|
+
"type": "string"
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"/hidden-test": {
|
|
729
|
+
"get": {
|
|
730
|
+
"tags": [
|
|
731
|
+
"test-controller"
|
|
732
|
+
],
|
|
733
|
+
"summary": "Test x-hidden attribute",
|
|
734
|
+
"description": "Test various x-hidden scenarios",
|
|
735
|
+
"operationId": "getHiddenTest",
|
|
736
|
+
"responses": {
|
|
737
|
+
"200": {
|
|
738
|
+
"description": "Response with hidden fields",
|
|
739
|
+
"content": {
|
|
740
|
+
"application/json": {
|
|
741
|
+
"schema": {
|
|
742
|
+
"type": "object",
|
|
743
|
+
"description": "Response object with various hidden field scenarios",
|
|
744
|
+
"properties": {
|
|
745
|
+
"visibleField": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"description": "This field should be visible"
|
|
748
|
+
},
|
|
749
|
+
"directlyHiddenField": {
|
|
750
|
+
"type": "string",
|
|
751
|
+
"description": "This field should be hidden (direct x-hidden)",
|
|
752
|
+
"x-hidden": true
|
|
753
|
+
},
|
|
754
|
+
"refToHiddenField": {
|
|
755
|
+
"type": "string",
|
|
756
|
+
"description": "This field should be hidden",
|
|
757
|
+
"x-hidden": true
|
|
758
|
+
},
|
|
759
|
+
"refToHiddenObject": {
|
|
760
|
+
"type": "object",
|
|
761
|
+
"description": "This entire object should be hidden",
|
|
762
|
+
"x-hidden": true,
|
|
763
|
+
"properties": {
|
|
764
|
+
"secret": {
|
|
765
|
+
"type": "string"
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"nestedObject": {
|
|
770
|
+
"type": "object",
|
|
771
|
+
"description": "Object with hidden properties",
|
|
772
|
+
"properties": {
|
|
773
|
+
"visibleNested": {
|
|
774
|
+
"type": "string"
|
|
775
|
+
},
|
|
776
|
+
"hiddenNested": {
|
|
777
|
+
"type": "string",
|
|
778
|
+
"x-hidden": true
|
|
779
|
+
},
|
|
780
|
+
"refToHiddenInNested": {
|
|
781
|
+
"type": "string",
|
|
782
|
+
"description": "This field should be hidden",
|
|
783
|
+
"x-hidden": true
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"arrayWithHiddenItems": {
|
|
788
|
+
"type": "array",
|
|
789
|
+
"description": "Array with hidden item schema",
|
|
790
|
+
"items": {
|
|
791
|
+
"type": "string",
|
|
792
|
+
"description": "This field should be hidden",
|
|
793
|
+
"x-hidden": true
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"mixedVisibility": {
|
|
797
|
+
"type": "object",
|
|
798
|
+
"properties": {
|
|
799
|
+
"field1": {
|
|
800
|
+
"type": "string"
|
|
801
|
+
},
|
|
802
|
+
"field2": {
|
|
803
|
+
"type": "string",
|
|
804
|
+
"description": "This field should be hidden",
|
|
805
|
+
"x-hidden": true
|
|
806
|
+
},
|
|
807
|
+
"field3": {
|
|
808
|
+
"type": "string"
|
|
809
|
+
},
|
|
810
|
+
"field4": {
|
|
811
|
+
"type": "string",
|
|
812
|
+
"x-hidden": true
|
|
813
|
+
},
|
|
814
|
+
"field5": {
|
|
815
|
+
"type": "string"
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"components": {
|
|
829
|
+
"schemas": {
|
|
830
|
+
"RecurceTop": {
|
|
831
|
+
"type": "object",
|
|
832
|
+
"properties": {
|
|
833
|
+
"A": {
|
|
834
|
+
"type": "string"
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"RecurceMiddle": {
|
|
839
|
+
"type": "object",
|
|
840
|
+
"properties": {
|
|
841
|
+
"B": {
|
|
842
|
+
"type": "array",
|
|
843
|
+
"items": {
|
|
844
|
+
"type": "object",
|
|
845
|
+
"properties": {
|
|
846
|
+
"A": {
|
|
847
|
+
"type": "string"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
"HiddenField": {
|
|
855
|
+
"type": "string",
|
|
856
|
+
"description": "This field should be hidden",
|
|
857
|
+
"x-hidden": true
|
|
858
|
+
},
|
|
859
|
+
"HiddenObject": {
|
|
860
|
+
"type": "object",
|
|
861
|
+
"description": "This entire object should be hidden",
|
|
862
|
+
"x-hidden": true,
|
|
863
|
+
"properties": {
|
|
864
|
+
"secret": {
|
|
865
|
+
"type": "string"
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
"HiddenTestResponse": {
|
|
870
|
+
"type": "object",
|
|
871
|
+
"description": "Response object with various hidden field scenarios",
|
|
872
|
+
"properties": {
|
|
873
|
+
"visibleField": {
|
|
874
|
+
"type": "string",
|
|
875
|
+
"description": "This field should be visible"
|
|
876
|
+
},
|
|
877
|
+
"directlyHiddenField": {
|
|
878
|
+
"type": "string",
|
|
879
|
+
"description": "This field should be hidden (direct x-hidden)",
|
|
880
|
+
"x-hidden": true
|
|
881
|
+
},
|
|
882
|
+
"refToHiddenField": {
|
|
883
|
+
"type": "string",
|
|
884
|
+
"description": "This field should be hidden",
|
|
885
|
+
"x-hidden": true
|
|
886
|
+
},
|
|
887
|
+
"refToHiddenObject": {
|
|
888
|
+
"type": "object",
|
|
889
|
+
"description": "This entire object should be hidden",
|
|
890
|
+
"x-hidden": true,
|
|
891
|
+
"properties": {
|
|
892
|
+
"secret": {
|
|
893
|
+
"type": "string"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"nestedObject": {
|
|
898
|
+
"type": "object",
|
|
899
|
+
"description": "Object with hidden properties",
|
|
900
|
+
"properties": {
|
|
901
|
+
"visibleNested": {
|
|
902
|
+
"type": "string"
|
|
903
|
+
},
|
|
904
|
+
"hiddenNested": {
|
|
905
|
+
"type": "string",
|
|
906
|
+
"x-hidden": true
|
|
907
|
+
},
|
|
908
|
+
"refToHiddenInNested": {
|
|
909
|
+
"type": "string",
|
|
910
|
+
"description": "This field should be hidden",
|
|
911
|
+
"x-hidden": true
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"arrayWithHiddenItems": {
|
|
916
|
+
"type": "array",
|
|
917
|
+
"description": "Array with hidden item schema",
|
|
918
|
+
"items": {
|
|
919
|
+
"type": "string",
|
|
920
|
+
"description": "This field should be hidden",
|
|
921
|
+
"x-hidden": true
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"mixedVisibility": {
|
|
925
|
+
"type": "object",
|
|
926
|
+
"properties": {
|
|
927
|
+
"field1": {
|
|
928
|
+
"type": "string"
|
|
929
|
+
},
|
|
930
|
+
"field2": {
|
|
931
|
+
"type": "string",
|
|
932
|
+
"description": "This field should be hidden",
|
|
933
|
+
"x-hidden": true
|
|
934
|
+
},
|
|
935
|
+
"field3": {
|
|
936
|
+
"type": "string"
|
|
937
|
+
},
|
|
938
|
+
"field4": {
|
|
939
|
+
"type": "string",
|
|
940
|
+
"x-hidden": true
|
|
941
|
+
},
|
|
942
|
+
"field5": {
|
|
943
|
+
"type": "string"
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
\`\`\`
|
|
953
|
+
|
|
954
|
+
{% endcut %}"
|
|
955
|
+
`;
|
|
956
|
+
|
|
957
|
+
exports[`Regression > internal 22`] = `"{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost:8080","description":"Generated server url"}],"paths":{"/test":{"get":{"tags":["test-controller"],"summary":"Simple get operation. тест новой верстки 3","description":"Defines a simple get operation with no inputs and a complex","operationId":"getWithPayloadResponse","responses":{"200":{"description":"200!!!!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurceTop"}}}}}}},"/hidden-test":{"get":{"tags":["test-controller"],"summary":"Test x-hidden attribute","description":"Test various x-hidden scenarios","operationId":"getHiddenTest","responses":{"200":{"description":"Response with hidden fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HiddenTestResponse"}}}}}}}},"components":{"schemas":{"RecurceTop":{"type":"object","properties":{"A":{"type":"string"}}},"HiddenTestResponse":{"type":"object","description":"Response object with various hidden field scenarios","properties":{"visibleField":{"type":"string","description":"This field should be visible"},"refToHiddenField":{"$ref":"#/components/schemas/HiddenField"},"refToHiddenObject":{"$ref":"#/components/schemas/HiddenObject"},"nestedObject":{"type":"object","description":"Object with hidden properties","properties":{"visibleNested":{"type":"string"},"refToHiddenInNested":{"$ref":"#/components/schemas/HiddenField"}}},"arrayWithHiddenItems":{"type":"array","description":"Array with hidden item schema","items":{"$ref":"#/components/schemas/HiddenField"}},"mixedVisibility":{"type":"object","properties":{"field1":{"type":"string"},"field2":{"$ref":"#/components/schemas/HiddenField"},"field3":{"type":"string"},"field5":{"type":"string"}}}}}}}}"`;
|
|
958
|
+
|
|
959
|
+
exports[`Regression > internal 23`] = `
|
|
960
|
+
"---
|
|
961
|
+
metadata:
|
|
962
|
+
- name: generator
|
|
963
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
964
|
+
__system:
|
|
965
|
+
testVar: test-value
|
|
966
|
+
vcsPath: openapi/test-controller/getHiddenTest.md
|
|
967
|
+
---
|
|
968
|
+
<div class="openapi">
|
|
969
|
+
|
|
970
|
+
# Test x-hidden attribute
|
|
971
|
+
|
|
972
|
+
<!-- markdownlint-disable-file -->
|
|
973
|
+
|
|
974
|
+
Test various x-hidden scenarios
|
|
975
|
+
|
|
976
|
+
## Request
|
|
977
|
+
|
|
978
|
+
<div class="openapi__requests">
|
|
979
|
+
|
|
980
|
+
<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">
|
|
981
|
+
|
|
982
|
+
<div class="openapi__request">
|
|
983
|
+
|
|
984
|
+
GET {.openapi__method}
|
|
985
|
+
\`\`\`text translate=no
|
|
986
|
+
http://localhost:8080/hidden-test
|
|
987
|
+
\`\`\`
|
|
988
|
+
|
|
989
|
+
</div>
|
|
990
|
+
|
|
991
|
+
Generated server url
|
|
992
|
+
|
|
993
|
+
</div>
|
|
994
|
+
|
|
995
|
+
</div>
|
|
996
|
+
|
|
997
|
+
## Responses
|
|
998
|
+
|
|
999
|
+
<div class="openapi__response__code__200">
|
|
1000
|
+
|
|
1001
|
+
## 200 OK
|
|
1002
|
+
|
|
1003
|
+
Response with hidden fields
|
|
1004
|
+
|
|
1005
|
+
<div class="openapi-entity">
|
|
1006
|
+
|
|
1007
|
+
### Body
|
|
1008
|
+
|
|
1009
|
+
{% cut "application/json" %}
|
|
1010
|
+
|
|
1011
|
+
\`\`\`json translate=no
|
|
1012
|
+
{
|
|
1013
|
+
"visibleField": "example",
|
|
1014
|
+
"nestedObject": {
|
|
1015
|
+
"visibleNested": "example"
|
|
1016
|
+
},
|
|
1017
|
+
"arrayWithHiddenItems": [
|
|
1018
|
+
"example"
|
|
1019
|
+
],
|
|
1020
|
+
"mixedVisibility": {
|
|
1021
|
+
"field1": "example",
|
|
1022
|
+
"field3": "example",
|
|
1023
|
+
"field5": "example"
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
\`\`\`
|
|
1027
|
+
|
|
1028
|
+
{% endcut %}
|
|
1029
|
+
|
|
1030
|
+
#|
|
|
1031
|
+
|| **Name** | **Description** ||
|
|
1032
|
+
||
|
|
1033
|
+
|
|
1034
|
+
_arrayWithHiddenItems_{.json-schema-reset .json-schema-property}
|
|
1035
|
+
{.table-cell}|
|
|
1036
|
+
**Type**: [HiddenField](#entity-HiddenField)[]
|
|
1037
|
+
|
|
1038
|
+
Array with hidden item schema
|
|
1039
|
+
|
|
1040
|
+
{% cut "**Example**" %}{.json-schema-example}
|
|
1041
|
+
|
|
1042
|
+
\`\`\`json translate=no
|
|
1043
|
+
[
|
|
1044
|
+
"example"
|
|
1045
|
+
]
|
|
1046
|
+
\`\`\`
|
|
1047
|
+
|
|
1048
|
+
{% endcut %}
|
|
1049
|
+
{.table-cell}
|
|
1050
|
+
||
|
|
1051
|
+
||
|
|
1052
|
+
|
|
1053
|
+
_mixedVisibility_{.json-schema-reset .json-schema-property}
|
|
1054
|
+
{.table-cell}|
|
|
1055
|
+
{% cut "**Type**: object" %}
|
|
1056
|
+
|
|
1057
|
+
#|
|
|
1058
|
+
||
|
|
1059
|
+
|
|
1060
|
+
_field1_{.json-schema-reset .json-schema-property}
|
|
1061
|
+
{.table-cell}|
|
|
1062
|
+
**Type**: string
|
|
1063
|
+
|
|
1064
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
1065
|
+
{.table-cell}
|
|
1066
|
+
||
|
|
1067
|
+
||
|
|
1068
|
+
|
|
1069
|
+
_field3_{.json-schema-reset .json-schema-property}
|
|
1070
|
+
{.table-cell}|
|
|
1071
|
+
**Type**: string
|
|
1072
|
+
|
|
1073
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
1074
|
+
{.table-cell}
|
|
1075
|
+
||
|
|
1076
|
+
||
|
|
1077
|
+
|
|
1078
|
+
_field5_{.json-schema-reset .json-schema-property}
|
|
1079
|
+
{.table-cell}|
|
|
1080
|
+
**Type**: string
|
|
1081
|
+
|
|
1082
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
1083
|
+
{.table-cell}
|
|
1084
|
+
||
|
|
1085
|
+
|#{.json-schema-properties}
|
|
1086
|
+
|
|
1087
|
+
{% endcut %}
|
|
1088
|
+
|
|
1089
|
+
{% cut "**Example**" %}{.json-schema-example}
|
|
1090
|
+
|
|
1091
|
+
\`\`\`json translate=no
|
|
1092
|
+
{
|
|
1093
|
+
"field1": "example",
|
|
1094
|
+
"field3": "example",
|
|
1095
|
+
"field5": "example"
|
|
1096
|
+
}
|
|
1097
|
+
\`\`\`
|
|
1098
|
+
|
|
1099
|
+
{% endcut %}
|
|
1100
|
+
{.table-cell}
|
|
1101
|
+
||
|
|
1102
|
+
||
|
|
1103
|
+
|
|
1104
|
+
_nestedObject_{.json-schema-reset .json-schema-property}
|
|
1105
|
+
{.table-cell}|
|
|
1106
|
+
{% cut "**Type**: object" %}
|
|
1107
|
+
|
|
1108
|
+
#|
|
|
1109
|
+
||
|
|
1110
|
+
|
|
1111
|
+
_visibleNested_{.json-schema-reset .json-schema-property}
|
|
1112
|
+
{.table-cell}|
|
|
1113
|
+
**Type**: string
|
|
1114
|
+
|
|
1115
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
1116
|
+
{.table-cell}
|
|
1117
|
+
||
|
|
1118
|
+
|#{.json-schema-properties}
|
|
1119
|
+
|
|
1120
|
+
{% endcut %}
|
|
1121
|
+
|
|
1122
|
+
Object with hidden properties
|
|
1123
|
+
|
|
1124
|
+
{% cut "**Example**" %}{.json-schema-example}
|
|
1125
|
+
|
|
1126
|
+
\`\`\`json translate=no
|
|
1127
|
+
{
|
|
1128
|
+
"visibleNested": "example"
|
|
1129
|
+
}
|
|
1130
|
+
\`\`\`
|
|
1131
|
+
|
|
1132
|
+
{% endcut %}
|
|
1133
|
+
{.table-cell}
|
|
1134
|
+
||
|
|
1135
|
+
||
|
|
1136
|
+
|
|
1137
|
+
_visibleField_{.json-schema-reset .json-schema-property}
|
|
1138
|
+
{.table-cell}|
|
|
1139
|
+
**Type**: string
|
|
1140
|
+
|
|
1141
|
+
This field should be visible
|
|
1142
|
+
|
|
1143
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
1144
|
+
{.table-cell}
|
|
1145
|
+
||
|
|
1146
|
+
|#{.json-schema-properties}
|
|
1147
|
+
|
|
1148
|
+
</div>
|
|
1149
|
+
|
|
1150
|
+
</div>
|
|
1151
|
+
|
|
1152
|
+
</div>
|
|
1153
|
+
|
|
1154
|
+
[*Deprecated]: No longer supported, please use an alternative and newer version."
|
|
1155
|
+
`;
|
|
1156
|
+
|
|
1157
|
+
exports[`Regression > internal 24`] = `
|
|
1158
|
+
"---
|
|
1159
|
+
metadata:
|
|
1160
|
+
- name: generator
|
|
1161
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
1162
|
+
__system:
|
|
1163
|
+
testVar: test-value
|
|
1164
|
+
vcsPath: openapi/test-controller/getWithPayloadResponse.md
|
|
1165
|
+
---
|
|
1166
|
+
<div class="openapi">
|
|
1167
|
+
|
|
1168
|
+
# Simple get operation. тест новой верстки 3
|
|
1169
|
+
|
|
1170
|
+
<!-- markdownlint-disable-file -->
|
|
1171
|
+
|
|
1172
|
+
Defines a simple get operation with no inputs and a complex
|
|
1173
|
+
|
|
1174
|
+
## Request
|
|
1175
|
+
|
|
1176
|
+
<div class="openapi__requests">
|
|
1177
|
+
|
|
1178
|
+
<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">
|
|
1179
|
+
|
|
1180
|
+
<div class="openapi__request">
|
|
1181
|
+
|
|
1182
|
+
GET {.openapi__method}
|
|
1183
|
+
\`\`\`text translate=no
|
|
1184
|
+
http://localhost:8080/test
|
|
1185
|
+
\`\`\`
|
|
1186
|
+
|
|
1187
|
+
</div>
|
|
1188
|
+
|
|
1189
|
+
Generated server url
|
|
1190
|
+
|
|
1191
|
+
</div>
|
|
1192
|
+
|
|
1193
|
+
</div>
|
|
1194
|
+
|
|
1195
|
+
## Responses
|
|
1196
|
+
|
|
1197
|
+
<div class="openapi__response__code__200">
|
|
1198
|
+
|
|
1199
|
+
## 200 OK
|
|
1200
|
+
|
|
1201
|
+
200!!!!
|
|
1202
|
+
|
|
1203
|
+
<div class="openapi-entity">
|
|
1204
|
+
|
|
1205
|
+
### Body
|
|
1206
|
+
|
|
1207
|
+
{% cut "application/json" %}
|
|
1208
|
+
|
|
1209
|
+
\`\`\`json translate=no
|
|
1210
|
+
{
|
|
1211
|
+
"A": "example"
|
|
1212
|
+
}
|
|
1213
|
+
\`\`\`
|
|
1214
|
+
|
|
1215
|
+
{% endcut %}
|
|
1216
|
+
|
|
1217
|
+
#|
|
|
1218
|
+
|| **Name** | **Description** ||
|
|
1219
|
+
||
|
|
1220
|
+
|
|
1221
|
+
_A_{.json-schema-reset .json-schema-property}
|
|
1222
|
+
{.table-cell}|
|
|
1223
|
+
**Type**: string
|
|
1224
|
+
|
|
1225
|
+
_Example:_{.json-schema-reset .json-schema-example} \`example\`
|
|
1226
|
+
{.table-cell}
|
|
1227
|
+
||
|
|
1228
|
+
|#{.json-schema-properties}
|
|
1229
|
+
|
|
1230
|
+
</div>
|
|
1231
|
+
|
|
1232
|
+
</div>
|
|
1233
|
+
|
|
1234
|
+
</div>
|
|
1235
|
+
|
|
1236
|
+
[*Deprecated]: No longer supported, please use an alternative and newer version."
|
|
1237
|
+
`;
|
|
1238
|
+
|
|
1239
|
+
exports[`Regression > internal 25`] = `
|
|
1240
|
+
"---
|
|
1241
|
+
metadata:
|
|
1242
|
+
- name: generator
|
|
1243
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
1244
|
+
__system:
|
|
1245
|
+
testVar: test-value
|
|
1246
|
+
vcsPath: openapi/test-controller/index.md
|
|
1247
|
+
---
|
|
1248
|
+
# test-controller
|
|
1249
|
+
|
|
1250
|
+
<!-- markdownlint-disable-file -->
|
|
1251
|
+
|
|
1252
|
+
## Endpoints
|
|
1253
|
+
|
|
1254
|
+
- [Simple get operation. тест новой верстки 3](getWithPayloadResponse.md)
|
|
1255
|
+
- [Test x-hidden attribute](getHiddenTest.md)
|
|
1256
|
+
"
|
|
1257
|
+
`;
|
|
1258
|
+
|
|
1259
|
+
exports[`Regression > internal 26`] = `
|
|
1260
|
+
"files:
|
|
1261
|
+
- from: c.md
|
|
1262
|
+
to: d.md
|
|
1263
|
+
common:
|
|
1264
|
+
- from: ./a.md
|
|
1265
|
+
to: ./b.md
|
|
1266
|
+
"
|
|
1267
|
+
`;
|
|
1268
|
+
|
|
1269
|
+
exports[`Regression > internal 27`] = `
|
|
1270
|
+
"---
|
|
1271
|
+
metadata:
|
|
1272
|
+
- name: generator
|
|
1273
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
1274
|
+
__system:
|
|
1275
|
+
testVar: test-value
|
|
1276
|
+
vcsPath: sub/folder/item-1.md
|
|
1277
|
+
---
|
|
1278
|
+
# Item 1
|
|
1279
|
+
|
|
1280
|
+
Item 1 text
|
|
1281
|
+
|
|
1282
|
+
[Images](../../images.md)
|
|
1283
|
+
"
|
|
1284
|
+
`;
|
|
1285
|
+
|
|
1286
|
+
exports[`Regression > internal 28`] = `
|
|
1287
|
+
"items:
|
|
1288
|
+
- name: Verbose root (index.yaml) will be transformed to index.html
|
|
1289
|
+
href: index.yaml
|
|
1290
|
+
- name: Root will be transformed to index.html
|
|
1291
|
+
href: /index.yaml
|
|
1292
|
+
- name: Md item with not_var syntax
|
|
1293
|
+
href: 1.md
|
|
1294
|
+
- name: Md item named without extension
|
|
1295
|
+
href: 1.md
|
|
1296
|
+
- name: Item with empty href
|
|
1297
|
+
- name: Multitoc item
|
|
1298
|
+
href: merge/merged.md
|
|
1299
|
+
- name: Fragments
|
|
1300
|
+
href: includes/fragments.md
|
|
1301
|
+
- name: Included Item
|
|
1302
|
+
href: included-item.md
|
|
1303
|
+
- name: Named include (items is Object here - this is not an error)
|
|
1304
|
+
items:
|
|
1305
|
+
- name: Item 1
|
|
1306
|
+
href: sub/folder/item-1.md
|
|
1307
|
+
- href: mermaid.md
|
|
1308
|
+
name: Mermaid usage
|
|
1309
|
+
- name: Latex usage
|
|
1310
|
+
href: latex.md
|
|
1311
|
+
- name: Images
|
|
1312
|
+
href: images.md
|
|
1313
|
+
- name: Autotitle
|
|
1314
|
+
href: autotitle.md
|
|
1315
|
+
- name: includes
|
|
1316
|
+
href: includes.md
|
|
1317
|
+
- name: Entry as include
|
|
1318
|
+
href: entry-as-include.md
|
|
1319
|
+
- name: Includer of entry
|
|
1320
|
+
href: includer-of-entry.md
|
|
1321
|
+
- name: generic
|
|
1322
|
+
items:
|
|
1323
|
+
- name: Note 1
|
|
1324
|
+
href: generic/1.md
|
|
1325
|
+
- name: Note 1
|
|
1326
|
+
href: generic/2.md
|
|
1327
|
+
- name: '3'
|
|
1328
|
+
href: generic/3.md
|
|
1329
|
+
- name: Sub notes
|
|
1330
|
+
items:
|
|
1331
|
+
- name: Sub note 1
|
|
1332
|
+
href: generic/Sub notes/1.md
|
|
1333
|
+
- name: Sub note 2
|
|
1334
|
+
href: generic/Sub notes/2.md
|
|
1335
|
+
- name: openapi
|
|
1336
|
+
items:
|
|
1337
|
+
- name: Overview
|
|
1338
|
+
href: openapi/index.md
|
|
1339
|
+
- name: test-controller
|
|
1340
|
+
items:
|
|
1341
|
+
- name: Overview
|
|
1342
|
+
href: openapi/test-controller/index.md
|
|
1343
|
+
- href: openapi/test-controller/getWithPayloadResponse.md
|
|
1344
|
+
name: Simple get operation. тест новой верстки 3
|
|
1345
|
+
- href: openapi/test-controller/getHiddenTest.md
|
|
1346
|
+
name: Test x-hidden attribute
|
|
1347
|
+
path: toc.yaml
|
|
1348
|
+
"
|
|
1349
|
+
`;
|
|
1350
|
+
|
|
1351
|
+
exports[`Regression > internal 29`] = `
|
|
1352
|
+
"preprocess:
|
|
1353
|
+
mergeAutotitles: true
|
|
1354
|
+
"
|
|
1355
|
+
`;
|
|
1356
|
+
|
|
1357
|
+
exports[`Regression > internal 30`] = `
|
|
1358
|
+
"<!DOCTYPE html>
|
|
1359
|
+
<html lang="ru" dir="ltr">
|
|
1360
|
+
<head>
|
|
1361
|
+
<meta charset="utf-8">
|
|
1362
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1363
|
+
<base href="./" />
|
|
1364
|
+
<title>Title</title>
|
|
1365
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1366
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1367
|
+
</head>
|
|
1368
|
+
<body class="g-root g-root_theme_light">
|
|
1369
|
+
<div id="root"></div>
|
|
1370
|
+
<script type="application/json" id="diplodoc-state">
|
|
1371
|
+
{"data":{"leading":false,"html":"<p>Text {{not-var}} {{skip()}} default-var-value</p>/n<p>Text <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-1\\">{{not-var}}</code> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-2\\">{{skip()}}</code> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-3\\">default-var-value</code></p>/n<p>Text</p>/n/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs\\">{{not-var}}/n/n{{skip()}}/n/ndefault-var-value/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"9\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-9\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-9\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-9.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n<p><code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-4\\">[not a link](./path/to/relative/file.md)</code></p>/n<h2 id=\\"subtitle\\"><a href=\\"1.html#subtitle\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subtitle</span></a>Subtitle</h2>/n<p><a href=\\"mermaid.html\\">Mermaid usage</a></p>/n<p><a href=\\"mermaid.html#info\\">Mermaid info</a></p>/n<p><a href=\\"latex.html\\">Latex usage</a></p>/n<p><a href=\\"includes\\">noext-link</a></p>/n/n<p>Bob</p>/n/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"1.md"},"headings":[{"title":"Subtitle","href":"1.html#subtitle","level":2}],"title":"Title"},"router":{"pathname":"1","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1372
|
+
</script>
|
|
1373
|
+
<script type="application/javascript">
|
|
1374
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1375
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1376
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1377
|
+
})(data.innerText));
|
|
1378
|
+
window.STATIC_CONTENT = false;
|
|
1379
|
+
</script>
|
|
1380
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1381
|
+
</body>
|
|
1382
|
+
</html>"
|
|
1383
|
+
`;
|
|
1384
|
+
|
|
1385
|
+
exports[`Regression > internal 31`] = `
|
|
1386
|
+
"<!DOCTYPE html>
|
|
1387
|
+
<html lang="ru" dir="ltr">
|
|
1388
|
+
<head>
|
|
1389
|
+
<meta charset="utf-8">
|
|
1390
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1391
|
+
<base href="./" />
|
|
1392
|
+
<title>Autotitles</title>
|
|
1393
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1394
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1395
|
+
</head>
|
|
1396
|
+
<body class="g-root g-root_theme_light">
|
|
1397
|
+
<div id="root"></div>
|
|
1398
|
+
<script type="application/json" id="diplodoc-state">
|
|
1399
|
+
{"data":{"leading":false,"html":"<p>Empty title<br />/n<a href=\\"1.html\\">Title</a></p>/n<p>Empty subtitle<br />/n<a href=\\"1.html#subtitle\\">Subtitle</a></p>/n<p>Special title<br />/n<a href=\\"1.html\\">Title</a></p>/n<p>Special subtitle<br />/n<a href=\\"1.html#subtitle\\">Subtitle</a></p>/n<p>Empty local title<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<p>Special local title<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<p>Circular title<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<p>Autotitle from include</p>/n/n<p>Include with autotitle</p>/n/n<p>link with <i class=\\"yfm yfm-term_title\\" term-key=\\":term1-1\\" role=\\"button\\" aria-controls=\\":term1-1_element\\" tabindex=\\"0\\" id=\\"term1-1-1\\">some local term1</i></p>/n<div class=\\"yfm-tabs\\" data-diplodoc-group=\\"defaultTabsGroup-1\\" data-diplodoc-variant=\\"regular\\">/n<div class=\\"yfm-tab-list\\" role=\\"tablist\\">/n<div data-diplodoc-id=\\"название-таба-1\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%201\\" class=\\"yfm-tab yfm-tab-group active\\" role=\\"tab\\" aria-controls=\\"regular-1\\" tabindex=\\"0\\" data-diplodoc-is-active=\\"true\\">Название таба 1</div>/n<div data-diplodoc-id=\\"название-таба-2\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%202\\" class=\\"yfm-tab yfm-tab-group\\" role=\\"tab\\" aria-controls=\\"regular-2\\" tabindex=\\"-1\\" data-diplodoc-is-active=\\"false\\">Название таба 2</div>/n</div>/n<div id=\\"regular-1\\" class=\\"yfm-tab-panel active\\" role=\\"tabpanel\\" data-title=\\"Название таба 1\\">/n<p>Текст таба 1.</p>/n<ul>/n<li>Можно использовать списки.</li>/n<li>И <strong>другую</strong> разметку.</li>/n</ul>/n</div>/n<div id=\\"regular-2\\" class=\\"yfm-tab-panel\\" role=\\"tabpanel\\" data-title=\\"Название таба 2\\">/n<p>Текст таба 2.</p>/n</div>/n</div>/n<p>All fragments</p>/n/n<h3 id=\\"f1\\"><a href=\\"autotitle.html#f1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F1</span></a>F1</h3>/n<p>Content F1</p>/n<h2 id=\\"f2\\"><a href=\\"autotitle.html#f2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2</span></a>F2</h2>/n<p>Content F2</p>/n<h3 id=\\"f2.1\\"><a href=\\"autotitle.html#f2.1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2.1</span></a>F2.1</h3>/n<p>Content F2.1</p>/n<h2 id=\\"f3\\"><a href=\\"autotitle.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"f4\\"><a href=\\"autotitle.html#f4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F4</span></a>F4</h2>/n<p>Content F4<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<h3 id=\\"f4.1\\"><a href=\\"autotitle.html#f4.1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F4.1</span></a>F4.1</h3>/n<p>link with <i class=\\"yfm yfm-term_title\\" term-key=\\":term1\\" role=\\"button\\" aria-controls=\\":term1_element\\" tabindex=\\"0\\" id=\\"term1-1\\">some term1</i></p>/n<div class=\\"yfm-tabs\\" data-diplodoc-group=\\"defaultTabsGroup-2\\" data-diplodoc-variant=\\"regular\\">/n<div class=\\"yfm-tab-list\\" role=\\"tablist\\">/n<div data-diplodoc-id=\\"название-таба-1-1\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%201\\" class=\\"yfm-tab yfm-tab-group active\\" role=\\"tab\\" aria-controls=\\"regular-3\\" tabindex=\\"0\\" data-diplodoc-is-active=\\"true\\">Название таба 1</div>/n<div data-diplodoc-id=\\"название-таба-2-1\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%202\\" class=\\"yfm-tab yfm-tab-group\\" role=\\"tab\\" aria-controls=\\"regular-4\\" tabindex=\\"-1\\" data-diplodoc-is-active=\\"false\\">Название таба 2</div>/n</div>/n<div id=\\"regular-3\\" class=\\"yfm-tab-panel active\\" role=\\"tabpanel\\" data-title=\\"Название таба 1\\">/n<p>Текст таба 1.</p>/n<ul>/n<li>Можно использовать списки.</li>/n<li>И <strong>другую</strong> разметку.</li>/n</ul>/n</div>/n<div id=\\"regular-4\\" class=\\"yfm-tab-panel\\" role=\\"tabpanel\\" data-title=\\"Название таба 2\\">/n<p>Текст таба 2.</p>/n</div>/n</div>/n/n<h2 id=\\"header\\"><a href=\\"autotitle.html#header\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Header</span></a>Header</h2>/n<p>Content2</p>/n/n<style>.yfm .border-yes {/n border: 1px solid #ccc;/n border-radius: 10px;/n}</style>/n/n<dfn class=\\"yfm yfm-term_dfn\\" id=\\":term1-1_element\\" role=\\"dialog\\"><h2 id=\\"f31\\"><a href=\\"autotitle.html#f31\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a><a href=\\"autotitle.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n</dfn><dfn class=\\"yfm yfm-term_dfn\\" id=\\":term1_element\\" role=\\"dialog\\"><p>Some description</p>/n</dfn>","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":[],"script":[],"vcsPath":"autotitle.md"},"headings":[{"title":"F2","href":"autotitle.html#f2","level":2,"items":[{"title":"F2.1","href":"autotitle.html#f2.1","level":3}]},{"title":"F3","href":"autotitle.html#f3","level":2},{"title":"F4","href":"autotitle.html#f4","level":2,"items":[{"title":"F4.1","href":"autotitle.html#f4.1","level":3}]},{"title":"Header","href":"autotitle.html#header","level":2},{"title":"F3","href":"autotitle.html#f31","level":2}],"title":"Autotitles"},"router":{"pathname":"autotitle","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1400
|
+
</script>
|
|
1401
|
+
<script type="application/javascript">
|
|
1402
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1403
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1404
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1405
|
+
})(data.innerText));
|
|
1406
|
+
window.STATIC_CONTENT = false;
|
|
1407
|
+
</script>
|
|
1408
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1409
|
+
</body>
|
|
1410
|
+
</html>"
|
|
1411
|
+
`;
|
|
1412
|
+
|
|
1413
|
+
exports[`Regression > internal 32`] = `
|
|
1414
|
+
"<!DOCTYPE html>
|
|
1415
|
+
<html lang="ru" dir="ltr">
|
|
1416
|
+
<head>
|
|
1417
|
+
<meta charset="utf-8">
|
|
1418
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1419
|
+
<base href="./" />
|
|
1420
|
+
<title>Redirect to d.md</title>
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
<meta http-equiv="refresh" content="0; url=d.md">
|
|
1424
|
+
|
|
1425
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1426
|
+
|
|
1427
|
+
<script type="application/javascript">
|
|
1428
|
+
window.location.replace("d.md");
|
|
1429
|
+
</script>
|
|
1430
|
+
|
|
1431
|
+
</head>
|
|
1432
|
+
<body class="g-root g-root_theme_light">
|
|
1433
|
+
If you are not redirected automatically, follow this <a href="d.md">link</a>.
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
</body>
|
|
1438
|
+
</html>"
|
|
1439
|
+
`;
|
|
1440
|
+
|
|
1441
|
+
exports[`Regression > internal 33`] = `
|
|
1442
|
+
"<!DOCTYPE html>
|
|
1443
|
+
<html lang="ru" dir="ltr">
|
|
1444
|
+
<head>
|
|
1445
|
+
<meta charset="utf-8">
|
|
1446
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1447
|
+
<base href="./" />
|
|
1448
|
+
<title>Entry that is also used as include</title>
|
|
1449
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1450
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1451
|
+
</head>
|
|
1452
|
+
<body class="g-root g-root_theme_light">
|
|
1453
|
+
<div id="root"></div>
|
|
1454
|
+
<script type="application/json" id="diplodoc-state">
|
|
1455
|
+
{"data":{"leading":false,"html":"<p>This file is both an entry (in toc) and included by another file.</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"entry-as-include.md"},"headings":[],"title":"Entry that is also used as include"},"router":{"pathname":"entry-as-include","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1456
|
+
</script>
|
|
1457
|
+
<script type="application/javascript">
|
|
1458
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1459
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1460
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1461
|
+
})(data.innerText));
|
|
1462
|
+
window.STATIC_CONTENT = false;
|
|
1463
|
+
</script>
|
|
1464
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1465
|
+
</body>
|
|
1466
|
+
</html>"
|
|
1467
|
+
`;
|
|
1468
|
+
|
|
1469
|
+
exports[`Regression > internal 34`] = `
|
|
1470
|
+
"<!DOCTYPE html>
|
|
1471
|
+
<html lang="ru" dir="ltr">
|
|
1472
|
+
<head>
|
|
1473
|
+
<meta charset="utf-8">
|
|
1474
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1475
|
+
<base href="../" />
|
|
1476
|
+
<title>Note 1</title>
|
|
1477
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1478
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1479
|
+
</head>
|
|
1480
|
+
<body class="g-root g-root_theme_light">
|
|
1481
|
+
<div id="root"></div>
|
|
1482
|
+
<script type="application/json" id="diplodoc-state">
|
|
1483
|
+
{"data":{"leading":false,"html":"<p>Note content 1</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"generic/1.md"},"headings":[],"title":"Note 1"},"router":{"pathname":"generic/1","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1484
|
+
</script>
|
|
1485
|
+
<script type="application/javascript">
|
|
1486
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1487
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1488
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1489
|
+
})(data.innerText));
|
|
1490
|
+
window.STATIC_CONTENT = false;
|
|
1491
|
+
</script>
|
|
1492
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1493
|
+
</body>
|
|
1494
|
+
</html>"
|
|
1495
|
+
`;
|
|
1496
|
+
|
|
1497
|
+
exports[`Regression > internal 35`] = `
|
|
1498
|
+
"<!DOCTYPE html>
|
|
1499
|
+
<html lang="ru" dir="ltr">
|
|
1500
|
+
<head>
|
|
1501
|
+
<meta charset="utf-8">
|
|
1502
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1503
|
+
<base href="../" />
|
|
1504
|
+
<title>Note 1</title>
|
|
1505
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1506
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1507
|
+
</head>
|
|
1508
|
+
<body class="g-root g-root_theme_light">
|
|
1509
|
+
<div id="root"></div>
|
|
1510
|
+
<script type="application/json" id="diplodoc-state">
|
|
1511
|
+
{"data":{"leading":false,"html":"<p>Note content 1</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"generic/2.md"},"headings":[],"title":"Note 1"},"router":{"pathname":"generic/2","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1512
|
+
</script>
|
|
1513
|
+
<script type="application/javascript">
|
|
1514
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1515
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1516
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1517
|
+
})(data.innerText));
|
|
1518
|
+
window.STATIC_CONTENT = false;
|
|
1519
|
+
</script>
|
|
1520
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1521
|
+
</body>
|
|
1522
|
+
</html>"
|
|
1523
|
+
`;
|
|
1524
|
+
|
|
1525
|
+
exports[`Regression > internal 36`] = `
|
|
1526
|
+
"<!DOCTYPE html>
|
|
1527
|
+
<html lang="ru" dir="ltr">
|
|
1528
|
+
<head>
|
|
1529
|
+
<meta charset="utf-8">
|
|
1530
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1531
|
+
<base href="../" />
|
|
1532
|
+
<title></title>
|
|
1533
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1534
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1535
|
+
</head>
|
|
1536
|
+
<body class="g-root g-root_theme_light">
|
|
1537
|
+
<div id="root"></div>
|
|
1538
|
+
<script type="application/json" id="diplodoc-state">
|
|
1539
|
+
{"data":{"leading":false,"html":"<p>Note content 1</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"generic/3.md"},"headings":[],"title":""},"router":{"pathname":"generic/3","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1540
|
+
</script>
|
|
1541
|
+
<script type="application/javascript">
|
|
1542
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1543
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1544
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1545
|
+
})(data.innerText));
|
|
1546
|
+
window.STATIC_CONTENT = false;
|
|
1547
|
+
</script>
|
|
1548
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1549
|
+
</body>
|
|
1550
|
+
</html>"
|
|
1551
|
+
`;
|
|
1552
|
+
|
|
1553
|
+
exports[`Regression > internal 37`] = `
|
|
1554
|
+
"<!DOCTYPE html>
|
|
1555
|
+
<html lang="ru" dir="ltr">
|
|
1556
|
+
<head>
|
|
1557
|
+
<meta charset="utf-8">
|
|
1558
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1559
|
+
<base href="../../" />
|
|
1560
|
+
<title>Sub note 1</title>
|
|
1561
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1562
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1563
|
+
</head>
|
|
1564
|
+
<body class="g-root g-root_theme_light">
|
|
1565
|
+
<div id="root"></div>
|
|
1566
|
+
<script type="application/json" id="diplodoc-state">
|
|
1567
|
+
{"data":{"leading":false,"html":"<p>Note content 1</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"generic/Sub notes/1.md"},"headings":[],"title":"Sub note 1"},"router":{"pathname":"generic/Sub notes/1","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1568
|
+
</script>
|
|
1569
|
+
<script type="application/javascript">
|
|
1570
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1571
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1572
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1573
|
+
})(data.innerText));
|
|
1574
|
+
window.STATIC_CONTENT = false;
|
|
1575
|
+
</script>
|
|
1576
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1577
|
+
</body>
|
|
1578
|
+
</html>"
|
|
1579
|
+
`;
|
|
1580
|
+
|
|
1581
|
+
exports[`Regression > internal 38`] = `
|
|
1582
|
+
"<!DOCTYPE html>
|
|
1583
|
+
<html lang="ru" dir="ltr">
|
|
1584
|
+
<head>
|
|
1585
|
+
<meta charset="utf-8">
|
|
1586
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1587
|
+
<base href="../../" />
|
|
1588
|
+
<title>Sub note 2</title>
|
|
1589
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1590
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1591
|
+
</head>
|
|
1592
|
+
<body class="g-root g-root_theme_light">
|
|
1593
|
+
<div id="root"></div>
|
|
1594
|
+
<script type="application/json" id="diplodoc-state">
|
|
1595
|
+
{"data":{"leading":false,"html":"<p>Note content 2</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"generic/Sub notes/2.md"},"headings":[],"title":"Sub note 2"},"router":{"pathname":"generic/Sub notes/2","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1596
|
+
</script>
|
|
1597
|
+
<script type="application/javascript">
|
|
1598
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1599
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1600
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1601
|
+
})(data.innerText));
|
|
1602
|
+
window.STATIC_CONTENT = false;
|
|
1603
|
+
</script>
|
|
1604
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1605
|
+
</body>
|
|
1606
|
+
</html>"
|
|
1607
|
+
`;
|
|
1608
|
+
|
|
1609
|
+
exports[`Regression > internal 39`] = `
|
|
1610
|
+
"<!DOCTYPE html>
|
|
1611
|
+
<html lang="ru" dir="ltr">
|
|
1612
|
+
<head>
|
|
1613
|
+
<meta charset="utf-8">
|
|
1614
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1615
|
+
<base href="./" />
|
|
1616
|
+
<title>Images</title>
|
|
1617
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1618
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1619
|
+
</head>
|
|
1620
|
+
<body class="g-root g-root_theme_light">
|
|
1621
|
+
<div id="root"></div>
|
|
1622
|
+
<script type="application/json" id="diplodoc-state">
|
|
1623
|
+
{"data":{"leading":false,"html":"<p><img src=\\"_assets/1.png\\" alt=\\"simple image\\" /></p>/n/n<p><img src=\\"_assets/3.png\\" alt=\\"with trailing comment\\" /></p>/n/n<p><img src=\\"_assets/5_1.png\\" alt=\\"with backslash\\" /></p>/n<p><a href=\\"latex.html\\"><img src=\\"_assets/3.png\\" alt=\\"img 3\\" /></a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"images.md"},"headings":[],"title":"Images"},"router":{"pathname":"images","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1624
|
+
</script>
|
|
1625
|
+
<script type="application/javascript">
|
|
1626
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1627
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1628
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1629
|
+
})(data.innerText));
|
|
1630
|
+
window.STATIC_CONTENT = false;
|
|
1631
|
+
</script>
|
|
1632
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1633
|
+
</body>
|
|
1634
|
+
</html>"
|
|
1635
|
+
`;
|
|
1636
|
+
|
|
1637
|
+
exports[`Regression > internal 40`] = `
|
|
1638
|
+
"<!DOCTYPE html>
|
|
1639
|
+
<html lang="ru" dir="ltr">
|
|
1640
|
+
<head>
|
|
1641
|
+
<meta charset="utf-8">
|
|
1642
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1643
|
+
<base href="./" />
|
|
1644
|
+
<title>Included item</title>
|
|
1645
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1646
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1647
|
+
</head>
|
|
1648
|
+
<body class="g-root g-root_theme_light">
|
|
1649
|
+
<div id="root"></div>
|
|
1650
|
+
<script type="application/json" id="diplodoc-state">
|
|
1651
|
+
{"data":{"leading":false,"html":"<p>Included item text</p>/n/n<div class=\\"yfm-note yfm-accent-alert\\" note-type=\\"alert\\"><p class=\\"yfm-note-title\\">Alert!</p>/n<div class=\\"yfm-note-content\\"> /n</div></div><p><img src=\\"_assets/empty.pdf\\" alt=\\"pdf\\" /></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"included-item.md"},"headings":[],"title":"Included item"},"router":{"pathname":"included-item","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1652
|
+
</script>
|
|
1653
|
+
<script type="application/javascript">
|
|
1654
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1655
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1656
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1657
|
+
})(data.innerText));
|
|
1658
|
+
window.STATIC_CONTENT = false;
|
|
1659
|
+
</script>
|
|
1660
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1661
|
+
</body>
|
|
1662
|
+
</html>"
|
|
1663
|
+
`;
|
|
1664
|
+
|
|
1665
|
+
exports[`Regression > internal 41`] = `
|
|
1666
|
+
"<!DOCTYPE html>
|
|
1667
|
+
<html lang="ru" dir="ltr">
|
|
1668
|
+
<head>
|
|
1669
|
+
<meta charset="utf-8">
|
|
1670
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1671
|
+
<base href="./" />
|
|
1672
|
+
<title>Includer of entry</title>
|
|
1673
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1674
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1675
|
+
</head>
|
|
1676
|
+
<body class="g-root g-root_theme_light">
|
|
1677
|
+
<div id="root"></div>
|
|
1678
|
+
<script type="application/json" id="diplodoc-state">
|
|
1679
|
+
{"data":{"leading":false,"html":"<p>This file includes another file that is also an entry.</p>/n/n<h1>Entry that is also used as include</h1>/n<p>This file is both an entry (in toc) and included by another file.</p>/n/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"includer-of-entry.md"},"headings":[],"title":"Includer of entry"},"router":{"pathname":"includer-of-entry","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1680
|
+
</script>
|
|
1681
|
+
<script type="application/javascript">
|
|
1682
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1683
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1684
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1685
|
+
})(data.innerText));
|
|
1686
|
+
window.STATIC_CONTENT = false;
|
|
1687
|
+
</script>
|
|
1688
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1689
|
+
</body>
|
|
1690
|
+
</html>"
|
|
1691
|
+
`;
|
|
1692
|
+
|
|
1693
|
+
exports[`Regression > internal 42`] = `
|
|
1694
|
+
"<!DOCTYPE html>
|
|
1695
|
+
<html lang="ru" dir="ltr">
|
|
1696
|
+
<head>
|
|
1697
|
+
<meta charset="utf-8">
|
|
1698
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1699
|
+
<base href="./" />
|
|
1700
|
+
<title></title>
|
|
1701
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1702
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1703
|
+
</head>
|
|
1704
|
+
<body class="g-root g-root_theme_light">
|
|
1705
|
+
<div id="root"></div>
|
|
1706
|
+
<script type="application/json" id="diplodoc-state">
|
|
1707
|
+
{"data":{"leading":false,"html":"<p>Text</p>/n/n<p>Bob</p>/n/n/n<p>Test</p>/n/n/n<h3 id=\\"f1\\"><a href=\\"includes.html#f1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F1</span></a>F1</h3>/n<p>Content F1</p>/n<h2 id=\\"f2\\"><a href=\\"includes.html#f2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2</span></a>F2</h2>/n<p>Content F2</p>/n/n/n<p id=\\"p1\\">Some paragraph with anchor</p>/n/n/n/n/n<p>Bob</p>/n/n<p><a href=\\"latex.html\\"><img src=\\"_assets/3.png\\" alt=\\"img 3\\" /></a></p>/n/n<p><sup><i class=\\"yfm yfm-term_title\\" term-key=\\":term\\" role=\\"button\\" aria-controls=\\":term_element\\" tabindex=\\"0\\" id=\\"vTERM-ID-2\\">?</i></sup></p>/n<p>[<i class=\\"yfm yfm-term_title\\" term-key=\\":term\\" role=\\"button\\" aria-controls=\\":term_element\\" tabindex=\\"0\\" id=\\"vTERM-ID-1\\">?</i>](http://ya.ru)</p>/n<p><i class=\\"yfm yfm-term_title\\" term-key=\\":term1\\" role=\\"button\\" aria-controls=\\":term1_element\\" tabindex=\\"0\\" id=\\"term1-1\\">Term 1</i> <i class=\\"yfm yfm-term_title\\" term-key=\\":term2\\" role=\\"button\\" aria-controls=\\":term2_element\\" tabindex=\\"0\\" id=\\"term2-1\\">Term 2</i></p>/n<p>Link after include<br />/n<a href=\\"1.html#subtitle\\">Subtitle</a></p>/n<p>Autotitle include</p>/n/n<p>Link after include</p>/n<h2 id=\\"mermaid\\"><a href=\\"includes.html#mermaid\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Mermaid</span></a>Mermaid</h2>/n/n<h1>Mermaid usage</h1>/n<div class=\\"mermaid\\" data-content=\\"sequenceDiagram%0A%20%20%20%20%20%20%20%20rect%20rgba(251%2C%20243%2C%20232%2C%200.2)%0A%20%20%20%20%20%20%20%20%20%20%20%20Alice%20-%3E%3E%20Bob%3A%0A%20%20%20%20%20%20%20%20end%0A\\"></div><h2 id=\\"info\\"><a href=\\"includes.html#info\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Mermaid info</span></a>Mermaid info</h2>/n<p>Some mermaid info</p>/n/n<dfn class=\\"yfm yfm-term_dfn\\" id=\\":term_element\\" role=\\"dialog\\"><p>Test terms</p>/n</dfn><dfn class=\\"yfm yfm-term_dfn\\" id=\\":term1_element\\" role=\\"dialog\\"><h2 id=\\"f3\\"><a href=\\"includes.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a><a href=\\"includes.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n</dfn><dfn class=\\"yfm yfm-term_dfn\\" id=\\":term2_element\\" role=\\"dialog\\"><h2 id=\\"f31\\"><a href=\\"includes.html#f31\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a><a href=\\"includes.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n</dfn>","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"script":["_bundle/mermaid-extension.js"],"vcsPath":"includes.md"},"headings":[{"title":"F2","href":"includes.html#f2","level":2},{"title":"Mermaid","href":"includes.html#mermaid","level":2},{"title":"Mermaid info","href":"includes.html#info","level":2},{"title":"F3","href":"includes.html#f3","level":2},{"title":"F3","href":"includes.html#f31","level":2}],"title":""},"router":{"pathname":"includes","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1708
|
+
</script>
|
|
1709
|
+
<script type="application/javascript">
|
|
1710
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1711
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1712
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1713
|
+
})(data.innerText));
|
|
1714
|
+
window.STATIC_CONTENT = false;
|
|
1715
|
+
</script>
|
|
1716
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1717
|
+
</body>
|
|
1718
|
+
</html>"
|
|
1719
|
+
`;
|
|
1720
|
+
|
|
1721
|
+
exports[`Regression > internal 43`] = `
|
|
1722
|
+
"<!DOCTYPE html>
|
|
1723
|
+
<html lang="ru" dir="ltr">
|
|
1724
|
+
<head>
|
|
1725
|
+
<meta charset="utf-8">
|
|
1726
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1727
|
+
<base href="../" />
|
|
1728
|
+
<title></title>
|
|
1729
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1730
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1731
|
+
</head>
|
|
1732
|
+
<body class="g-root g-root_theme_light">
|
|
1733
|
+
<div id="root"></div>
|
|
1734
|
+
<script type="application/json" id="diplodoc-state">
|
|
1735
|
+
{"data":{"leading":false,"html":"<h3 id=\\"f1\\"><a href=\\"includes/fragments.html#f1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F1</span></a>F1</h3>/n<p>Content F1</p>/n<h2 id=\\"f2\\"><a href=\\"includes/fragments.html#f2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2</span></a>F2</h2>/n<p>Content F2</p>/n<h3 id=\\"f2.1\\"><a href=\\"includes/fragments.html#f2.1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2.1</span></a>F2.1</h3>/n<p>Content F2.1</p>/n<h2 id=\\"f3\\"><a href=\\"includes/fragments.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"f4\\"><a href=\\"includes/fragments.html#f4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F4</span></a>F4</h2>/n<p>Content F4<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<h3 id=\\"f4.1\\"><a href=\\"includes/fragments.html#f4.1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F4.1</span></a>F4.1</h3>/n<p>link with <i class=\\"yfm yfm-term_title\\" term-key=\\":term1\\" role=\\"button\\" aria-controls=\\":term1_element\\" tabindex=\\"0\\" id=\\"term1-1\\">some term1</i></p>/n<div class=\\"yfm-tabs\\" data-diplodoc-group=\\"defaultTabsGroup-1\\" data-diplodoc-variant=\\"regular\\">/n<div class=\\"yfm-tab-list\\" role=\\"tablist\\">/n<div data-diplodoc-id=\\"название-таба-1\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%201\\" class=\\"yfm-tab yfm-tab-group active\\" role=\\"tab\\" aria-controls=\\"regular-1\\" tabindex=\\"0\\" data-diplodoc-is-active=\\"true\\">Название таба 1</div>/n<div data-diplodoc-id=\\"название-таба-2\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%202\\" class=\\"yfm-tab yfm-tab-group\\" role=\\"tab\\" aria-controls=\\"regular-2\\" tabindex=\\"-1\\" data-diplodoc-is-active=\\"false\\">Название таба 2</div>/n</div>/n<div id=\\"regular-1\\" class=\\"yfm-tab-panel active\\" role=\\"tabpanel\\" data-title=\\"Название таба 1\\">/n<p>Текст таба 1.</p>/n<ul>/n<li>Можно использовать списки.</li>/n<li>И <strong>другую</strong> разметку.</li>/n</ul>/n</div>/n<div id=\\"regular-2\\" class=\\"yfm-tab-panel\\" role=\\"tabpanel\\" data-title=\\"Название таба 2\\">/n<p>Текст таба 2.</p>/n</div>/n</div>/n<dfn class=\\"yfm yfm-term_dfn\\" id=\\":term1_element\\" role=\\"dialog\\"><p>Some description</p>/n</dfn>","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":[],"script":[],"vcsPath":"includes/fragments.md"},"headings":[{"title":"F2","href":"includes/fragments.html#f2","level":2,"items":[{"title":"F2.1","href":"includes/fragments.html#f2.1","level":3}]},{"title":"F3","href":"includes/fragments.html#f3","level":2},{"title":"F4","href":"includes/fragments.html#f4","level":2,"items":[{"title":"F4.1","href":"includes/fragments.html#f4.1","level":3}]}],"title":""},"router":{"pathname":"includes/fragments","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1736
|
+
</script>
|
|
1737
|
+
<script type="application/javascript">
|
|
1738
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1739
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1740
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1741
|
+
})(data.innerText));
|
|
1742
|
+
window.STATIC_CONTENT = false;
|
|
1743
|
+
</script>
|
|
1744
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1745
|
+
</body>
|
|
1746
|
+
</html>"
|
|
1747
|
+
`;
|
|
1748
|
+
|
|
1749
|
+
exports[`Regression > internal 44`] = `
|
|
1750
|
+
"<!DOCTYPE html>
|
|
1751
|
+
<html lang="ru" dir="ltr">
|
|
1752
|
+
<head>
|
|
1753
|
+
<meta charset="utf-8">
|
|
1754
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1755
|
+
<base href="./" />
|
|
1756
|
+
<title></title>
|
|
1757
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1758
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1759
|
+
</head>
|
|
1760
|
+
<body class="g-root g-root_theme_light">
|
|
1761
|
+
<div id="root"></div>
|
|
1762
|
+
<script type="application/json" id="diplodoc-state">
|
|
1763
|
+
{"data":{"leading":true,"data":{"description":["Some text"],"links":[{"name":"Link 1","href":"1.html"},{"name":"Link 2","href":"1/index.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.yaml"},"title":""},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1764
|
+
</script>
|
|
1765
|
+
<script type="application/javascript">
|
|
1766
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1767
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1768
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1769
|
+
})(data.innerText));
|
|
1770
|
+
window.STATIC_CONTENT = false;
|
|
1771
|
+
</script>
|
|
1772
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1773
|
+
</body>
|
|
1774
|
+
</html>"
|
|
1775
|
+
`;
|
|
1776
|
+
|
|
1777
|
+
exports[`Regression > internal 45`] = `
|
|
1778
|
+
"<!DOCTYPE html>
|
|
1779
|
+
<html lang="ru" dir="ltr">
|
|
1780
|
+
<head>
|
|
1781
|
+
<meta charset="utf-8">
|
|
1782
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1783
|
+
<base href="./" />
|
|
1784
|
+
<title>Latex usage</title>
|
|
1785
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1786
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1787
|
+
</head>
|
|
1788
|
+
<body class="g-root g-root_theme_light">
|
|
1789
|
+
<div id="root"></div>
|
|
1790
|
+
<script type="application/json" id="diplodoc-state">
|
|
1791
|
+
{"data":{"leading":false,"html":"<p><span class=\\"yfm-latex\\" data-content=\\"%5Csqrt%7B3x-1%7D%2B(1%2Bx)%5E2\\" data-options=\\"%7B%22strict%22%3Afalse%2C%22displayMode%22%3Afalse%7D\\"></span></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":["_bundle/latex-extension.css"],"script":["_bundle/latex-extension.js"],"vcsPath":"latex.md"},"headings":[],"title":"Latex usage"},"router":{"pathname":"latex","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1792
|
+
</script>
|
|
1793
|
+
<script type="application/javascript">
|
|
1794
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1795
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1796
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1797
|
+
})(data.innerText));
|
|
1798
|
+
window.STATIC_CONTENT = false;
|
|
1799
|
+
</script>
|
|
1800
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1801
|
+
</body>
|
|
1802
|
+
</html>"
|
|
1803
|
+
`;
|
|
1804
|
+
|
|
1805
|
+
exports[`Regression > internal 46`] = `
|
|
1806
|
+
"<!DOCTYPE html>
|
|
1807
|
+
<html lang="ru" dir="ltr">
|
|
1808
|
+
<head>
|
|
1809
|
+
<meta charset="utf-8">
|
|
1810
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1811
|
+
<base href="../" />
|
|
1812
|
+
<title>Should use merged item</title>
|
|
1813
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1814
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1815
|
+
</head>
|
|
1816
|
+
<body class="g-root g-root_theme_light">
|
|
1817
|
+
<div id="root"></div>
|
|
1818
|
+
<script type="application/json" id="diplodoc-state">
|
|
1819
|
+
{"data":{"leading":false,"html":"<p><a href=\\"merge/merged.html\\">merged</a></p>/n/n<p>Tool: Hammer and Laser</p>/n/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"merge/merge.md"},"headings":[],"title":"Should use merged item"},"router":{"pathname":"merge/merge","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1820
|
+
</script>
|
|
1821
|
+
<script type="application/javascript">
|
|
1822
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1823
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1824
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1825
|
+
})(data.innerText));
|
|
1826
|
+
window.STATIC_CONTENT = false;
|
|
1827
|
+
</script>
|
|
1828
|
+
<script type="application/javascript" defer src="merge/toc.js"></script>
|
|
1829
|
+
</body>
|
|
1830
|
+
</html>"
|
|
1831
|
+
`;
|
|
1832
|
+
|
|
1833
|
+
exports[`Regression > internal 47`] = `
|
|
1834
|
+
"<!DOCTYPE html>
|
|
1835
|
+
<html lang="ru" dir="ltr">
|
|
1836
|
+
<head>
|
|
1837
|
+
<meta charset="utf-8">
|
|
1838
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1839
|
+
<base href="../" />
|
|
1840
|
+
<title>Merged item</title>
|
|
1841
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1842
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1843
|
+
</head>
|
|
1844
|
+
<body class="g-root g-root_theme_light">
|
|
1845
|
+
<div id="root"></div>
|
|
1846
|
+
<script type="application/json" id="diplodoc-state">
|
|
1847
|
+
{"data":{"leading":false,"html":"<p>Should be linked in toc.yaml</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"sourcePath":"merge-source/merged.md","vcsPath":"merge-source/merged.md"},"headings":[],"title":"Merged item"},"router":{"pathname":"merge/merged","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1848
|
+
</script>
|
|
1849
|
+
<script type="application/javascript">
|
|
1850
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1851
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1852
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1853
|
+
})(data.innerText));
|
|
1854
|
+
window.STATIC_CONTENT = false;
|
|
1855
|
+
</script>
|
|
1856
|
+
<script type="application/javascript" defer src="merge/toc.js"></script>
|
|
1857
|
+
</body>
|
|
1858
|
+
</html>"
|
|
1859
|
+
`;
|
|
1860
|
+
|
|
1861
|
+
exports[`Regression > internal 48`] = `"window.__DATA__.data.toc = {"items":[{"name":"Use merged","href":"merge/merge.html","id":"UUID"},{"name":"Multitoc item","href":"1.html","id":"UUID"},{"name":"Merged item","href":"merge/merged.html","id":"UUID"}],"path":"merge/toc.yaml","id":"UUID"};"`;
|
|
1862
|
+
|
|
1863
|
+
exports[`Regression > internal 49`] = `
|
|
1864
|
+
"<!DOCTYPE html>
|
|
1865
|
+
<html lang="ru" dir="ltr">
|
|
1866
|
+
<head>
|
|
1867
|
+
<meta charset="utf-8">
|
|
1868
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1869
|
+
<base href="./" />
|
|
1870
|
+
<title>Mermaid usage</title>
|
|
1871
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1872
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1873
|
+
</head>
|
|
1874
|
+
<body class="g-root g-root_theme_light">
|
|
1875
|
+
<div id="root"></div>
|
|
1876
|
+
<script type="application/json" id="diplodoc-state">
|
|
1877
|
+
{"data":{"leading":false,"html":"<div class=\\"mermaid\\" data-content=\\"sequenceDiagram%0A%20%20%20%20%20%20%20%20rect%20rgba(251%2C%20243%2C%20232%2C%200.2)%0A%20%20%20%20%20%20%20%20%20%20%20%20Alice%20-%3E%3E%20Bob%3A%0A%20%20%20%20%20%20%20%20end%0A\\"></div><h2 id=\\"info\\"><a href=\\"mermaid.html#info\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Mermaid info</span></a>Mermaid info</h2>/n<p>Some mermaid info</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"script":["_bundle/mermaid-extension.js"],"vcsPath":"mermaid.md"},"headings":[{"title":"Mermaid info","href":"mermaid.html#info","level":2}],"title":"Mermaid usage"},"router":{"pathname":"mermaid","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1878
|
+
</script>
|
|
1879
|
+
<script type="application/javascript">
|
|
1880
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1881
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1882
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1883
|
+
})(data.innerText));
|
|
1884
|
+
window.STATIC_CONTENT = false;
|
|
1885
|
+
</script>
|
|
1886
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1887
|
+
</body>
|
|
1888
|
+
</html>"
|
|
1889
|
+
`;
|
|
1890
|
+
|
|
1891
|
+
exports[`Regression > internal 50`] = `
|
|
1892
|
+
"<!DOCTYPE html>
|
|
1893
|
+
<html lang="ru" dir="ltr">
|
|
1894
|
+
<head>
|
|
1895
|
+
<meta charset="utf-8">
|
|
1896
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1897
|
+
<base href="../" />
|
|
1898
|
+
<title></title>
|
|
1899
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1900
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1901
|
+
</head>
|
|
1902
|
+
<body class="g-root g-root_theme_light">
|
|
1903
|
+
<div id="root"></div>
|
|
1904
|
+
<script type="application/json" id="diplodoc-state">
|
|
1905
|
+
{"data":{"leading":false,"html":"<h1>OpenAPI definition</h1>/n<p><samp>version: v0</samp></p>/n<h2 id=\\"sections\\"><a href=\\"openapi/index.html#sections\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Sections</span></a>Sections</h2>/n<ul>/n<li><a href=\\"openapi/test-controller/index.html\\">test-controller</a></li>/n</ul>/n<h2 id=\\"specification\\"><a href=\\"openapi/index.html#specification\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Specification</span></a>Specification</h2>/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\">Open API</summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs text\\">{/n \\"openapi\\": \\"3.0.1\\",/n \\"info\\": {/n \\"title\\": \\"OpenAPI definition\\",/n \\"version\\": \\"v0\\"/n },/n \\"servers\\": [/n {/n \\"url\\": \\"http://localhost:8080\\",/n \\"description\\": \\"Generated server url\\"/n }/n ],/n \\"paths\\": {/n \\"/test\\": {/n \\"get\\": {/n \\"tags\\": [/n \\"test-controller\\"/n ],/n \\"summary\\": \\"Simple get operation. тест новой верстки 3\\",/n \\"description\\": \\"Defines a simple get operation with no inputs and a complex\\",/n \\"operationId\\": \\"getWithPayloadResponse\\",/n \\"responses\\": {/n \\"200\\": {/n \\"description\\": \\"200!!!!\\",/n \\"content\\": {/n \\"application/json\\": {/n \\"schema\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"A\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n }/n }/n }/n },/n \\"/hidden-test\\": {/n \\"get\\": {/n \\"tags\\": [/n \\"test-controller\\"/n ],/n \\"summary\\": \\"Test x-hidden attribute\\",/n \\"description\\": \\"Test various x-hidden scenarios\\",/n \\"operationId\\": \\"getHiddenTest\\",/n \\"responses\\": {/n \\"200\\": {/n \\"description\\": \\"Response with hidden fields\\",/n \\"content\\": {/n \\"application/json\\": {/n \\"schema\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"Response object with various hidden field scenarios\\",/n \\"properties\\": {/n \\"visibleField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be visible\\"/n },/n \\"directlyHiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden (direct x-hidden)\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"This entire object should be hidden\\",/n \\"x-hidden\\": true,/n \\"properties\\": {/n \\"secret\\": {/n \\"type\\": \\"string\\"/n }/n }/n },/n \\"nestedObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"Object with hidden properties\\",/n \\"properties\\": {/n \\"visibleNested\\": {/n \\"type\\": \\"string\\"/n },/n \\"hiddenNested\\": {/n \\"type\\": \\"string\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenInNested\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n }/n }/n },/n \\"arrayWithHiddenItems\\": {/n \\"type\\": \\"array\\",/n \\"description\\": \\"Array with hidden item schema\\",/n \\"items\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n }/n },/n \\"mixedVisibility\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"field1\\": {/n \\"type\\": \\"string\\"/n },/n \\"field2\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"field3\\": {/n \\"type\\": \\"string\\"/n },/n \\"field4\\": {/n \\"type\\": \\"string\\",/n \\"x-hidden\\": true/n },/n \\"field5\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n }/n }/n }/n }/n }/n }/n },/n \\"components\\": {/n \\"schemas\\": {/n \\"RecurceTop\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"A\\": {/n \\"type\\": \\"string\\"/n }/n }/n },/n \\"RecurceMiddle\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"B\\": {/n \\"type\\": \\"array\\",/n \\"items\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"A\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n },/n \\"HiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"HiddenObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"This entire object should be hidden\\",/n \\"x-hidden\\": true,/n \\"properties\\": {/n \\"secret\\": {/n \\"type\\": \\"string\\"/n }/n }/n },/n \\"HiddenTestResponse\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"Response object with various hidden field scenarios\\",/n \\"properties\\": {/n \\"visibleField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be visible\\"/n },/n \\"directlyHiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden (direct x-hidden)\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenField\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"This entire object should be hidden\\",/n \\"x-hidden\\": true,/n \\"properties\\": {/n \\"secret\\": {/n \\"type\\": \\"string\\"/n }/n }/n },/n \\"nestedObject\\": {/n \\"type\\": \\"object\\",/n \\"description\\": \\"Object with hidden properties\\",/n \\"properties\\": {/n \\"visibleNested\\": {/n \\"type\\": \\"string\\"/n },/n \\"hiddenNested\\": {/n \\"type\\": \\"string\\",/n \\"x-hidden\\": true/n },/n \\"refToHiddenInNested\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n }/n }/n },/n \\"arrayWithHiddenItems\\": {/n \\"type\\": \\"array\\",/n \\"description\\": \\"Array with hidden item schema\\",/n \\"items\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n }/n },/n \\"mixedVisibility\\": {/n \\"type\\": \\"object\\",/n \\"properties\\": {/n \\"field1\\": {/n \\"type\\": \\"string\\"/n },/n \\"field2\\": {/n \\"type\\": \\"string\\",/n \\"description\\": \\"This field should be hidden\\",/n \\"x-hidden\\": true/n },/n \\"field3\\": {/n \\"type\\": \\"string\\"/n },/n \\"field4\\": {/n \\"type\\": \\"string\\",/n \\"x-hidden\\": true/n },/n \\"field5\\": {/n \\"type\\": \\"string\\"/n }/n }/n }/n }/n }/n }/n }/n}/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"25\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-25\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-25\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-25.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details>","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":[],"script":[],"vcsPath":"openapi/index.md"},"headings":[{"title":"Sections","href":"openapi/index.html#sections","level":2},{"title":"Specification","href":"openapi/index.html#specification","level":2}],"title":""},"router":{"pathname":"openapi/index","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1906
|
+
</script>
|
|
1907
|
+
<script type="application/javascript">
|
|
1908
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1909
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1910
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1911
|
+
})(data.innerText));
|
|
1912
|
+
window.STATIC_CONTENT = false;
|
|
1913
|
+
</script>
|
|
1914
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1915
|
+
</body>
|
|
1916
|
+
</html>"
|
|
1917
|
+
`;
|
|
1918
|
+
|
|
1919
|
+
exports[`Regression > internal 51`] = `"{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost:8080","description":"Generated server url"}],"paths":{"/test":{"get":{"tags":["test-controller"],"summary":"Simple get operation. тест новой верстки 3","description":"Defines a simple get operation with no inputs and a complex","operationId":"getWithPayloadResponse","responses":{"200":{"description":"200!!!!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurceTop"}}}}}}},"/hidden-test":{"get":{"tags":["test-controller"],"summary":"Test x-hidden attribute","description":"Test various x-hidden scenarios","operationId":"getHiddenTest","responses":{"200":{"description":"Response with hidden fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HiddenTestResponse"}}}}}}}},"components":{"schemas":{"RecurceTop":{"type":"object","properties":{"A":{"type":"string"}}},"HiddenTestResponse":{"type":"object","description":"Response object with various hidden field scenarios","properties":{"visibleField":{"type":"string","description":"This field should be visible"},"refToHiddenField":{"$ref":"#/components/schemas/HiddenField"},"refToHiddenObject":{"$ref":"#/components/schemas/HiddenObject"},"nestedObject":{"type":"object","description":"Object with hidden properties","properties":{"visibleNested":{"type":"string"},"refToHiddenInNested":{"$ref":"#/components/schemas/HiddenField"}}},"arrayWithHiddenItems":{"type":"array","description":"Array with hidden item schema","items":{"$ref":"#/components/schemas/HiddenField"}},"mixedVisibility":{"type":"object","properties":{"field1":{"type":"string"},"field2":{"$ref":"#/components/schemas/HiddenField"},"field3":{"type":"string"},"field5":{"type":"string"}}}}}}}}"`;
|
|
1920
|
+
|
|
1921
|
+
exports[`Regression > internal 52`] = `
|
|
1922
|
+
"<!DOCTYPE html>
|
|
1923
|
+
<html lang="ru" dir="ltr">
|
|
1924
|
+
<head>
|
|
1925
|
+
<meta charset="utf-8">
|
|
1926
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1927
|
+
<base href="../../" />
|
|
1928
|
+
<title></title>
|
|
1929
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1930
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1931
|
+
</head>
|
|
1932
|
+
<body class="g-root g-root_theme_light">
|
|
1933
|
+
<div id="root"></div>
|
|
1934
|
+
<script type="application/json" id="diplodoc-state">
|
|
1935
|
+
{"data":{"leading":false,"html":"<div class=\\"openapi\\">/n<h1>Test x-hidden attribute</h1>/n/n<p>Test various x-hidden scenarios</p>/n<h2 id=\\"request\\"><a href=\\"openapi/test-controller/getHiddenTest.html#request\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Request</span></a>Request</h2>/n<div class=\\"openapi__requests\\">/n<div class=\\"openapi__request__wrapper\\" style=\\"--method:var(--dc-openapi-methods-get);margin-bottom:12px\\">/n<div class=\\"openapi__request\\">/n<p class=\\"openapi__method\\">GET</p>/n/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs text\\">http://localhost:8080/hidden-test/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"17\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-17\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-17\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-17.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div>/n<p>Generated server url</p>/n</div>/n</div>/n<h2 id=\\"responses\\"><a href=\\"openapi/test-controller/getHiddenTest.html#responses\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Responses</span></a>Responses</h2>/n<div class=\\"openapi__response__code__200\\">/n<h2 id=\\"200-ok\\"><a href=\\"openapi/test-controller/getHiddenTest.html#200-ok\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">200 OK</span></a>200 OK</h2>/n<p>Response with hidden fields</p>/n<div class=\\"openapi-entity\\">/n<h3 id=\\"body\\"><a href=\\"openapi/test-controller/getHiddenTest.html#body\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Body</span></a>Body</h3>/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\">application/json</summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs json\\"><span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"visibleField\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"nestedObject\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"visibleNested\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span>/n <span class=\\"hljs-punctuation\\">}</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"arrayWithHiddenItems\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-punctuation\\">[</span>/n <span class=\\"hljs-string\\">\\"example\\"</span>/n <span class=\\"hljs-punctuation\\">]</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"mixedVisibility\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"field1\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"field3\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"field5\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span>/n <span class=\\"hljs-punctuation\\">}</span>/n<span class=\\"hljs-punctuation\\">}</span>/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"43\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-43\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-43\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-43.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details><table class=\\"json-schema-properties\\">/n<tbody>/n<tr>/n<td>/n<p><strong>Name</strong></p>/n</td>/n<td>/n<p><strong>Description</strong></p>/n</td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">arrayWithHiddenItems</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: <a href=\\"openapi/test-controller/getHiddenTest.html#entity-HiddenField\\">HiddenField</a>[]</p>/n<p>Array with hidden item schema</p>/n<details class=\\"yfm-cut json-schema-example\\"><summary class=\\"yfm-cut-title\\"><strong>Example</strong></summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs json\\"><span class=\\"hljs-punctuation\\">[</span>/n <span class=\\"hljs-string\\">\\"example\\"</span>/n<span class=\\"hljs-punctuation\\">]</span>/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"78\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-78\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-78\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-78.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details></td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">mixedVisibility</em></p>/n</td>/n<td class=\\"table-cell\\">/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\"><strong>Type</strong>: object</summary><div class=\\"yfm-cut-content\\"><table class=\\"json-schema-properties\\">/n<tbody>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">field1</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-1\\">example</code></p>/n</td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">field3</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-2\\">example</code></p>/n</td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">field5</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-3\\">example</code></p>/n</td>/n</tr>/n</tbody>/n</table>/n</div></details><details class=\\"yfm-cut json-schema-example\\"><summary class=\\"yfm-cut-title\\"><strong>Example</strong></summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs json\\"><span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"field1\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"field3\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span><span class=\\"hljs-punctuation\\">,</span>/n <span class=\\"hljs-attr\\">\\"field5\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span>/n<span class=\\"hljs-punctuation\\">}</span>/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"151\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-151\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-151\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-151.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details></td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">nestedObject</em></p>/n</td>/n<td class=\\"table-cell\\">/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\"><strong>Type</strong>: object</summary><div class=\\"yfm-cut-content\\"><table class=\\"json-schema-properties\\">/n<tbody>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">visibleNested</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-4\\">example</code></p>/n</td>/n</tr>/n</tbody>/n</table>/n</div></details><p>Object with hidden properties</p>/n<details class=\\"yfm-cut json-schema-example\\"><summary class=\\"yfm-cut-title\\"><strong>Example</strong></summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs json\\"><span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"visibleNested\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span>/n<span class=\\"hljs-punctuation\\">}</span>/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"197\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-197\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-197\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-197.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details></td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">visibleField</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p>This field should be visible</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-5\\">example</code></p>/n</td>/n</tr>/n</tbody>/n</table>/n</div>/n</div>/n</div>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":[],"script":[],"vcsPath":"openapi/test-controller/getHiddenTest.md"},"headings":[{"title":"Request","href":"openapi/test-controller/getHiddenTest.html#request","level":2},{"title":"Responses","href":"openapi/test-controller/getHiddenTest.html#responses","level":2},{"title":"200 OK","href":"openapi/test-controller/getHiddenTest.html#200-ok","level":2,"items":[{"title":"Body","href":"openapi/test-controller/getHiddenTest.html#body","level":3}]}],"title":""},"router":{"pathname":"openapi/test-controller/getHiddenTest","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1936
|
+
</script>
|
|
1937
|
+
<script type="application/javascript">
|
|
1938
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1939
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1940
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1941
|
+
})(data.innerText));
|
|
1942
|
+
window.STATIC_CONTENT = false;
|
|
1943
|
+
</script>
|
|
1944
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1945
|
+
</body>
|
|
1946
|
+
</html>"
|
|
1947
|
+
`;
|
|
1948
|
+
|
|
1949
|
+
exports[`Regression > internal 53`] = `
|
|
1950
|
+
"<!DOCTYPE html>
|
|
1951
|
+
<html lang="ru" dir="ltr">
|
|
1952
|
+
<head>
|
|
1953
|
+
<meta charset="utf-8">
|
|
1954
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1955
|
+
<base href="../../" />
|
|
1956
|
+
<title></title>
|
|
1957
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1958
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1959
|
+
</head>
|
|
1960
|
+
<body class="g-root g-root_theme_light">
|
|
1961
|
+
<div id="root"></div>
|
|
1962
|
+
<script type="application/json" id="diplodoc-state">
|
|
1963
|
+
{"data":{"leading":false,"html":"<div class=\\"openapi\\">/n<h1>Simple get operation. тест новой верстки 3</h1>/n/n<p>Defines a simple get operation with no inputs and a complex</p>/n<h2 id=\\"request\\"><a href=\\"openapi/test-controller/getWithPayloadResponse.html#request\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Request</span></a>Request</h2>/n<div class=\\"openapi__requests\\">/n<div class=\\"openapi__request__wrapper\\" style=\\"--method:var(--dc-openapi-methods-get);margin-bottom:12px\\">/n<div class=\\"openapi__request\\">/n<p class=\\"openapi__method\\">GET</p>/n/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs text\\">http://localhost:8080/test/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"17\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-17\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-17\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-17.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div>/n<p>Generated server url</p>/n</div>/n</div>/n<h2 id=\\"responses\\"><a href=\\"openapi/test-controller/getWithPayloadResponse.html#responses\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Responses</span></a>Responses</h2>/n<div class=\\"openapi__response__code__200\\">/n<h2 id=\\"200-ok\\"><a href=\\"openapi/test-controller/getWithPayloadResponse.html#200-ok\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">200 OK</span></a>200 OK</h2>/n<p>200!!!!</p>/n<div class=\\"openapi-entity\\">/n<h3 id=\\"body\\"><a href=\\"openapi/test-controller/getWithPayloadResponse.html#body\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Body</span></a>Body</h3>/n<details class=\\"yfm-cut\\"><summary class=\\"yfm-cut-title\\">application/json</summary><div class=\\"yfm-cut-content\\">/n <div class=\\"yfm-code-floating-container\\">/n <pre><code class=\\"hljs json\\"><span class=\\"hljs-punctuation\\">{</span>/n <span class=\\"hljs-attr\\">\\"A\\"</span><span class=\\"hljs-punctuation\\">:</span> <span class=\\"hljs-string\\">\\"example\\"</span>/n<span class=\\"hljs-punctuation\\">}</span>/n</code></pre>/n/n <div class=\\"yfm-code-floating\\">/n /n <button role=\\"button\\" class=\\"yfm-code-button yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-code-icon yfm-clipboard-icon\\" data-animation=\\"43\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-43\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-43\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-43.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n </div>/n</div></details><table class=\\"json-schema-properties\\">/n<tbody>/n<tr>/n<td>/n<p><strong>Name</strong></p>/n</td>/n<td>/n<p><strong>Description</strong></p>/n</td>/n</tr>/n<tr>/n<td class=\\"table-cell\\">/n<p><em class=\\"json-schema-reset json-schema-property\\">A</em></p>/n</td>/n<td class=\\"table-cell\\">/n<p><strong>Type</strong>: string</p>/n<p><em class=\\"json-schema-reset json-schema-example\\">Example:</em> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id=\\"inline-code-id-1\\">example</code></p>/n</td>/n</tr>/n</tbody>/n</table>/n</div>/n</div>/n</div>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":[],"script":[],"vcsPath":"openapi/test-controller/getWithPayloadResponse.md"},"headings":[{"title":"Request","href":"openapi/test-controller/getWithPayloadResponse.html#request","level":2},{"title":"Responses","href":"openapi/test-controller/getWithPayloadResponse.html#responses","level":2},{"title":"200 OK","href":"openapi/test-controller/getWithPayloadResponse.html#200-ok","level":2,"items":[{"title":"Body","href":"openapi/test-controller/getWithPayloadResponse.html#body","level":3}]}],"title":""},"router":{"pathname":"openapi/test-controller/getWithPayloadResponse","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1964
|
+
</script>
|
|
1965
|
+
<script type="application/javascript">
|
|
1966
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1967
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1968
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1969
|
+
})(data.innerText));
|
|
1970
|
+
window.STATIC_CONTENT = false;
|
|
1971
|
+
</script>
|
|
1972
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
1973
|
+
</body>
|
|
1974
|
+
</html>"
|
|
1975
|
+
`;
|
|
1976
|
+
|
|
1977
|
+
exports[`Regression > internal 54`] = `
|
|
1978
|
+
"<!DOCTYPE html>
|
|
1979
|
+
<html lang="ru" dir="ltr">
|
|
1980
|
+
<head>
|
|
1981
|
+
<meta charset="utf-8">
|
|
1982
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
1983
|
+
<base href="../../" />
|
|
1984
|
+
<title>test-controller</title>
|
|
1985
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
1986
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
1987
|
+
</head>
|
|
1988
|
+
<body class="g-root g-root_theme_light">
|
|
1989
|
+
<div id="root"></div>
|
|
1990
|
+
<script type="application/json" id="diplodoc-state">
|
|
1991
|
+
{"data":{"leading":false,"html":"<h2 id=\\"endpoints\\"><a href=\\"openapi/test-controller/index.html#endpoints\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Endpoints</span></a>Endpoints</h2>/n<ul>/n<li><a href=\\"openapi/test-controller/getWithPayloadResponse.html\\">Simple get operation. тест новой верстки 3</a></li>/n<li><a href=\\"openapi/test-controller/getHiddenTest.html\\">Test x-hidden attribute</a></li>/n</ul>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"openapi/test-controller/index.md"},"headings":[{"title":"Endpoints","href":"openapi/test-controller/index.html#endpoints","level":2}],"title":"test-controller"},"router":{"pathname":"openapi/test-controller/index","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1992
|
+
</script>
|
|
1993
|
+
<script type="application/javascript">
|
|
1994
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
1995
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
1996
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
1997
|
+
})(data.innerText));
|
|
1998
|
+
window.STATIC_CONTENT = false;
|
|
1999
|
+
</script>
|
|
2000
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
2001
|
+
</body>
|
|
2002
|
+
</html>"
|
|
2003
|
+
`;
|
|
2004
|
+
|
|
2005
|
+
exports[`Regression > internal 55`] = `
|
|
2006
|
+
"<!DOCTYPE html>
|
|
2007
|
+
<html lang="ru" dir="ltr">
|
|
2008
|
+
<head>
|
|
2009
|
+
<meta charset="utf-8">
|
|
2010
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
2011
|
+
<base href="../../" />
|
|
2012
|
+
<title>Item 1</title>
|
|
2013
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
2014
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
2015
|
+
</head>
|
|
2016
|
+
<body class="g-root g-root_theme_light">
|
|
2017
|
+
<div id="root"></div>
|
|
2018
|
+
<script type="application/json" id="diplodoc-state">
|
|
2019
|
+
{"data":{"leading":false,"html":"<p>Item 1 text</p>/n<p><a href=\\"images.html\\">Images</a></p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"sub/folder/item-1.md"},"headings":[],"title":"Item 1"},"router":{"pathname":"sub/folder/item-1","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
2020
|
+
</script>
|
|
2021
|
+
<script type="application/javascript">
|
|
2022
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
2023
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
2024
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
2025
|
+
})(data.innerText));
|
|
2026
|
+
window.STATIC_CONTENT = false;
|
|
2027
|
+
</script>
|
|
2028
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
2029
|
+
</body>
|
|
2030
|
+
</html>"
|
|
2031
|
+
`;
|
|
2032
|
+
|
|
2033
|
+
exports[`Regression > internal 56`] = `"window.__DATA__.data.toc = {"items":[{"name":"Verbose root (index.yaml) will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Root will be transformed to index.html","href":"index.html","id":"UUID"},{"name":"Md item with not_var syntax","href":"1.html","id":"UUID"},{"name":"Md item named without extension","href":"1.html","id":"UUID"},{"name":"Item with empty href","id":"UUID"},{"name":"Multitoc item","href":"merge/merged.html","id":"UUID"},{"name":"Fragments","href":"includes/fragments.html","id":"UUID"},{"name":"Included Item","href":"included-item.html","id":"UUID"},{"name":"Named include (items is Object here - this is not an error)","items":[{"name":"Item 1","href":"sub/folder/item-1.html","id":"UUID"}],"id":"UUID"},{"href":"mermaid.html","name":"Mermaid usage","id":"UUID"},{"name":"Latex usage","href":"latex.html","id":"UUID"},{"name":"Images","href":"images.html","id":"UUID"},{"name":"Autotitle","href":"autotitle.html","id":"UUID"},{"name":"includes","href":"includes.html","id":"UUID"},{"name":"Entry as include","href":"entry-as-include.html","id":"UUID"},{"name":"Includer of entry","href":"includer-of-entry.html","id":"UUID"},{"name":"generic","items":[{"name":"Note 1","href":"generic/1.html","id":"UUID"},{"name":"Note 1","href":"generic/2.html","id":"UUID"},{"name":"3","href":"generic/3.html","id":"UUID"},{"name":"Sub notes","items":[{"name":"Sub note 1","href":"generic/Sub notes/1.html","id":"UUID"},{"name":"Sub note 2","href":"generic/Sub notes/2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"},{"name":"openapi","items":[{"name":"Overview","href":"openapi/index.html","id":"UUID"},{"name":"test-controller","items":[{"name":"Overview","href":"openapi/test-controller/index.html","id":"UUID"},{"href":"openapi/test-controller/getWithPayloadResponse.html","name":"Simple get operation. тест новой верстки 3","id":"UUID"},{"href":"openapi/test-controller/getHiddenTest.html","name":"Test x-hidden attribute","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|