@diplodoc/cli-tests 5.34.7 → 5.35.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.
@@ -111,7 +111,6 @@ exports[`Neuro-expert > Neuro-expert 4`] = `
111
111
  <link rel="alternate" href="en/index.html" hreflang="en" />
112
112
  <link rel="alternate" href="ru/index.html" hreflang="ru" />
113
113
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
114
- <meta name="neuroExpert" content="[object Object]">
115
114
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
116
115
  </head>
117
116
  <body class="g-root g-root_theme_light">
@@ -143,7 +142,6 @@ exports[`Neuro-expert > Neuro-expert 5`] = `
143
142
  <link rel="alternate" href="en/page1.html" hreflang="en" />
144
143
  <link rel="alternate" href="ru/page1.html" hreflang="ru" />
145
144
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
146
- <meta name="neuroExpert" content="[object Object]">
147
145
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
148
146
  </head>
149
147
  <body class="g-root g-root_theme_light">
@@ -228,7 +226,7 @@ exports[`Neuro-expert > Neuro-expert 9`] = `
228
226
  <link rel="alternate" href="en/folder/index.html" hreflang="en" />
229
227
  <link rel="alternate" href="ru/folder/index.html" hreflang="ru" />
230
228
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
231
- <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
229
+ <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net https://expert.yandex.ru; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
232
230
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
233
231
  </head>
234
232
  <body class="g-root g-root_theme_light">
@@ -281,7 +279,7 @@ exports[`Neuro-expert > Neuro-expert 10`] = `
281
279
  <link rel="alternate" href="en/index-test-html/index.html" hreflang="en" />
282
280
  <link rel="alternate" href="ru/index-test-html/index.html" hreflang="ru" />
283
281
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
284
- <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
282
+ <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net https://expert.yandex.ru; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
285
283
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
286
284
  </head>
287
285
  <body class="g-root g-root_theme_light">
@@ -334,7 +332,7 @@ exports[`Neuro-expert > Neuro-expert 11`] = `
334
332
  <link rel="alternate" href="en/index.html" hreflang="en" />
335
333
  <link rel="alternate" href="ru/index.html" hreflang="ru" />
336
334
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
337
- <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
335
+ <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net https://expert.yandex.ru; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
338
336
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
339
337
  </head>
340
338
  <body class="g-root g-root_theme_light">
@@ -387,7 +385,7 @@ exports[`Neuro-expert > Neuro-expert 12`] = `
387
385
  <link rel="alternate" href="en/page1.html" hreflang="en" />
388
386
  <link rel="alternate" href="ru/page1.html" hreflang="ru" />
389
387
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
390
- <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
388
+ <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net https://expert.yandex.ru; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
391
389
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
392
390
  </head>
393
391
  <body class="g-root g-root_theme_light">
