@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,780 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Includes > Various include scenarios > filelist 1`] = `
|
|
4
|
+
"[
|
|
5
|
+
".yfm",
|
|
6
|
+
"_assets/4.png",
|
|
7
|
+
"index.md",
|
|
8
|
+
"level1/level2/page2.md",
|
|
9
|
+
"level1/page1.md",
|
|
10
|
+
"toc-include.md",
|
|
11
|
+
"toc.yaml"
|
|
12
|
+
]"
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
exports[`Includes > Various include scenarios > filelist 2`] = `
|
|
16
|
+
"[
|
|
17
|
+
".yfm",
|
|
18
|
+
"_assets/4.png",
|
|
19
|
+
"index.html",
|
|
20
|
+
"level1/level2/page2.html",
|
|
21
|
+
"level1/page1.html",
|
|
22
|
+
"toc-include.html",
|
|
23
|
+
"toc.js"
|
|
24
|
+
]"
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
exports[`Includes > Various include scenarios 1`] = `"projectTitle: Test Includes"`;
|
|
28
|
+
|
|
29
|
+
exports[`Includes > Various include scenarios 2`] = `
|
|
30
|
+
"---
|
|
31
|
+
metadata:
|
|
32
|
+
- name: generator
|
|
33
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
34
|
+
vcsPath: index.md
|
|
35
|
+
---
|
|
36
|
+
# Test Includes
|
|
37
|
+
|
|
38
|
+
This is a test page for various include scenarios.
|
|
39
|
+
|
|
40
|
+
## Include from root level
|
|
41
|
+
|
|
42
|
+
<!-- source: includes/root-include.md -->
|
|
43
|
+
This is an include from the root level.
|
|
44
|
+
|
|
45
|
+
[Link to level1](level1/page1.md)
|
|
46
|
+
|
|
47
|
+
[Link to level2](level1/level2/page2.md)
|
|
48
|
+
|
|
49
|
+
[Link to index](index.md)
|
|
50
|
+
|
|
51
|
+
## Include with anchor [→ level1](level1/page1.md) {#include-with-anchor}
|
|
52
|
+
|
|
53
|
+
<!-- source: includes/fragments.md -->
|
|
54
|
+
## Section 2 {#section2}
|
|
55
|
+
|
|
56
|
+
This is content of section 2.
|
|
57
|
+
|
|
58
|
+
### Subsection 2.1 {#subsection21}
|
|
59
|
+
|
|
60
|
+
This is content of subsection 2.1.
|
|
61
|
+
<!-- endsource: includes/fragments.md -->
|
|
62
|
+
<!-- endsource: includes/root-include.md -->
|
|
63
|
+
|
|
64
|
+
## Include from level1
|
|
65
|
+
|
|
66
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
67
|
+
This is an include from level 1.
|
|
68
|
+
|
|
69
|
+
[Link to page1](level1/page1.md)
|
|
70
|
+
|
|
71
|
+
[Link to index](index.md)
|
|
72
|
+
|
|
73
|
+
[Link to level2](level1/level2/page2.md)
|
|
74
|
+
|
|
75
|
+
## Include with anchor [→ root](index.md) {#include-with-anchor}
|
|
76
|
+
|
|
77
|
+
<!-- source: includes/fragments.md -->
|
|
78
|
+
### Subsection 2.1 {#subsection21}
|
|
79
|
+
|
|
80
|
+
This is content of subsection 2.1.
|
|
81
|
+
|
|
82
|
+
## Section 3 {#section3}
|
|
83
|
+
|
|
84
|
+
This is content of section 3.
|
|
85
|
+
|
|
86
|
+
Some paragraph with anchor {#p1}
|
|
87
|
+
|
|
88
|
+
Some paragraph without anchor
|
|
89
|
+
|
|
90
|
+
Some paragraph with anchor {#p2}
|
|
91
|
+
<!-- endsource: includes/fragments.md -->
|
|
92
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
93
|
+
|
|
94
|
+
## Include from level2
|
|
95
|
+
|
|
96
|
+
<!-- source: level1/level2/includes/level2-include.md -->
|
|
97
|
+
This is an include from level 2.
|
|
98
|
+
|
|
99
|
+
[Link to page2](level1/level2/page2.md)
|
|
100
|
+
|
|
101
|
+
[Link to page1](level1/page1.md)
|
|
102
|
+
|
|
103
|
+
[Link to index](index.md)
|
|
104
|
+
|
|
105
|
+
## Include with anchor [→ level1](level1/page1.md) {#include-with-anchor}
|
|
106
|
+
|
|
107
|
+
<!-- source: includes/fragments.md -->
|
|
108
|
+
## Section 3 {#section3}
|
|
109
|
+
|
|
110
|
+
This is content of section 3.
|
|
111
|
+
|
|
112
|
+
Some paragraph with anchor {#p1}
|
|
113
|
+
|
|
114
|
+
Some paragraph without anchor
|
|
115
|
+
|
|
116
|
+
Some paragraph with anchor {#p2}
|
|
117
|
+
<!-- endsource: includes/fragments.md -->
|
|
118
|
+
<!-- endsource: level1/level2/includes/level2-include.md -->
|
|
119
|
+
|
|
120
|
+
## Include with missing file
|
|
121
|
+
|
|
122
|
+
<!-- {% include [missing](includes/missing.md) %} -->
|
|
123
|
+
|
|
124
|
+
## Include file that is in toc
|
|
125
|
+
|
|
126
|
+
[Link to toc-include](toc-include.md)
|
|
127
|
+
|
|
128
|
+
<!-- source: toc-include.md -->
|
|
129
|
+
# Toc Include
|
|
130
|
+
|
|
131
|
+
This file is included in the toc.
|
|
132
|
+
|
|
133
|
+
[Link to index](index.md)
|
|
134
|
+
|
|
135
|
+
[Link to page1](level1/page1.md)
|
|
136
|
+
|
|
137
|
+
[Link to page2](level1/level2/page2.md)
|
|
138
|
+
|
|
139
|
+
## Include with anchor
|
|
140
|
+
|
|
141
|
+
<!-- source: includes/fragments.md -->
|
|
142
|
+
## Section 1 {#section1}
|
|
143
|
+
|
|
144
|
+
This is content of section 1.
|
|
145
|
+
<!-- endsource: includes/fragments.md -->
|
|
146
|
+
<!-- endsource: toc-include.md -->
|
|
147
|
+
|
|
148
|
+
## Links to different levels
|
|
149
|
+
|
|
150
|
+
[Link to level1](level1/page1.md)
|
|
151
|
+
|
|
152
|
+
[Link to level2](level1/level2/page2.md)
|
|
153
|
+
|
|
154
|
+
## Include with anchor
|
|
155
|
+
|
|
156
|
+
<!-- source: includes/fragments.md -->
|
|
157
|
+
## Section 1 {#section1}
|
|
158
|
+
|
|
159
|
+
This is content of section 1.
|
|
160
|
+
<!-- endsource: includes/fragments.md -->
|
|
161
|
+
|
|
162
|
+
## Include with multiple anchors
|
|
163
|
+
|
|
164
|
+
<!-- source: includes/fragments.md -->
|
|
165
|
+
## Section 2 {#section2}
|
|
166
|
+
|
|
167
|
+
This is content of section 2.
|
|
168
|
+
|
|
169
|
+
### Subsection 2.1 {#subsection21}
|
|
170
|
+
|
|
171
|
+
This is content of subsection 2.1.
|
|
172
|
+
<!-- endsource: includes/fragments.md -->
|
|
173
|
+
|
|
174
|
+
## Include with paragraph anchor
|
|
175
|
+
|
|
176
|
+
<!-- source: includes/fragments.md -->
|
|
177
|
+
Some paragraph with anchor {#p1}
|
|
178
|
+
<!-- endsource: includes/fragments.md -->
|
|
179
|
+
|
|
180
|
+
## Nested includes
|
|
181
|
+
|
|
182
|
+
<!-- source: includes/nested-include.md -->
|
|
183
|
+
# Nested include [→ index](index.md) {#nested-include}
|
|
184
|
+
|
|
185
|
+
This is a nested include.
|
|
186
|
+
|
|
187
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
188
|
+
This is an include from level 1.
|
|
189
|
+
|
|
190
|
+
[Link to page1](level1/page1.md)
|
|
191
|
+
|
|
192
|
+
[Link to index](index.md)
|
|
193
|
+
|
|
194
|
+
[Link to level2](level1/level2/page2.md)
|
|
195
|
+
|
|
196
|
+
## Include with anchor [→ root](index.md) {#include-with-anchor}
|
|
197
|
+
|
|
198
|
+
<!-- source: includes/fragments.md -->
|
|
199
|
+
### Subsection 2.1 {#subsection21}
|
|
200
|
+
|
|
201
|
+
This is content of subsection 2.1.
|
|
202
|
+
|
|
203
|
+
## Section 3 {#section3}
|
|
204
|
+
|
|
205
|
+
This is content of section 3.
|
|
206
|
+
|
|
207
|
+
Some paragraph with anchor {#p1}
|
|
208
|
+
|
|
209
|
+
Some paragraph without anchor
|
|
210
|
+
|
|
211
|
+
Some paragraph with anchor {#p2}
|
|
212
|
+
<!-- endsource: includes/fragments.md -->
|
|
213
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
214
|
+
<!-- endsource: includes/nested-include.md -->
|
|
215
|
+
|
|
216
|
+
## Deep nested includes
|
|
217
|
+
|
|
218
|
+
<!-- source: includes/deep-include.md -->
|
|
219
|
+
# Deep nested include [→ index](index.md) {#deep-nested-include}
|
|
220
|
+
|
|
221
|
+
[Link to index](index.md)
|
|
222
|
+
|
|
223
|
+
[Link to level1 page1](level1/page1.md)
|
|
224
|
+
|
|
225
|
+
[Link to level2 page2](level1/level2/page2.md)
|
|
226
|
+
|
|
227
|
+
This is a deep nested include.
|
|
228
|
+
|
|
229
|
+
<!-- source: includes/user.md -->
|
|
230
|
+
# User include [→ index](index.md) {#user-include}
|
|
231
|
+
|
|
232
|
+
[Link to index](index.md)
|
|
233
|
+
|
|
234
|
+
This is a user include with variable substitution: Alice
|
|
235
|
+
<!-- endsource: includes/user.md -->
|
|
236
|
+
|
|
237
|
+

|
|
238
|
+
<!-- endsource: includes/deep-include.md -->
|
|
239
|
+
|
|
240
|
+
## Commented includes
|
|
241
|
+
|
|
242
|
+
<!-- {% include [commented](includes/commented-include.md) %} -->
|
|
243
|
+
|
|
244
|
+
## Include with variable substitution
|
|
245
|
+
|
|
246
|
+
<!-- source: includes/user.md -->
|
|
247
|
+
# User include [→ index](index.md) {#user-include}
|
|
248
|
+
|
|
249
|
+
[Link to index](index.md)
|
|
250
|
+
|
|
251
|
+
This is a user include with variable substitution: Alice
|
|
252
|
+
<!-- endsource: includes/user.md -->
|
|
253
|
+
## Include without title
|
|
254
|
+
|
|
255
|
+
<!-- source: includes/no-title-include.md -->
|
|
256
|
+
# Include without title [→ index](index.md) {#include-without-title}
|
|
257
|
+
|
|
258
|
+
[Link to index](index.md)
|
|
259
|
+
|
|
260
|
+
This is a test for include without title.
|
|
261
|
+
|
|
262
|
+
## Include without title from the same directory
|
|
263
|
+
|
|
264
|
+
<!-- source: includes/user.md -->
|
|
265
|
+
[Link to index](index.md)
|
|
266
|
+
|
|
267
|
+
This is a user include with variable substitution: Alice
|
|
268
|
+
<!-- endsource: includes/user.md -->
|
|
269
|
+
|
|
270
|
+
## Include without title with anchor
|
|
271
|
+
|
|
272
|
+
<!-- source: includes/fragments.md -->
|
|
273
|
+
This is content of section 1.
|
|
274
|
+
<!-- endsource: includes/fragments.md -->
|
|
275
|
+
|
|
276
|
+
## Include without title with paragraph anchor
|
|
277
|
+
|
|
278
|
+
<!-- source: includes/fragments.md -->
|
|
279
|
+
Some paragraph with anchor {#p1}
|
|
280
|
+
<!-- endsource: includes/fragments.md -->
|
|
281
|
+
|
|
282
|
+
[Link to index](index.md)
|
|
283
|
+
<!-- endsource: includes/no-title-include.md -->
|
|
284
|
+
|
|
285
|
+
## Include with anchor {#anchor}
|
|
286
|
+
|
|
287
|
+
{% include notitle [anchor](#anchor) %}
|
|
288
|
+
{% include [anchor](#anchor) %}
|
|
289
|
+
|
|
290
|
+
<!-- source: includes/no-title-include.md -->
|
|
291
|
+
# Include without title [→ index](index.md) {#include-without-title}
|
|
292
|
+
|
|
293
|
+
[Link to index](index.md)
|
|
294
|
+
|
|
295
|
+
This is a test for include without title.
|
|
296
|
+
|
|
297
|
+
## Include without title from the same directory
|
|
298
|
+
|
|
299
|
+
<!-- source: includes/user.md -->
|
|
300
|
+
[Link to index](index.md)
|
|
301
|
+
|
|
302
|
+
This is a user include with variable substitution: Alice
|
|
303
|
+
<!-- endsource: includes/user.md -->
|
|
304
|
+
|
|
305
|
+
## Include without title with anchor
|
|
306
|
+
|
|
307
|
+
<!-- source: includes/fragments.md -->
|
|
308
|
+
This is content of section 1.
|
|
309
|
+
<!-- endsource: includes/fragments.md -->
|
|
310
|
+
|
|
311
|
+
## Include without title with paragraph anchor
|
|
312
|
+
|
|
313
|
+
<!-- source: includes/fragments.md -->
|
|
314
|
+
Some paragraph with anchor {#p1}
|
|
315
|
+
<!-- endsource: includes/fragments.md -->
|
|
316
|
+
|
|
317
|
+
[Link to index](index.md)
|
|
318
|
+
<!-- endsource: includes/no-title-include.md -->
|
|
319
|
+
"
|
|
320
|
+
`;
|
|
321
|
+
|
|
322
|
+
exports[`Includes > Various include scenarios 3`] = `
|
|
323
|
+
"---
|
|
324
|
+
metadata:
|
|
325
|
+
- name: generator
|
|
326
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
327
|
+
vcsPath: level1/level2/page2.md
|
|
328
|
+
---
|
|
329
|
+
# Page 2
|
|
330
|
+
|
|
331
|
+
This is page 2 at level 2.
|
|
332
|
+
|
|
333
|
+
## Include from level2
|
|
334
|
+
|
|
335
|
+
<!-- source: level1/level2/includes/level2-include.md -->
|
|
336
|
+
This is an include from level 2.
|
|
337
|
+
|
|
338
|
+
[Link to page2](page2.md)
|
|
339
|
+
|
|
340
|
+
[Link to page1](../page1.md)
|
|
341
|
+
|
|
342
|
+
[Link to index](../../index.md)
|
|
343
|
+
|
|
344
|
+
## Include with anchor [→ level1](../page1.md) {#include-with-anchor}
|
|
345
|
+
|
|
346
|
+
<!-- source: includes/fragments.md -->
|
|
347
|
+
## Section 3 {#section3}
|
|
348
|
+
|
|
349
|
+
This is content of section 3.
|
|
350
|
+
|
|
351
|
+
Some paragraph with anchor {#p1}
|
|
352
|
+
|
|
353
|
+
Some paragraph without anchor
|
|
354
|
+
|
|
355
|
+
Some paragraph with anchor {#p2}
|
|
356
|
+
<!-- endsource: includes/fragments.md -->
|
|
357
|
+
<!-- endsource: level1/level2/includes/level2-include.md -->
|
|
358
|
+
|
|
359
|
+
## Include from level1
|
|
360
|
+
|
|
361
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
362
|
+
This is an include from level 1.
|
|
363
|
+
|
|
364
|
+
[Link to page1](../page1.md)
|
|
365
|
+
|
|
366
|
+
[Link to index](../../index.md)
|
|
367
|
+
|
|
368
|
+
[Link to level2](page2.md)
|
|
369
|
+
|
|
370
|
+
## Include with anchor [→ root](../../index.md) {#include-with-anchor}
|
|
371
|
+
|
|
372
|
+
<!-- source: includes/fragments.md -->
|
|
373
|
+
### Subsection 2.1 {#subsection21}
|
|
374
|
+
|
|
375
|
+
This is content of subsection 2.1.
|
|
376
|
+
|
|
377
|
+
## Section 3 {#section3}
|
|
378
|
+
|
|
379
|
+
This is content of section 3.
|
|
380
|
+
|
|
381
|
+
Some paragraph with anchor {#p1}
|
|
382
|
+
|
|
383
|
+
Some paragraph without anchor
|
|
384
|
+
|
|
385
|
+
Some paragraph with anchor {#p2}
|
|
386
|
+
<!-- endsource: includes/fragments.md -->
|
|
387
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
388
|
+
|
|
389
|
+
## Include from root
|
|
390
|
+
|
|
391
|
+
<!-- source: includes/root-include.md -->
|
|
392
|
+
This is an include from the root level.
|
|
393
|
+
|
|
394
|
+
[Link to level1](../page1.md)
|
|
395
|
+
|
|
396
|
+
[Link to level2](page2.md)
|
|
397
|
+
|
|
398
|
+
[Link to index](../../index.md)
|
|
399
|
+
|
|
400
|
+
## Include with anchor [→ level1](../page1.md) {#include-with-anchor}
|
|
401
|
+
|
|
402
|
+
<!-- source: includes/fragments.md -->
|
|
403
|
+
## Section 2 {#section2}
|
|
404
|
+
|
|
405
|
+
This is content of section 2.
|
|
406
|
+
|
|
407
|
+
### Subsection 2.1 {#subsection21}
|
|
408
|
+
|
|
409
|
+
This is content of subsection 2.1.
|
|
410
|
+
<!-- endsource: includes/fragments.md -->
|
|
411
|
+
<!-- endsource: includes/root-include.md -->
|
|
412
|
+
|
|
413
|
+
## Links to different levels
|
|
414
|
+
|
|
415
|
+
[Link to index](../../index.md)
|
|
416
|
+
|
|
417
|
+
[Link to page1](../page1.md)
|
|
418
|
+
|
|
419
|
+
## Nested include
|
|
420
|
+
|
|
421
|
+
<!-- source: includes/nested-include.md -->
|
|
422
|
+
# Nested include [→ index](../../index.md) {#nested-include}
|
|
423
|
+
|
|
424
|
+
This is a nested include.
|
|
425
|
+
|
|
426
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
427
|
+
This is an include from level 1.
|
|
428
|
+
|
|
429
|
+
[Link to page1](../page1.md)
|
|
430
|
+
|
|
431
|
+
[Link to index](../../index.md)
|
|
432
|
+
|
|
433
|
+
[Link to level2](page2.md)
|
|
434
|
+
|
|
435
|
+
## Include with anchor [→ root](../../index.md) {#include-with-anchor}
|
|
436
|
+
|
|
437
|
+
<!-- source: includes/fragments.md -->
|
|
438
|
+
### Subsection 2.1 {#subsection21}
|
|
439
|
+
|
|
440
|
+
This is content of subsection 2.1.
|
|
441
|
+
|
|
442
|
+
## Section 3 {#section3}
|
|
443
|
+
|
|
444
|
+
This is content of section 3.
|
|
445
|
+
|
|
446
|
+
Some paragraph with anchor {#p1}
|
|
447
|
+
|
|
448
|
+
Some paragraph without anchor
|
|
449
|
+
|
|
450
|
+
Some paragraph with anchor {#p2}
|
|
451
|
+
<!-- endsource: includes/fragments.md -->
|
|
452
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
453
|
+
<!-- endsource: includes/nested-include.md -->
|
|
454
|
+
|
|
455
|
+
## Include with anchor
|
|
456
|
+
|
|
457
|
+
<!-- source: includes/fragments.md -->
|
|
458
|
+
## Section 3 {#section3}
|
|
459
|
+
|
|
460
|
+
This is content of section 3.
|
|
461
|
+
|
|
462
|
+
Some paragraph with anchor {#p1}
|
|
463
|
+
|
|
464
|
+
Some paragraph without anchor
|
|
465
|
+
|
|
466
|
+
Some paragraph with anchor {#p2}
|
|
467
|
+
<!-- endsource: includes/fragments.md -->"
|
|
468
|
+
`;
|
|
469
|
+
|
|
470
|
+
exports[`Includes > Various include scenarios 4`] = `
|
|
471
|
+
"---
|
|
472
|
+
metadata:
|
|
473
|
+
- name: generator
|
|
474
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
475
|
+
vcsPath: level1/page1.md
|
|
476
|
+
---
|
|
477
|
+
# Page 1
|
|
478
|
+
|
|
479
|
+
This is page 1 at level 1.
|
|
480
|
+
|
|
481
|
+
## Include from level1
|
|
482
|
+
|
|
483
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
484
|
+
This is an include from level 1.
|
|
485
|
+
|
|
486
|
+
[Link to page1](page1.md)
|
|
487
|
+
|
|
488
|
+
[Link to index](../index.md)
|
|
489
|
+
|
|
490
|
+
[Link to level2](level2/page2.md)
|
|
491
|
+
|
|
492
|
+
## Include with anchor [→ root](../index.md) {#include-with-anchor}
|
|
493
|
+
|
|
494
|
+
<!-- source: includes/fragments.md -->
|
|
495
|
+
### Subsection 2.1 {#subsection21}
|
|
496
|
+
|
|
497
|
+
This is content of subsection 2.1.
|
|
498
|
+
|
|
499
|
+
## Section 3 {#section3}
|
|
500
|
+
|
|
501
|
+
This is content of section 3.
|
|
502
|
+
|
|
503
|
+
Some paragraph with anchor {#p1}
|
|
504
|
+
|
|
505
|
+
Some paragraph without anchor
|
|
506
|
+
|
|
507
|
+
Some paragraph with anchor {#p2}
|
|
508
|
+
<!-- endsource: includes/fragments.md -->
|
|
509
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
510
|
+
|
|
511
|
+
## Include from root
|
|
512
|
+
|
|
513
|
+
<!-- source: includes/root-include.md -->
|
|
514
|
+
This is an include from the root level.
|
|
515
|
+
|
|
516
|
+
[Link to level1](page1.md)
|
|
517
|
+
|
|
518
|
+
[Link to level2](level2/page2.md)
|
|
519
|
+
|
|
520
|
+
[Link to index](../index.md)
|
|
521
|
+
|
|
522
|
+
## Include with anchor [→ level1](page1.md) {#include-with-anchor}
|
|
523
|
+
|
|
524
|
+
<!-- source: includes/fragments.md -->
|
|
525
|
+
## Section 2 {#section2}
|
|
526
|
+
|
|
527
|
+
This is content of section 2.
|
|
528
|
+
|
|
529
|
+
### Subsection 2.1 {#subsection21}
|
|
530
|
+
|
|
531
|
+
This is content of subsection 2.1.
|
|
532
|
+
<!-- endsource: includes/fragments.md -->
|
|
533
|
+
<!-- endsource: includes/root-include.md -->
|
|
534
|
+
|
|
535
|
+
## Include from level2
|
|
536
|
+
|
|
537
|
+
<!-- source: level1/level2/includes/level2-include.md -->
|
|
538
|
+
This is an include from level 2.
|
|
539
|
+
|
|
540
|
+
[Link to page2](level2/page2.md)
|
|
541
|
+
|
|
542
|
+
[Link to page1](page1.md)
|
|
543
|
+
|
|
544
|
+
[Link to index](../index.md)
|
|
545
|
+
|
|
546
|
+
## Include with anchor [→ level1](page1.md) {#include-with-anchor}
|
|
547
|
+
|
|
548
|
+
<!-- source: includes/fragments.md -->
|
|
549
|
+
## Section 3 {#section3}
|
|
550
|
+
|
|
551
|
+
This is content of section 3.
|
|
552
|
+
|
|
553
|
+
Some paragraph with anchor {#p1}
|
|
554
|
+
|
|
555
|
+
Some paragraph without anchor
|
|
556
|
+
|
|
557
|
+
Some paragraph with anchor {#p2}
|
|
558
|
+
<!-- endsource: includes/fragments.md -->
|
|
559
|
+
<!-- endsource: level1/level2/includes/level2-include.md -->
|
|
560
|
+
|
|
561
|
+
## Links to different levels
|
|
562
|
+
|
|
563
|
+
[Link to index](../index.md)
|
|
564
|
+
|
|
565
|
+
[Link to level2](level2/page2.md)
|
|
566
|
+
|
|
567
|
+
## Nested include
|
|
568
|
+
|
|
569
|
+
<!-- source: includes/nested-include.md -->
|
|
570
|
+
# Nested include [→ index](../index.md) {#nested-include}
|
|
571
|
+
|
|
572
|
+
This is a nested include.
|
|
573
|
+
|
|
574
|
+
<!-- source: level1/includes/level1-include.md -->
|
|
575
|
+
This is an include from level 1.
|
|
576
|
+
|
|
577
|
+
[Link to page1](page1.md)
|
|
578
|
+
|
|
579
|
+
[Link to index](../index.md)
|
|
580
|
+
|
|
581
|
+
[Link to level2](level2/page2.md)
|
|
582
|
+
|
|
583
|
+
## Include with anchor [→ root](../index.md) {#include-with-anchor}
|
|
584
|
+
|
|
585
|
+
<!-- source: includes/fragments.md -->
|
|
586
|
+
### Subsection 2.1 {#subsection21}
|
|
587
|
+
|
|
588
|
+
This is content of subsection 2.1.
|
|
589
|
+
|
|
590
|
+
## Section 3 {#section3}
|
|
591
|
+
|
|
592
|
+
This is content of section 3.
|
|
593
|
+
|
|
594
|
+
Some paragraph with anchor {#p1}
|
|
595
|
+
|
|
596
|
+
Some paragraph without anchor
|
|
597
|
+
|
|
598
|
+
Some paragraph with anchor {#p2}
|
|
599
|
+
<!-- endsource: includes/fragments.md -->
|
|
600
|
+
<!-- endsource: level1/includes/level1-include.md -->
|
|
601
|
+
<!-- endsource: includes/nested-include.md -->
|
|
602
|
+
|
|
603
|
+
## Include with anchor
|
|
604
|
+
|
|
605
|
+
<!-- source: includes/fragments.md -->
|
|
606
|
+
### Subsection 2.1 {#subsection21}
|
|
607
|
+
|
|
608
|
+
This is content of subsection 2.1.
|
|
609
|
+
|
|
610
|
+
## Section 3 {#section3}
|
|
611
|
+
|
|
612
|
+
This is content of section 3.
|
|
613
|
+
|
|
614
|
+
Some paragraph with anchor {#p1}
|
|
615
|
+
|
|
616
|
+
Some paragraph without anchor
|
|
617
|
+
|
|
618
|
+
Some paragraph with anchor {#p2}
|
|
619
|
+
<!-- endsource: includes/fragments.md -->"
|
|
620
|
+
`;
|
|
621
|
+
|
|
622
|
+
exports[`Includes > Various include scenarios 5`] = `
|
|
623
|
+
"---
|
|
624
|
+
metadata:
|
|
625
|
+
- name: generator
|
|
626
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
627
|
+
vcsPath: toc-include.md
|
|
628
|
+
---
|
|
629
|
+
# Toc Include
|
|
630
|
+
|
|
631
|
+
This file is included in the toc.
|
|
632
|
+
|
|
633
|
+
[Link to index](index.md)
|
|
634
|
+
|
|
635
|
+
[Link to page1](level1/page1.md)
|
|
636
|
+
|
|
637
|
+
[Link to page2](level1/level2/page2.md)
|
|
638
|
+
|
|
639
|
+
## Include with anchor
|
|
640
|
+
|
|
641
|
+
<!-- source: includes/fragments.md -->
|
|
642
|
+
## Section 1 {#section1}
|
|
643
|
+
|
|
644
|
+
This is content of section 1.
|
|
645
|
+
<!-- endsource: includes/fragments.md -->"
|
|
646
|
+
`;
|
|
647
|
+
|
|
648
|
+
exports[`Includes > Various include scenarios 6`] = `
|
|
649
|
+
"items:
|
|
650
|
+
- name: Test Includes
|
|
651
|
+
href: index.md
|
|
652
|
+
- name: Toc Include
|
|
653
|
+
href: toc-include.md
|
|
654
|
+
- name: Level 1
|
|
655
|
+
items:
|
|
656
|
+
- name: Page 1
|
|
657
|
+
href: level1/page1.md
|
|
658
|
+
- name: Level 2
|
|
659
|
+
items:
|
|
660
|
+
- name: Page 2
|
|
661
|
+
href: level1/level2/page2.md
|
|
662
|
+
path: toc.yaml
|
|
663
|
+
"
|
|
664
|
+
`;
|
|
665
|
+
|
|
666
|
+
exports[`Includes > Various include scenarios 7`] = `"projectTitle: Test Includes"`;
|
|
667
|
+
|
|
668
|
+
exports[`Includes > Various include scenarios 8`] = `
|
|
669
|
+
"<!DOCTYPE html>
|
|
670
|
+
<html lang="ru" dir="ltr">
|
|
671
|
+
<head>
|
|
672
|
+
<meta charset="utf-8">
|
|
673
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
674
|
+
<base href="./" />
|
|
675
|
+
<title>Test Includes</title>
|
|
676
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
677
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
678
|
+
</head>
|
|
679
|
+
<body class="g-root g-root_theme_light">
|
|
680
|
+
<div id="root"></div>
|
|
681
|
+
<script type="application/json" id="diplodoc-state">
|
|
682
|
+
{"data":{"leading":false,"html":"<p>This is a test page for various include scenarios.</p>/n<h2 id=\\"include-from-root-level\\"><a href=\\"index.html#include-from-root-level\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root level</span></a>Include from root level</h2>/n/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section2\\"><a href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection21\\"><a href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n/n/n<h2 id=\\"include-from-level1\\"><a href=\\"index.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section3\\"><a href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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/n/n<h2 id=\\"include-from-level2\\"><a href=\\"index.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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/n/n<h2 id=\\"include-with-missing-file\\"><a href=\\"index.html#include-with-missing-file\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with missing file</span></a>Include with missing file</h2>/n/n<h2 id=\\"include-file-that-is-in-toc\\"><a href=\\"index.html#include-file-that-is-in-toc\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include file that is in toc</span></a>Include file that is in toc</h2>/n<p><a href=\\"toc-include.html\\">Link to toc-include</a></p>/n/n<h1>Toc Include</h1>/n<p>This file is included in the toc.</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a href=\\"index.html#include-with-anchor3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h2 id=\\"section1\\"><a href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n/n/n<h2 id=\\"links-to-different-levels\\"><a href=\\"index.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"index.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h2 id=\\"section11\\"><a id=\\"section1\\" href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n/n<h2 id=\\"include-with-multiple-anchors\\"><a href=\\"index.html#include-with-multiple-anchors\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with multiple anchors</span></a>Include with multiple anchors</h2>/n/n<h2 id=\\"section21\\"><a id=\\"section2\\" href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n/n<h2 id=\\"include-with-paragraph-anchor\\"><a href=\\"index.html#include-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with paragraph anchor</span></a>Include with paragraph anchor</h2>/n/n<p id=\\"p1\\">Some paragraph with anchor</p>/n/n<h2 id=\\"nested-includes\\"><a href=\\"index.html#nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested includes</span></a>Nested includes</h2>/n/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor5\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section32\\"><a id=\\"section3\\" href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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/n/n/n<h2 id=\\"deep-nested-includes\\"><a href=\\"index.html#deep-nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Deep nested includes</span></a>Deep nested includes</h2>/n/n<h1 id=\\"deep-nested-include\\">Deep nested include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to level1 page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2 page2</a></p>/n<p>This is a deep nested include.</p>/n/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n/n<p><img src=\\"_assets/4.png\\" alt=\\"img 3\\" /></p>/n/n<h2 id=\\"commented-includes\\"><a href=\\"index.html#commented-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Commented includes</span></a>Commented includes</h2>/n/n<h2 id=\\"include-with-variable-substitution\\"><a href=\\"index.html#include-with-variable-substitution\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with variable substitution</span></a>Include with variable substitution</h2>/n/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n/n<h2 id=\\"include-without-title\\"><a href=\\"index.html#include-without-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title</span></a>Include without title</h2>/n/n<h1 id=\\"include-without-title\\">Include without title <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a test for include without title.</p>/n<h2 id=\\"include-without-title-from-the-same-directory\\"><a href=\\"index.html#include-without-title-from-the-same-directory\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title from the same directory</span></a>Include without title from the same directory</h2>/n/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n/n<h2 id=\\"include-without-title-with-anchor\\"><a href=\\"index.html#include-without-title-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with anchor</span></a>Include without title with anchor</h2>/n/n<p>This is content of section 1.</p>/n/n<h2 id=\\"include-without-title-with-paragraph-anchor\\"><a href=\\"index.html#include-without-title-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with paragraph anchor</span></a>Include without title with paragraph anchor</h2>/n/n<p id=\\"p1\\">Some paragraph with anchor</p>/n/n<p><a href=\\"index.html\\">Link to index</a></p>/n/n<h2 id=\\"anchor\\"><a href=\\"index.html#anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<p>{% include notitle <a href=\\"index.html#anchor\\">anchor</a> %}<br />/n{% include <a href=\\"index.html#anchor\\">anchor</a> %}</p>/n/n<h1 id=\\"include-without-title\\">Include without title <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a test for include without title.</p>/n<h2 id=\\"include-without-title-from-the-same-directory1\\"><a href=\\"index.html#include-without-title-from-the-same-directory1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title from the same directory</span></a>Include without title from the same directory</h2>/n/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n/n<h2 id=\\"include-without-title-with-anchor1\\"><a href=\\"index.html#include-without-title-with-anchor1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with anchor</span></a>Include without title with anchor</h2>/n/n<p>This is content of section 1.</p>/n/n<h2 id=\\"include-without-title-with-paragraph-anchor1\\"><a href=\\"index.html#include-without-title-with-paragraph-anchor1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with paragraph anchor</span></a>Include without title with paragraph anchor</h2>/n/n<p id=\\"p1\\">Some paragraph with anchor</p>/n/n<p><a href=\\"index.html\\">Link to index</a></p>/n/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[{"title":"Include from root level","href":"index.html#include-from-root-level","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor","level":2},{"title":"Section 2","href":"index.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection21","level":3}]},{"title":"Include from level1","href":"index.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection211","level":3}]},{"title":"Section 3","href":"index.html#section3","level":2},{"title":"Include from level2","href":"index.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor2","level":2},{"title":"Section 3","href":"index.html#section31","level":2},{"title":"Include with missing file","href":"index.html#include-with-missing-file","level":2},{"title":"Include file that is in toc","href":"index.html#include-file-that-is-in-toc","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor3","level":2},{"title":"Section 1","href":"index.html#section1","level":2},{"title":"Links to different levels","href":"index.html#links-to-different-levels","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor4","level":2},{"title":"Section 1","href":"index.html#section11","level":2},{"title":"Include with multiple anchors","href":"index.html#include-with-multiple-anchors","level":2},{"title":"Section 2","href":"index.html#section21","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection212","level":3}]},{"title":"Include with paragraph anchor","href":"index.html#include-with-paragraph-anchor","level":2},{"title":"Nested includes","href":"index.html#nested-includes","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor5","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection213","level":3}]},{"title":"Section 3","href":"index.html#section32","level":2},{"title":"Deep nested includes","href":"index.html#deep-nested-includes","level":2},{"title":"Commented includes","href":"index.html#commented-includes","level":2},{"title":"Include with variable substitution","href":"index.html#include-with-variable-substitution","level":2},{"title":"Include without title","href":"index.html#include-without-title","level":2},{"title":"Include without title from the same directory","href":"index.html#include-without-title-from-the-same-directory","level":2},{"title":"Include without title with anchor","href":"index.html#include-without-title-with-anchor","level":2},{"title":"Include without title with paragraph anchor","href":"index.html#include-without-title-with-paragraph-anchor","level":2},{"title":"Include with anchor","href":"index.html#anchor","level":2},{"title":"Include without title from the same directory","href":"index.html#include-without-title-from-the-same-directory1","level":2},{"title":"Include without title with anchor","href":"index.html#include-without-title-with-anchor1","level":2},{"title":"Include without title with paragraph anchor","href":"index.html#include-without-title-with-paragraph-anchor1","level":2}],"title":"Test Includes"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
683
|
+
</script>
|
|
684
|
+
<script type="application/javascript">
|
|
685
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
686
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
687
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
688
|
+
})(data.innerText));
|
|
689
|
+
window.STATIC_CONTENT = false;
|
|
690
|
+
</script>
|
|
691
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
692
|
+
</body>
|
|
693
|
+
</html>"
|
|
694
|
+
`;
|
|
695
|
+
|
|
696
|
+
exports[`Includes > Various include scenarios 9`] = `
|
|
697
|
+
"<!DOCTYPE html>
|
|
698
|
+
<html lang="ru" dir="ltr">
|
|
699
|
+
<head>
|
|
700
|
+
<meta charset="utf-8">
|
|
701
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
702
|
+
<base href="../../" />
|
|
703
|
+
<title>Page 2</title>
|
|
704
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
705
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
706
|
+
</head>
|
|
707
|
+
<body class="g-root g-root_theme_light">
|
|
708
|
+
<div id="root"></div>
|
|
709
|
+
<script type="application/json" id="diplodoc-state">
|
|
710
|
+
{"data":{"leading":false,"html":"<p>This is page 2 at level 2.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/level2/page2.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section3\\"><a href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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/n/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/level2/page2.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection21\\"><a href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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/n/n<h2 id=\\"include-from-root\\"><a href=\\"level1/level2/page2.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section2\\"><a href=\\"level1/level2/page2.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n/n/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/level2/page2.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/level2/page2.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section32\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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/n/n/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/level2/page2.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h2 id=\\"section33\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/level2/page2.md"},"headings":[{"title":"Include from level2","href":"level1/level2/page2.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section3","level":2},{"title":"Include from level1","href":"level1/level2/page2.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection21","level":3}]},{"title":"Section 3","href":"level1/level2/page2.html#section31","level":2},{"title":"Include from root","href":"level1/level2/page2.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor2","level":2},{"title":"Section 2","href":"level1/level2/page2.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection211","level":3}]},{"title":"Links to different levels","href":"level1/level2/page2.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/level2/page2.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection212","level":3}]},{"title":"Section 3","href":"level1/level2/page2.html#section32","level":2},{"title":"Include with anchor","href":"level1/level2/page2.html#include-with-anchor4","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section33","level":2}],"title":"Page 2"},"router":{"pathname":"level1/level2/page2","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
711
|
+
</script>
|
|
712
|
+
<script type="application/javascript">
|
|
713
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
714
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
715
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
716
|
+
})(data.innerText));
|
|
717
|
+
window.STATIC_CONTENT = false;
|
|
718
|
+
</script>
|
|
719
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
720
|
+
</body>
|
|
721
|
+
</html>"
|
|
722
|
+
`;
|
|
723
|
+
|
|
724
|
+
exports[`Includes > Various include scenarios 10`] = `
|
|
725
|
+
"<!DOCTYPE html>
|
|
726
|
+
<html lang="ru" dir="ltr">
|
|
727
|
+
<head>
|
|
728
|
+
<meta charset="utf-8">
|
|
729
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
730
|
+
<base href="../" />
|
|
731
|
+
<title>Page 1</title>
|
|
732
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
733
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
734
|
+
</head>
|
|
735
|
+
<body class="g-root g-root_theme_light">
|
|
736
|
+
<div id="root"></div>
|
|
737
|
+
<script type="application/json" id="diplodoc-state">
|
|
738
|
+
{"data":{"leading":false,"html":"<p>This is page 1 at level 1.</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/page1.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection21\\"><a href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section3\\"><a href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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/n/n<h2 id=\\"include-from-root\\"><a href=\\"level1/page1.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section2\\"><a href=\\"level1/page1.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n/n/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/page1.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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/n/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/page1.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/page1.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section32\\"><a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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/n/n/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/page1.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section33\\"><a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</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","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/page1.md"},"headings":[{"title":"Include from level1","href":"level1/page1.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection21","level":3}]},{"title":"Section 3","href":"level1/page1.html#section3","level":2},{"title":"Include from root","href":"level1/page1.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor1","level":2},{"title":"Section 2","href":"level1/page1.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection211","level":3}]},{"title":"Include from level2","href":"level1/page1.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor2","level":2},{"title":"Section 3","href":"level1/page1.html#section31","level":2},{"title":"Links to different levels","href":"level1/page1.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/page1.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection212","level":3}]},{"title":"Section 3","href":"level1/page1.html#section32","level":2},{"title":"Include with anchor","href":"level1/page1.html#include-with-anchor4","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection213","level":3}]},{"title":"Section 3","href":"level1/page1.html#section33","level":2}],"title":"Page 1"},"router":{"pathname":"level1/page1","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
739
|
+
</script>
|
|
740
|
+
<script type="application/javascript">
|
|
741
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
742
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
743
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
744
|
+
})(data.innerText));
|
|
745
|
+
window.STATIC_CONTENT = false;
|
|
746
|
+
</script>
|
|
747
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
748
|
+
</body>
|
|
749
|
+
</html>"
|
|
750
|
+
`;
|
|
751
|
+
|
|
752
|
+
exports[`Includes > Various include scenarios 11`] = `
|
|
753
|
+
"<!DOCTYPE html>
|
|
754
|
+
<html lang="ru" dir="ltr">
|
|
755
|
+
<head>
|
|
756
|
+
<meta charset="utf-8">
|
|
757
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
758
|
+
<base href="./" />
|
|
759
|
+
<title>Toc Include</title>
|
|
760
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
761
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
762
|
+
</head>
|
|
763
|
+
<body class="g-root g-root_theme_light">
|
|
764
|
+
<div id="root"></div>
|
|
765
|
+
<script type="application/json" id="diplodoc-state">
|
|
766
|
+
{"data":{"leading":false,"html":"<p>This file is included in the toc.</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"toc-include.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n/n<h2 id=\\"section1\\"><a href=\\"toc-include.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"toc-include.md"},"headings":[{"title":"Include with anchor","href":"toc-include.html#include-with-anchor","level":2},{"title":"Section 1","href":"toc-include.html#section1","level":2}],"title":"Toc Include"},"router":{"pathname":"toc-include","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
767
|
+
</script>
|
|
768
|
+
<script type="application/javascript">
|
|
769
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
770
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
771
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
772
|
+
})(data.innerText));
|
|
773
|
+
window.STATIC_CONTENT = false;
|
|
774
|
+
</script>
|
|
775
|
+
<script type="application/javascript" defer src="toc.js"></script>
|
|
776
|
+
</body>
|
|
777
|
+
</html>"
|
|
778
|
+
`;
|
|
779
|
+
|
|
780
|
+
exports[`Includes > Various include scenarios 12`] = `"window.__DATA__.data.toc = {"items":[{"name":"Test Includes","href":"index.html","id":"UUID"},{"name":"Toc Include","href":"toc-include.html","id":"UUID"},{"name":"Level 1","items":[{"name":"Page 1","href":"level1/page1.html","id":"UUID"},{"name":"Level 2","items":[{"name":"Page 2","href":"level1/level2/page2.html","id":"UUID"}],"id":"UUID"}],"id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|