From 05a0659a26d6a25816360f3d563708fc030c64a4 Mon Sep 17 00:00:00 2001 From: Aleksandr Mokrov Date: Thu, 7 Mar 2024 19:28:40 +0100 Subject: [PATCH] Fix doc version (#1805) Fix doc version, should be https://docs.openvino.ai/2024/notebooks/... instead https://docs.openvino.ai/2024.0/notebooks/... --- selector/src/notebook-metadata/notebook-metadata-collector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selector/src/notebook-metadata/notebook-metadata-collector.js b/selector/src/notebook-metadata/notebook-metadata-collector.js index 1033e6c87dd..fe36a5a2490 100644 --- a/selector/src/notebook-metadata/notebook-metadata-collector.js +++ b/selector/src/notebook-metadata/notebook-metadata-collector.js @@ -68,7 +68,7 @@ export class NotebookMetadataCollector extends NotebookContentReader { _getDocsLink() { const { latestDocsNotebooks, latestOVReleaseTag } = docsNotebooks; const notebookFileName = this._notebookFileName.replace('.ipynb', ''); - const docsVersion = latestOVReleaseTag.split('.').slice(0, 2).join('.'); + const docsVersion = latestOVReleaseTag.split('.').slice(0, 2)[0]; const docsUrl = `https://docs.openvino.ai/${docsVersion}/notebooks/${notebookFileName}-with-output.html`; return latestDocsNotebooks.includes(this._notebookFilePath) ? docsUrl : null; }