@@ -440,13 +438,13 @@ exports[`Neuro-expert > Neuro-expert 13`] = `
440
438
  <link rel="alternate" href="en/page2.html" hreflang="en" />
441
439
  <link rel="alternate" href="ru/page2.html" hreflang="ru" />
442
440
  <meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
443
- <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
441
+ <meta http-equiv="Content-Security-Policy" content="script-src https://yastatic.net; connect-src https://browserweb.s3.mdst.yandex.net https://expert.yandex.ru; frame-src https://expert.yandex.ru; font-src https://yastatic.net;">
444
442
  <style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
445
443
  </head>
446
444
  <body class="g-root g-root_theme_light">
447
445
  <div id="root"></div>
448
446
  <script type="application/json" id="diplodoc-state">
449
- {"data":{"leading":false,"html":"&lt;h2 id=\\"hesh\\"&gt;&lt;a href=\\"ru/page2.html#hesh\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;хэш&lt;/span&gt;&lt;/a&gt;хэш&lt;/h2&gt;/n&lt;p&gt;&lt;a href=\\"ru/folder/index.html\\"&gt;Ссылка&lt;/a&gt;&lt;br /&gt;/n&lt;a href=\\"https://example.com\\" target=\\"_blank\\" rel=\\"noreferrer noopener\\"&gt;Внешняя ссылка&lt;/a&gt;&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"en/page2.html","hreflang":"en"},{"href":"ru/page2.html","hreflang":"ru"}],"canonical":"ru/page2.html","vcsPath":"ru/page2.md"},"headings":[{"title":"хэш","href":"ru/page2.html#hesh","level":2}],"title":"Страница 2"},"router":{"pathname":"ru/page2","depth":2,"base":"../"},"lang":"ru","langs":["en","ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
447
+ {"data":{"leading":false,"html":"&lt;h2 id=\\"hesh\\"&gt;&lt;a href=\\"ru/page2.html#hesh\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"&gt;&lt;span class=\\"visually-hidden\\" data-no-index=\\"true\\"&gt;хэш&lt;/span&gt;&lt;/a&gt;хэш&lt;/h2&gt;/n&lt;p&gt;&lt;a href=\\"ru/folder/index.html\\"&gt;Ссылка&lt;/a&gt;&lt;br /&gt;/n&lt;a href=\\"https://example.com\\" target=\\"_blank\\" rel=\\"noreferrer noopener\\"&gt;Внешняя ссылка&lt;/a&gt;&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"en/page2.html","hreflang":"en"},{"href":"ru/page2.html","hreflang":"ru"}],"canonical":"ru/page2.html","neuroExpert":{"type":"search"},"vcsPath":"ru/page2.md"},"headings":[{"title":"хэш","href":"ru/page2.html#hesh","level":2}],"title":"Страница 2"},"router":{"pathname":"ru/page2","depth":2,"base":"../"},"lang":"ru","langs":["en","ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true},"neuroExpert":{"projectId":"77fac9c9ad9811f0997f4641db830dfd"}}
450
448
  </script>
451
449
  <script type="application/javascript">
452
450
  const data = document.querySelector('script#diplodoc-state');
@@ -460,21 +458,12 @@ exports[`Neuro-expert > Neuro-expert 13`] = `
460
458
  const neuroExpertScript = document.createElement('script');
461
459
  neuroExpertScript.type = "module";
462
460
  neuroExpertScript.src = "https://yastatic.net/s3/distribution/stardust/neuroexpert-widget/production/neuroexpert-widget.js";
463
- const neuroExpertDiv = document.createElement("div");
464
- neuroExpertDiv.id = "neuro-expert-widget";
465
- neuroExpertDiv.className = "dc-neuro-expert-widget";
466
- neuroExpertScript.onload = () => {
467
- function tryAppend() {
468
- const widgetsDiv = document.getElementById("dc-widgets");
469
- if (widgetsDiv) {
470
- widgetsDiv.appendChild(neuroExpertDiv);
471
- window.initNeuroexpert({"projectId":"77fac9c9ad9811f0997f4641db830dfd","hasOutsideClick":true,"parentId":"neuro-expert-widget","customLabel":"new label"});
472
- } else {
473
- setTimeout(tryAppend, 50);
474
- }
475
- }
476
- tryAppend();
477
- };
461
+ const neuroExpertPreload = document.createElement("iframe");
462
+ neuroExpertPreload.src = "https://expert.yandex.ru/expert/projects/77fac9c9ad9811f0997f4641db830dfd/iframe";
463
+ neuroExpertPreload.loading = "eager";
464
+ neuroExpertPreload.style.display = "none";
465
+ neuroExpertPreload.setAttribute("aria-hidden", "true");
466
+ document.body.appendChild(neuroExpertPreload);
478
467
  document.body.appendChild(neuroExpertScript);
479
468
  </script>
480
469
  </body>
@@ -1,3 +1,8 @@
1
+ ---
2
+ neuroExpert:
3
+ type: search
4
+ ---
5
+
1
6
  # Страница 2
2
7
 
3
8
  ## хэш
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "5.34.7",
3
+ "version": "5.35.0",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },