@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.
Files changed (52) hide show
  1. package/e2e/__snapshots__/alternates.test.ts.snap +905 -0
  2. package/e2e/__snapshots__/bundles.spec.ts.snap +174 -0
  3. package/e2e/__snapshots__/include-toc.test.ts.snap +37 -0
  4. package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +15 -106
  5. package/e2e/__snapshots__/metadata.spec.ts.snap +9 -47
  6. package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
  7. package/e2e/__snapshots__/preprocess.test.ts.snap +638 -4
  8. package/e2e/__snapshots__/regression.test.ts.snap +61 -211
  9. package/e2e/__snapshots__/restricted-access.test.ts.snap +20 -0
  10. package/e2e/__snapshots__/rtl.spec.ts.snap +18 -105
  11. package/e2e/__snapshots__/search.test.ts.snap +1 -31
  12. package/e2e/__snapshots__/single-page.spec.ts.snap +163 -0
  13. package/e2e/__snapshots__/skip-html-extension.spec.ts.snap +4 -63
  14. package/e2e/__snapshots__/translation.spec.ts.snap +191 -1416
  15. package/e2e/alternates.test.ts +34 -0
  16. package/e2e/bundles.spec.ts +15 -0
  17. package/e2e/preprocess.test.ts +4 -0
  18. package/e2e/single-page.spec.ts +22 -0
  19. package/e2e/translation.spec.ts +1 -27
  20. package/fixtures/utils/file.ts +49 -6
  21. package/fixtures/utils/test.ts +2 -0
  22. package/mocks/alternates/input/.yfm +1 -0
  23. package/mocks/alternates/input/az/about.md +3 -0
  24. package/mocks/alternates/input/az/deep/test.md +3 -0
  25. package/mocks/alternates/input/az/index.yaml +3 -0
  26. package/mocks/alternates/input/az/toc.yaml +6 -0
  27. package/mocks/alternates/input/en/about.md +3 -0
  28. package/mocks/alternates/input/en/deep/test.md +3 -0
  29. package/mocks/alternates/input/en/index.yaml +3 -0
  30. package/mocks/alternates/input/en/toc.yaml +6 -0
  31. package/mocks/alternates/input/ru/about.md +8 -0
  32. package/mocks/alternates/input/ru/deep/test.md +3 -0
  33. package/mocks/alternates/input/ru/index.yaml +3 -0
  34. package/mocks/alternates/input/ru/toc.yaml +6 -0
  35. package/mocks/bundles/input/.yfm +13 -0
  36. package/mocks/bundles/input/index.md +12 -0
  37. package/mocks/bundles/input/page1.md +3 -0
  38. package/mocks/bundles/input/page2.md +5 -0
  39. package/mocks/bundles/input/toc.yaml +9 -0
  40. package/mocks/errors/extract-filtered-link/input/index.md +1 -1
  41. package/mocks/preprocess/input/_assets/1.svg +15 -0
  42. package/mocks/preprocess/input/autotitle.md +13 -0
  43. package/mocks/preprocess/input/images.md +92 -1
  44. package/mocks/regression/input/autotitle.md +3 -0
  45. package/mocks/single-page/input/ru/index.yaml +9 -0
  46. package/mocks/single-page/input/ru/page.md +14 -0
  47. package/mocks/single-page/input/ru/project/config.md +1 -0
  48. package/mocks/single-page/input/ru/toc.yaml +7 -0
  49. package/mocks/translation/dir-files/input/ru/nested/toc.yaml +3 -3
  50. package/mocks/translation/dir-files/input/ru/nested/use_filtered_above.md +4 -0
  51. package/package.json +1 -1
  52. 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
+ });
@@ -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
+ });
@@ -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
  });
@@ -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
- !['_bundle/', '_assets/', '_search/'].some((part) => file.includes(part));
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(outputPath: string, ignoreFileContent = false) {
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
- expect(hashless(JSON.stringify(filesFromOutput, null, 2))).toMatchSnapshot('filelist');
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
- const content = getFileContent(resolve(outputPath, filePath));
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
  }
