Skip to content

Commit

Permalink
Fix doc version (#1805)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-mokrov authored Mar 7, 2024
1 parent 7b51a15 commit 05a0659
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 05a0659

Please sign in to comment.