@diplodoc/cli-tests 0.0.0-rc-liquid-conditions-saving-202509050811 → 0.0.0-rc-disable-resolve-codeblock-17941220955
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/e2e/__snapshots__/alternates.test.ts.snap +905 -0
- package/e2e/__snapshots__/bundles.spec.ts.snap +174 -0
- package/e2e/__snapshots__/include-toc.test.ts.snap +37 -0
- package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +15 -106
- package/e2e/__snapshots__/metadata.spec.ts.snap +9 -47
- package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
- package/e2e/__snapshots__/preprocess.test.ts.snap +638 -4
- package/e2e/__snapshots__/regression.test.ts.snap +61 -211
- package/e2e/__snapshots__/restricted-access.test.ts.snap +20 -0
- package/e2e/__snapshots__/rtl.spec.ts.snap +18 -105
- package/e2e/__snapshots__/search.test.ts.snap +1 -31
- package/e2e/__snapshots__/single-page.spec.ts.snap +163 -0
- package/e2e/__snapshots__/skip-html-extension.spec.ts.snap +4 -63
- package/e2e/__snapshots__/translation.spec.ts.snap +191 -1416
- package/e2e/alternates.test.ts +34 -0
- package/e2e/bundles.spec.ts +15 -0
- package/e2e/preprocess.test.ts +4 -0
- package/e2e/single-page.spec.ts +22 -0
- package/e2e/translation.spec.ts +1 -27
- package/fixtures/utils/file.ts +49 -6
- package/fixtures/utils/test.ts +2 -0
- package/mocks/alternates/input/.yfm +1 -0
- package/mocks/alternates/input/az/about.md +3 -0
- package/mocks/alternates/input/az/deep/test.md +3 -0
- package/mocks/alternates/input/az/index.yaml +3 -0
- package/mocks/alternates/input/az/toc.yaml +6 -0
- package/mocks/alternates/input/en/about.md +3 -0
- package/mocks/alternates/input/en/deep/test.md +3 -0
- package/mocks/alternates/input/en/index.yaml +3 -0
- package/mocks/alternates/input/en/toc.yaml +6 -0
- package/mocks/alternates/input/ru/about.md +8 -0
- package/mocks/alternates/input/ru/deep/test.md +3 -0
- package/mocks/alternates/input/ru/index.yaml +3 -0
- package/mocks/alternates/input/ru/toc.yaml +6 -0
- package/mocks/bundles/input/.yfm +13 -0
- package/mocks/bundles/input/index.md +12 -0
- package/mocks/bundles/input/page1.md +3 -0
- package/mocks/bundles/input/page2.md +5 -0
- package/mocks/bundles/input/toc.yaml +9 -0
- package/mocks/errors/extract-filtered-link/input/index.md +1 -1
- package/mocks/preprocess/input/_assets/1.svg +15 -0
- package/mocks/preprocess/input/autotitle.md +13 -0
- package/mocks/preprocess/input/images.md +92 -1
- package/mocks/regression/input/autotitle.md +3 -0
- package/mocks/single-page/input/ru/index.yaml +9 -0
- package/mocks/single-page/input/ru/page.md +14 -0
- package/mocks/single-page/input/ru/project/config.md +1 -0
- package/mocks/single-page/input/ru/toc.yaml +7 -0
- package/mocks/translation/dir-files/input/ru/nested/toc.yaml +3 -3
- package/mocks/translation/dir-files/input/ru/nested/use_filtered_above.md +4 -0
- package/package.json +1 -1
- package/mocks/translation/conditions/input/index.md +0 -37
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {describe, it} from 'vitest';
|
|
2
|
+
import {TestAdapter, compareDirectories, getTestPaths} from '../fixtures';
|
|
3
|
+
|
|
4
|
+
describe('Alternates', () => {
|
|
5
|
+
it('skip-html-extension', async () => {
|
|
6
|
+
const {inputPath, outputPath} = getTestPaths('mocks/alternates');
|
|
7
|
+
|
|
8
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
9
|
+
md2md: false,
|
|
10
|
+
md2html: true,
|
|
11
|
+
args: '-j2 --skip-html-extension',
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
await compareDirectories(outputPath);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it('internal', async () => {
|
|
18
|
+
const {inputPath, outputPath} = getTestPaths('mocks/alternates');
|
|
19
|
+
|
|
20
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
21
|
+
md2md: true,
|
|
22
|
+
md2html: false,
|
|
23
|
+
args: '-j2',
|
|
24
|
+
});
|
|
25
|
+
await TestAdapter.testBuildPass(outputPath, outputPath + '-html', {
|
|
26
|
+
md2md: false,
|
|
27
|
+
md2html: true,
|
|
28
|
+
args: '-j2',
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
await compareDirectories(outputPath);
|
|
32
|
+
await compareDirectories(outputPath + '-html');
|
|
33
|
+
});
|
|
34
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {describe, it} from 'vitest';
|
|
2
|
+
import {TestAdapter, compareDirectories, getTestPaths} from '../fixtures';
|
|
3
|
+
|
|
4
|
+
describe('Check bundles', () => {
|
|
5
|
+
it('bundles list is correct', async () => {
|
|
6
|
+
const {inputPath, outputPath} = getTestPaths('mocks/bundles');
|
|
7
|
+
|
|
8
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
9
|
+
md2md: false,
|
|
10
|
+
md2html: true,
|
|
11
|
+
args: '-j2',
|
|
12
|
+
});
|
|
13
|
+
await compareDirectories(outputPath, false, true);
|
|
14
|
+
});
|
|
15
|
+
});
|
package/e2e/preprocess.test.ts
CHANGED
|
@@ -29,5 +29,9 @@ describe('Preprocess', () => {
|
|
|
29
29
|
|
|
30
30
|
generateFilesYamlTestTemplate('HashIncludes=true,Autotitles=true', 'mocks/preprocess');
|
|
31
31
|
|
|
32
|
+
generateFilesYamlTestTemplate('HashIncludes=true,Autotitles=true,Svg=true', 'mocks/preprocess', [
|
|
33
|
+
'--merge-svg'
|
|
34
|
+
]);
|
|
35
|
+
|
|
32
36
|
// generateFilesYamlTestTemplate('Nested toc restricted access', 'mocks/preprocess/test3');
|
|
33
37
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {describe, test} from 'vitest';
|
|
2
|
+
import {TestAdapter, compareDirectories, getTestPaths} from '../fixtures';
|
|
3
|
+
|
|
4
|
+
const generateMapTestSinglePageTemplate = (
|
|
5
|
+
testTitle: string,
|
|
6
|
+
testRootPath: string,
|
|
7
|
+
{md2md = true, md2html = true, args = '--single-page'},
|
|
8
|
+
) => {
|
|
9
|
+
test(testTitle, async () => {
|
|
10
|
+
const {inputPath, outputPath} = getTestPaths(testRootPath);
|
|
11
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {md2md, md2html, args});
|
|
12
|
+
await compareDirectories(outputPath);
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
describe('Single page mode', () => {
|
|
17
|
+
generateMapTestSinglePageTemplate(
|
|
18
|
+
'simple md2html single page with lang dirs',
|
|
19
|
+
'mocks/single-page',
|
|
20
|
+
{md2md: false},
|
|
21
|
+
);
|
|
22
|
+
});
|
package/e2e/translation.spec.ts
CHANGED
|
@@ -37,7 +37,7 @@ const buildFilesYamlTestTemplate = (
|
|
|
37
37
|
) => {
|
|
38
38
|
test(testTitle, async () => {
|
|
39
39
|
const {inputPath, outputPath} = getTestPaths(testRootPath);
|
|
40
|
-
const {md2md, md2html} =buildProps;
|
|
40
|
+
const {md2md, md2html} = buildProps;
|
|
41
41
|
|
|
42
42
|
await TestAdapter.testBuildPass(inputPath, outputPath, {md2html, md2md});
|
|
43
43
|
|
|
@@ -108,30 +108,4 @@ describe('Translate command', () => {
|
|
|
108
108
|
source: 'ru-RU',
|
|
109
109
|
target: 'en-US',
|
|
110
110
|
});
|
|
111
|
-
|
|
112
|
-
let conditionVars = {prod: true, inner: true, list: ['item']};
|
|
113
|
-
generateMapTestTemplate(
|
|
114
|
-
'save truthy liquid conditions structures',
|
|
115
|
-
'mocks/translation/conditions',
|
|
116
|
-
{
|
|
117
|
-
subcommand: 'extract',
|
|
118
|
-
source: 'ru-RU',
|
|
119
|
-
target: 'es-ES',
|
|
120
|
-
additionalArgs: `--vars ${JSON.stringify(conditionVars)}`,
|
|
121
|
-
},
|
|
122
|
-
false,
|
|
123
|
-
);
|
|
124
|
-
|
|
125
|
-
conditionVars = {prod: false, inner: false, list: ['item']};
|
|
126
|
-
generateMapTestTemplate(
|
|
127
|
-
'remove falsy liquid conditions structures',
|
|
128
|
-
'mocks/translation/conditions',
|
|
129
|
-
{
|
|
130
|
-
subcommand: 'extract',
|
|
131
|
-
source: 'ru-RU',
|
|
132
|
-
target: 'es-ES',
|
|
133
|
-
additionalArgs: `--vars ${JSON.stringify(conditionVars)}`,
|
|
134
|
-
},
|
|
135
|
-
false,
|
|
136
|
-
);
|
|
137
111
|
});
|
package/fixtures/utils/file.ts
CHANGED
|
@@ -5,14 +5,38 @@ import {glob} from 'glob';
|
|
|
5
5
|
import {bundleless, hashless, platformless} from './test';
|
|
6
6
|
import {expect} from 'vitest';
|
|
7
7
|
|
|
8
|
+
const SYSTEM_DIRS = ['_bundle/', '_search/'];
|
|
9
|
+
|
|
8
10
|
export function getFileContent(filePath: string) {
|
|
9
11
|
return platformless(bundleless(readFileSync(filePath, 'utf8')));
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
const uselessFile = (file: string) =>
|
|
13
|
-
!
|
|
14
|
+
const uselessFile = (file: string, dirs: string[]) =>
|
|
15
|
+
!dirs.some((part) => file.includes(part));
|
|
16
|
+
|
|
17
|
+
export function stripSystemLinks(content: string) {
|
|
18
|
+
const dirPattern = SYSTEM_DIRS.map(d => d.replace('/', '\\/')).join('|');
|
|
19
|
+
|
|
20
|
+
content = content.replace(
|
|
21
|
+
new RegExp(`<script[^>]+src="(?:${dirPattern})[^"]*"[^>]*></script>`, 'g'),
|
|
22
|
+
''
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
content = content.replace(
|
|
26
|
+
new RegExp(`<link[^>]+href="(?:${dirPattern})[^"]*"[^>]*\\/?>`, 'g'),
|
|
27
|
+
''
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
content = content.replace(/^[ \t]*\r?\n/gm, '');
|
|
31
|
+
|
|
32
|
+
return content;
|
|
33
|
+
}
|
|
14
34
|
|
|
15
|
-
export async function compareDirectories(
|
|
35
|
+
export async function compareDirectories(
|
|
36
|
+
outputPath: string,
|
|
37
|
+
ignoreFileContent = false,
|
|
38
|
+
checkBundle = false,
|
|
39
|
+
) {
|
|
16
40
|
const filesFromOutput = (
|
|
17
41
|
await glob(`**/*`, {
|
|
18
42
|
cwd: outputPath,
|
|
@@ -23,11 +47,30 @@ export async function compareDirectories(outputPath: string, ignoreFileContent =
|
|
|
23
47
|
})
|
|
24
48
|
).map(bundleless).sort();
|
|
25
49
|
|
|
26
|
-
|
|
50
|
+
let filesForSnapshot;
|
|
51
|
+
|
|
52
|
+
if (checkBundle) {
|
|
53
|
+
filesForSnapshot = filesFromOutput;
|
|
54
|
+
} else {
|
|
55
|
+
filesForSnapshot = filesFromOutput.filter(file => uselessFile(file, SYSTEM_DIRS));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Here we sort the order of the included files after all processing
|
|
59
|
+
// This is necessary for better test stability
|
|
60
|
+
// We do not care in what order these files were received and processed
|
|
61
|
+
// We sort only the final list and put it in the snapshot
|
|
62
|
+
filesForSnapshot = filesForSnapshot.map(hashless).sort();
|
|
63
|
+
|
|
64
|
+
expect(JSON.stringify(filesForSnapshot, null, 2)).toMatchSnapshot('filelist');
|
|
27
65
|
|
|
28
66
|
if (!ignoreFileContent) {
|
|
29
|
-
filesFromOutput.filter(uselessFile).forEach((filePath) => {
|
|
30
|
-
|
|
67
|
+
filesFromOutput.filter(file => uselessFile(file, ['_assets/', ...SYSTEM_DIRS])).forEach((filePath) => {
|
|
68
|
+
let content = getFileContent(resolve(outputPath, filePath));
|
|
69
|
+
|
|
70
|
+
if (!checkBundle && filePath.endsWith('.html')) {
|
|
71
|
+
content = stripSystemLinks(content);
|
|
72
|
+
}
|
|
73
|
+
|
|
31
74
|
expect(content).toMatchSnapshot();
|
|
32
75
|
});
|
|
33
76
|
}
|
package/fixtures/utils/test.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
import assets from '@diplodoc/cli/manifest';
|
|
2
3
|
|
|
3
4
|
export function platformless(text: string): string {
|
|
@@ -25,6 +26,7 @@ export function platformless(text: string): string {
|
|
|
25
26
|
export function hashless(text: string): string {
|
|
26
27
|
return text
|
|
27
28
|
.replace(/-[a-z0-9]{12}\./g, '-hash.')
|
|
29
|
+
.replace(/rnd-[a-z0-9]{1,8}__/g, 'rnd-hash__')
|
|
28
30
|
.replace(/(\/|\\)[a-z0-9]{12,13}-(index|registry|resources)\./g, '/hash-$2.');
|
|
29
31
|
}
|
|
30
32
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
langs: ['ru', 'en', 'az']
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
+
<g id="search_1_">
|
|
3
|
+
<linearGradient gradientUnits="userSpaceOnUse" id="SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783">
|
|
4
|
+
<stop offset="0" stop-color="#F14D5C"/>
|
|
5
|
+
<stop offset="0.1309" stop-color="#F05454"/>
|
|
6
|
+
<stop offset="0.3346" stop-color="#3bf488"/>
|
|
7
|
+
<stop offset="0.3492" stop-color="#ED683C"/>
|
|
8
|
+
<stop offset="0.714" stop-color="#1e15a3"/>
|
|
9
|
+
<stop offset="1" stop-color="#FDC70C"/>
|
|
10
|
+
</linearGradient>
|
|
11
|
+
<path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#SVGID_1_)"/>
|
|
12
|
+
<path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/>
|
|
13
|
+
<path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/>
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Empty title
|
|
4
4
|
[](./1.md)
|
|
5
5
|
|
|
6
|
+
### Uploading Attributes via Import File {#create-attribute-with-template}
|
|
7
|
+
|
|
6
8
|
Empty subtitle
|
|
7
9
|
[](./1.md#subtitle)
|
|
8
10
|
|
|
@@ -18,6 +20,17 @@ Empty local title
|
|
|
18
20
|
Special local title
|
|
19
21
|
[{#T}](#header)
|
|
20
22
|
|
|
23
|
+
Reference link
|
|
24
|
+
[{#T}][link]
|
|
25
|
+
|
|
26
|
+
Reference link with hash
|
|
27
|
+
[{#T}][link-with-hash]
|
|
28
|
+
|
|
29
|
+
[link]: ./mermaid.md
|
|
30
|
+
[link-with-hash]: ./1.md#subtitle
|
|
31
|
+
|
|
21
32
|
## Header {#header}
|
|
22
33
|
|
|
23
34
|
Content
|
|
35
|
+
|
|
36
|
+
#### Step 1. Follow the steps described in the [{#T}](#create-attribute-with-template) section
|
|
@@ -1,5 +1,96 @@
|
|
|
1
|
-
# Images
|
|
1
|
+
# Images 
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
+
<!--  -->
|
|
6
|
+
1. ``
|
|
7
|
+

|
|
5
8
|
|
|
9
|
+
<!--  -->
|
|
10
|
+
2. ``
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
<!-- ![comm reference image 3][image1] -->
|
|
14
|
+
3. `![code reference image 3][image1]`
|
|
15
|
+
![reference image 3][image1]
|
|
16
|
+
|
|
17
|
+
4. `![code image1][]`
|
|
18
|
+
![image1][]
|
|
19
|
+
|
|
20
|
+
[image1]: _assets/1.svg "Svg"
|
|
21
|
+
|
|
22
|
+
<!-- [](https://yandex.com/images/search?text=mountain) -->
|
|
23
|
+
5. `[](https://yandex.com/images/search?text=mountain)`
|
|
24
|
+
[](https://yandex.com/images/search?text=mountain)
|
|
25
|
+
|
|
26
|
+
<!-- [{width=100 height=200}](https://yandex.com/images/search?text=mountain) -->
|
|
27
|
+
6. `[{width=100 height=200}](https://yandex.com/images/search?text=mountain)`
|
|
28
|
+
[{width=100 height=200}](https://yandex.com/images/search?text=mountain)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
7. `![title][code]{width=100 height=200}`
|
|
32
|
+
![title][code]{width=100 height=200}
|
|
33
|
+
|
|
34
|
+
8. `![code][]{width=100}`
|
|
35
|
+
![code][]{width=100}
|
|
36
|
+
|
|
37
|
+
[code]: _assets/1.svg
|
|
38
|
+
|
|
39
|
+
9. `[![code Source Code][badge-source]][source]`
|
|
40
|
+
[![Source Code][badge-source]][source]
|
|
41
|
+
|
|
42
|
+
10. `![no inline for reference][png]`
|
|
43
|
+
![no inline for reference][png]
|
|
44
|
+
|
|
45
|
+
[badge-source]: _assets/1.svg
|
|
46
|
+
[png]: _assets/1.png
|
|
47
|
+
[source]: https://github.com/ramsey/uuid/tree/3.x
|
|
48
|
+
|
|
49
|
+
11. Definition list
|
|
50
|
+
Term
|
|
51
|
+
: Definition with
|
|
52
|
+
|
|
53
|
+

|
|
54
|
+
and more text
|
|
55
|
+
|
|
56
|
+
20. Сodeblocks - no inline svg
|
|
57
|
+
```
|
|
58
|
+
Codeblock fence
|
|
59
|
+

|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
````
|
|
63
|
+
Codeblock in codeblock
|
|
64
|
+
```
|
|
65
|
+

|
|
66
|
+
```
|
|
67
|
+

|
|
68
|
+
````
|
|
69
|
+
|
|
70
|
+
~~~
|
|
71
|
+
Codeblock tilda
|
|
72
|
+

|
|
73
|
+
~~~
|
|
74
|
+
|
|
75
|
+
```````md translate=no
|
|
76
|
+
Codeblock 10 fence
|
|
77
|
+

|
|
78
|
+
```````
|
|
79
|
+
|
|
80
|
+
Codeblock 4 spaces
|
|
81
|
+

|
|
82
|
+
row 3
|
|
83
|
+
|
|
84
|
+
1. Codeblock 4 spaces in list
|
|
85
|
+
|
|
86
|
+

|
|
87
|
+
1. Codeblock fence in list with bad gap
|
|
88
|
+
```
|
|
89
|
+

|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
```md
|
|
93
|
+
Codeblock with inline code
|
|
94
|
+
``
|
|
95
|
+
1. 
|
|
96
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Lorem
|
|
@@ -5,15 +5,15 @@ items:
|
|
|
5
5
|
href: index.yaml
|
|
6
6
|
- include: {mode: merge, path: folder1/toc-i.yaml}
|
|
7
7
|
- name: Yandex Flavored Markdown
|
|
8
|
-
href:
|
|
8
|
+
href:
|
|
9
9
|
items:
|
|
10
10
|
- name: Синтаксис
|
|
11
11
|
items:
|
|
12
12
|
- name: Обзор
|
|
13
13
|
href: syntax/index.md
|
|
14
|
-
when: test == "nested"
|
|
15
14
|
- name: Базовая разметка
|
|
16
15
|
href: syntax/base.md
|
|
17
16
|
- name: Списки
|
|
18
17
|
href: syntax/lists.md
|
|
19
|
-
|
|
18
|
+
- name: Was filtered above
|
|
19
|
+
href: use_filtered_above.md
|
package/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[existing file](./exists.md)
|
|
2
|
-
<!-- [missed file](./missed.md) -->
|
|
3
|
-
{% if prod == true %}Test text{% endif %}
|
|
4
|
-
|
|
5
|
-
{% if inner == true %}inner test text{% endif %}
|
|
6
|
-
|
|
7
|
-
{% if prod == true %}Test text{% if inner == true %}inner test text{% endif %}{% endif %}
|
|
8
|
-
|
|
9
|
-
{% if prod == true %}
|
|
10
|
-
|
|
11
|
-
{% if list contains "item" %}
|
|
12
|
-
|
|
13
|
-
#### List
|
|
14
|
-
|
|
15
|
-
{% if item == true %}1. Item {% endif %}
|
|
16
|
-
|
|
17
|
-
Some text
|
|
18
|
-
|
|
19
|
-
{% endif %}
|
|
20
|
-
|
|
21
|
-
{% endif %}
|
|
22
|
-
|
|
23
|
-
#### Standalone contains condition
|
|
24
|
-
|
|
25
|
-
{% if list contains "item" %}
|
|
26
|
-
|
|
27
|
-
#### List
|
|
28
|
-
|
|
29
|
-
{% endif %}
|
|
30
|
-
|
|
31
|
-
#### Inline contains condition
|
|
32
|
-
|
|
33
|
-
{% if prod == true %}
|
|
34
|
-
|
|
35
|
-
#### List {% if list contains "item" %} sub text {% endif %}
|
|
36
|
-
|
|
37
|
-
{% endif %}
|