@@ -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,3 @@
1
+ # About
2
+
3
+ Content
@@ -0,0 +1,3 @@
1
+ # Test
2
+
3
+ Content
@@ -0,0 +1,3 @@
1
+ links:
2
+ - url: ./about
3
+ name: About
@@ -0,0 +1,6 @@
1
+ href: index.yaml
2
+ items:
3
+ - href: about.md
4
+ name: About
5
+ - href: deep/test.md
6
+ name: Test
@@ -0,0 +1,3 @@
1
+ # About
2
+
3
+ Content
@@ -0,0 +1,3 @@
1
+ # Test
2
+
3
+ Content
@@ -0,0 +1,3 @@
1
+ links:
2
+ - url: ./about
3
+ name: About
@@ -0,0 +1,6 @@
1
+ href: index.yaml
2
+ items:
3
+ - href: about.md
4
+ name: About
5
+ - href: deep/test.md
6
+ name: Test
@@ -0,0 +1,8 @@
1
+ ---
2
+ alternate:
3
+ - https://my-other-site.com/about
4
+ ---
5
+
6
+ # About
7
+
8
+ Content
@@ -0,0 +1,3 @@
1
+ # Test
2
+
3
+ Content
@@ -0,0 +1,3 @@
1
+ links:
2
+ - url: ./about
3
+ name: About
@@ -0,0 +1,6 @@
1
+ href: index.yaml
2
+ items:
3
+ - href: about.md
4
+ name: About
5
+ - href: deep/test.md
6
+ name: Test
@@ -0,0 +1,13 @@
1
+ allowHTML: true
2
+
3
+ meta:
4
+ rootPath: http://127.0.0.1:5000/
5
+
6
+ interface:
7
+ toc-header: false
8
+ favicon-src: https://storage.yandexcloud.net/diplodoc-www-assets/favicon/favicon.ico
9
+
10
+ search:
11
+ provider: local
12
+ tolerance: 2
13
+ confidense: phrased
@@ -0,0 +1,12 @@
1
+ ---
2
+ availableLangs:
3
+ - en
4
+ - ru
5
+ ---
6
+
7
+ # Header
8
+
9
+ Content
10
+
11
+ [Link 1](page1.md)
12
+ [Link 2](page2.md)
@@ -0,0 +1,3 @@
1
+ # Page 1
2
+
3
+ [Link](page2.md#hash)
@@ -0,0 +1,5 @@
1
+ # Page 2
2
+
3
+ ## hash
4
+
5
+ [External link](https://example.com)
@@ -0,0 +1,9 @@
1
+ title: Skip html extension
2
+ href: index.md
3
+
4
+ items:
5
+ - name: Title 1
6
+ href: page1.md
7
+ - name: Title 2
8
+ href: page2.md
9
+
@@ -4,4 +4,4 @@
4
4
 
5
5
  [second missed link](./filtered2.md)
6
6
  [second missed link](./filtered2.md)
7
- [second missed link](./filtered3.md)
7
+ [second missed link](./filtered3.md)
@@ -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 ![svg image 1](_assets/1.svg)
2
2
 
3
3
  ![simple image](_assets/1.png)
4
4
 
5
+ <!-- ![comm svg image 1](_assets/1.svg) -->
6
+ 1. `![code svg image 1](_assets/1.svg)`
7
+ ![svg image 11](_assets/1.svg)
5
8
 
9
+ <!-- ![comm svg image 2](_assets/1.svg "Mountain" =100x200) -->
10
+ 2. `![code svg image 2](_assets/1.svg "Mountain" =100x200)`
11
+ ![svg image 2](_assets/1.svg "Mountain" =100x200)
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
+ <!-- [![comm svg image 4](_assets/1.svg)](https://yandex.com/images/search?text=mountain) -->
23
+ 5. `[![code svg image 4](_assets/1.svg)](https://yandex.com/images/search?text=mountain)`
24
+ [![svg image 4](_assets/1.svg)](https://yandex.com/images/search?text=mountain)
25
+
26
+ <!-- [![comm svg image 5](_assets/1.svg "Title"){width=100 height=200}](https://yandex.com/images/search?text=mountain) -->
27
+ 6. `[![code svg image 5](_assets/1.svg "Title"){width=100 height=200}](https://yandex.com/images/search?text=mountain)`
28
+ [![svg image 5](_assets/1.svg "Title"){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
+ ![img](_assets/1.svg)
54
+ and more text
55
+
56
+ 20. Сodeblocks - no inline svg
57
+ ```
58
+ Codeblock fence
59
+ ![code svg image 10.1](_assets/1.svg)
60
+ ```
61
+
62
+ ````
63
+ Codeblock in codeblock
64
+ ```
65
+ ![code svg image 10.2](_assets/1.svg)
66
+ ```
67
+ ![code svg image 10.2](_assets/1.svg)
68
+ ````
69
+
70
+ ~~~
71
+ Codeblock tilda
72
+ ![code svg image 10.3](_assets/1.svg)
73
+ ~~~
74
+
75
+ ```````md translate=no
76
+ Codeblock 10 fence
77
+ ![code svg image 10.4](_assets/1.svg)
78
+ ```````
79
+
80
+ Codeblock 4 spaces
81
+ ![code svg image 10.5](_assets/1.svg)
82
+ row 3
83
+
84
+ 1. Codeblock 4 spaces in list
85
+
86
+ ![code svg image 10.6](_assets/1.svg)
87
+ 1. Codeblock fence in list with bad gap
88
+ ```
89
+ ![code svg image 10.7](_assets/1.svg)
90
+ ```
91
+
92
+ ```md
93
+ Codeblock with inline code
94
+ `![code svg image 22](_assets/1.svg)`
95
+ 1. ![code svg image 23](_assets/1.svg)
96
+ ```
@@ -18,6 +18,9 @@ Empty local title
18
18
  Special local title
19
19
  [{#T}](#header)
20
20
 
21
+ Circular title
22
+ [{#T}](./autotitle.md#header)
23
+
21
24
  ## Header {#header}
22
25
 
23
26
  Content
@@ -0,0 +1,9 @@
1
+ title: Documentation
2
+ description: ""
3
+ meta:
4
+ title: Documentation
5
+ noIndex: true
6
+ links:
7
+ - title: Getting started with Documentation
8
+ description: This guide will show you the basics of working with Documentation
9
+ href: page.md
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: Page Title
3
+ description: Some test description
4
+
5
+ interface:
6
+ toc: false
7
+ favicon-src: /favicon.ico
8
+
9
+ metadata:
10
+ - name: yfm
11
+ content: builder in page
12
+ ---
13
+
14
+ Lorem
@@ -0,0 +1,7 @@
1
+ title: Documentation
2
+ href: index.yaml
3
+ items:
4
+ - name: Documentation
5
+ href: page.md
6
+ - name: Config
7
+ href: project/config.md
@@ -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: index-yfm.md
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
- - name: Таблицы
18
+ - name: Was filtered above
19
+ href: use_filtered_above.md
@@ -0,0 +1,4 @@
1
+ ### Theese links were filtered
2
+
3
+ [test2](./syntax/base.md)
4
+ [test3](./syntax/lists.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "0.0.0-rc-liquid-conditions-saving-202509050811",
3
+ "version": "0.0.0-rc-disable-resolve-codeblock-17941220955",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },
@@ -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 %}