Skip to content

Commit 56027ae

Browse files
Merge pull request #1679 from yatarkan/yt/notebooks-selector
Notebooks selector app with manual GitHub Pages deploy
2 parents 87487f7 + c53b08f commit 56027ae

File tree

158 files changed

+7345
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+7345
-38
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Manual Deploy to GitHub Pages
2+
3+
on:
4+
workflow_dispatch:
5+
6+
concurrency:
7+
group: 'pages'
8+
cancel-in-progress: true
9+
10+
jobs:
11+
build_assets:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
with:
17+
ref: ${{ github.event.pull_request.head.ref }}
18+
repository: ${{ github.event.pull_request.head.repo.full_name }}
19+
fetch-depth: 0
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 18
25+
26+
- name: Install Node.js dependencies
27+
working-directory: ./selector
28+
shell: bash
29+
run: npm ci
30+
31+
- name: Validate all notebooks metadata
32+
uses: actions/github-script@v7
33+
with:
34+
script: |
35+
const { NotebookMetadataHandler } = await import('${{ github.workspace }}/selector/src/notebook-metadata/notebook-metadata-handler.js');
36+
const [error, metadataMarkdowns] = NotebookMetadataHandler.validateAll();
37+
core.summary.addHeading(`Validated Notebooks (${metadataMarkdowns.length})`, '2');
38+
core.summary.addRaw(metadataMarkdowns.join('\n\n'));
39+
core.summary.write();
40+
if (error) {
41+
core.setFailed(error);
42+
}
43+
44+
- name: Build static for GitHub Pages
45+
working-directory: ./selector
46+
shell: bash
47+
run: npm run build
48+
49+
- name: Upload pages artifact
50+
uses: actions/upload-pages-artifact@v3
51+
with:
52+
path: ./selector/dist
53+
54+
deploy_github_pages:
55+
runs-on: ubuntu-20.04
56+
needs: build_assets
57+
permissions:
58+
pages: write
59+
id-token: write
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
steps:
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v4

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Example of such manually defined notebook metadata:
256256
}
257257
```
258258

259-
Notebook tags in metadata can have several values and should be a subset of defined tags that can be found in `./selector/src/models/notebook-tags.js`.
259+
Notebook tags in metadata can have several values and should be a subset of defined tags that can be found in `./selector/src/shared/notebook-tags.js`.
260260
- `tags.categories` tags relate to notebook groups like "AI Trends", "First Steps", "Model Demos" etc.
261261
- `tags.tasks` tags relate to particular AI tasks that are demonstrated in notebook.
262262
- `tags.other` tags are free-form tags and can be any string (please follow capitalization naming convention).

notebooks/104-model-tools/104-model-tools.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,9 @@
724724
],
725725
"libraries": [],
726726
"other": [],
727-
"tasks": []
727+
"tasks": [
728+
"Image Classification"
729+
]
728730
}
729731
}
730732
},

notebooks/105-language-quantize-bert/105-language-quantize-bert.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,9 @@
950950
],
951951
"libraries": [],
952952
"other": [],
953-
"tasks": []
953+
"tasks": [
954+
"Text Classification"
955+
]
954956
}
955957
},
956958
"vscode": {

notebooks/106-auto-device/106-auto-device.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,9 @@
802802
],
803803
"libraries": [],
804804
"other": [],
805-
"tasks": []
805+
"tasks": [
806+
"Image Classification"
807+
]
806808
}
807809
},
808810
"toc-autonumbering": false,

notebooks/108-gpu-device/108-gpu-device.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,9 @@
19111911
],
19121912
"libraries": [],
19131913
"other": [],
1914-
"tasks": []
1914+
"tasks": [
1915+
"Object Detection"
1916+
]
19151917
}
19161918
},
19171919
"vscode": {

notebooks/112-pytorch-post-training-quantization-nncf/112-pytorch-post-training-quantization-nncf.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,9 @@
10411041
],
10421042
"libraries": [],
10431043
"other": [],
1044-
"tasks": []
1044+
"tasks": [
1045+
"Image Classification"
1046+
]
10451047
}
10461048
},
10471049
"vscode": {

notebooks/115-async-api/115-async-api.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,9 @@
710710
],
711711
"libraries": [],
712712
"other": [],
713-
"tasks": []
713+
"tasks": [
714+
"Object Detection"
715+
]
714716
}
715717
},
716718
"vscode": {

notebooks/116-sparsity-optimization/116-sparsity-optimization.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@
297297
],
298298
"libraries": [],
299299
"other": [],
300-
"tasks": []
300+
"tasks": [
301+
"Text Classification"
302+
]
301303
}
302304
},
303305
"vscode": {

notebooks/117-model-server/117-model-server.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,9 @@
780780
],
781781
"libraries": [],
782782
"other": [],
783-
"tasks": []
783+
"tasks": [
784+
"Object Detection"
785+
]
784786
}
785787
},
786788
"vscode": {

notebooks/121-convert-to-openvino/121-convert-to-openvino.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,10 @@
786786
],
787787
"libraries": [],
788788
"other": [],
789-
"tasks": []
789+
"tasks": [
790+
"Image Classification",
791+
"Text Classification"
792+
]
790793
}
791794
},
792795
"widgets": {

notebooks/121-convert-to-openvino/121-legacy-mo-convert-to-openvino.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,10 @@
18841884
],
18851885
"libraries": [],
18861886
"other": [],
1887-
"tasks": []
1887+
"tasks": [
1888+
"Image Classification",
1889+
"Text Classification"
1890+
]
18881891
}
18891892
},
18901893
"widgets": {

notebooks/122-quantizing-model-with-accuracy-control/122-yolov8-quantization-with-accuracy-control.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,9 @@
676676
],
677677
"libraries": [],
678678
"other": [],
679-
"tasks": []
679+
"tasks": [
680+
"Image Segmentation"
681+
]
680682
}
681683
},
682684
"widgets": {

notebooks/127-big-transfer-quantization/127-tensorflow-bit-image-classification-nncf-quantization.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,9 @@
733733
],
734734
"libraries": [],
735735
"other": [],
736-
"tasks": []
736+
"tasks": [
737+
"Image Classification"
738+
]
737739
}
738740
},
739741
"vscode": {

notebooks/403-action-recognition-webcam/403-action-recognition-webcam.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,9 @@
758758
],
759759
"libraries": [],
760760
"other": [],
761-
"tasks": []
761+
"tasks": [
762+
"Image Classification"
763+
]
762764
}
763765
},
764766
"widgets": {

notebooks/407-person-tracking-webcam/407-person-tracking.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,9 @@
733733
],
734734
"libraries": [],
735735
"other": [],
736-
"tasks": []
736+
"tasks": [
737+
"Object Detection"
738+
]
737739
}
738740
},
739741
"vscode": {

selector/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>OpenVINO™ Notebooks</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

selector/public/favicon.ico

1.12 KB
Binary file not shown.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright (c) 2023 Intel Corporation
2+
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
5+
associated documentation files (the "Software"), to deal in the Software without restriction,
6+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
7+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice (including the next paragraph) shall be
11+
included in all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
14+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
17+
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Copyright (C) 2023 Intel Corporation
3+
* SPDX-License-Identifier: MIT
4+
*/
5+
6+
/* Do not edit this file manually! This file is generated automatically from the @spark-design/tokens package.*/
7+
8+
@import './style.css';
9+
@import './media-queries.css';
10+
@import './properties.css';
11+
@import './mode-light.css';
12+
@import './mode-dark.css';
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* Copyright (C) 2023 Intel Corporation
3+
* SPDX-License-Identifier: MIT
4+
*/
5+
6+
/* Do not edit this file manually! This file is generated automatically from the @spark-design/tokens package.*/
7+
8+
@media screen and (forced-colors: active) {
9+
.spark-badge {
10+
--spark-badge-color: HighlightText;
11+
--spark-badge-info-background-color: Highlight;
12+
--spark-badge-alert-background-color: Highlight;
13+
--spark-badge-success-background-color: Highlight;
14+
--spark-badge-unknown-background-color: Highlight;
15+
--spark-badge-warning-background-color: Highlight;
16+
}
17+
.spark-badge-text {
18+
forced-color-adjust: none;
19+
}
20+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Copyright (C) 2023 Intel Corporation
3+
* SPDX-License-Identifier: MIT
4+
*/
5+
6+
/* Do not edit this file manually! This file is generated automatically from the @spark-design/tokens package.*/
7+
8+
[data-theme='dark'] {
9+
--spark-badge-color: var(--spark-color-white, #ffffff);
10+
--spark-badge-success-background-color: #8bae46;
11+
--spark-badge-info-background-color: #00c7fd;
12+
--spark-badge-warning-background-color: #fec91b;
13+
--spark-badge-alert-background-color: #c81326;
14+
--spark-badge-unknown-background-color: #525252;
15+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Copyright (C) 2023 Intel Corporation
3+
* SPDX-License-Identifier: MIT
4+
*/
5+
6+
/* Do not edit this file manually! This file is generated automatically from the @spark-design/tokens package.*/
7+
8+
:root,
9+
[data-theme='light'] {
10+
--spark-badge-color: var(--spark-color-white, #ffffff);
11+
--spark-badge-success-background-color: var(--spark-color-moss, #8bae46);
12+
--spark-badge-info-background-color: var(--spark-color-classic-blue, #0054ae);
13+
--spark-badge-warning-background-color: var(--spark-color-daisy, #fec91b);
14+
--spark-badge-alert-background-color: var(--spark-color-coral-shade1, #c81326);
15+
--spark-badge-unknown-background-color: var(--spark-color-carbon-shade1, #525252);
16+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* Copyright (C) 2023 Intel Corporation
3+
* SPDX-License-Identifier: MIT
4+
*/
5+
6+
/* Do not edit this file manually! This file is generated automatically from the @spark-design/tokens package.*/
7+
8+
:root {
9+
--spark-badge-base-display: flex;
10+
--spark-badge-base-text-align: center;
11+
--spark-badge-xs-height: 0.75rem;
12+
--spark-badge-xs-width: 0.75rem;
13+
--spark-badge-xs-font-size: 0.5rem;
14+
--spark-badge-xs-padding-inline: 0.125rem;
15+
--spark-badge-xs-line-height-text: 1.5;
16+
--spark-badge-xs-letter-spacing: 0.015625rem;
17+
--spark-badge-s-height: 1rem;
18+
--spark-badge-s-width: 1rem;
19+
--spark-badge-s-font-size: 0.625rem;
20+
--spark-badge-s-padding-inline: 0.25rem;
21+
--spark-badge-s-line-height-text: 1.5;
22+
--spark-badge-s-letter-spacing: 0.015625rem;
23+
--spark-badge-m-height: 1.5rem;
24+
--spark-badge-m-width: 1.5rem;
25+
--spark-badge-m-font-size: 0.75rem;
26+
--spark-badge-m-padding-inline: 0.5rem;
27+
--spark-badge-m-line-height-text: 1.5;
28+
--spark-badge-m-letter-spacing: 0rem;
29+
--spark-badge-l-height: 2rem;
30+
--spark-badge-l-width: 2rem;
31+
--spark-badge-l-font-size: 0.875rem;
32+
--spark-badge-l-padding-inline: 0.75rem;
33+
--spark-badge-l-line-height-text: 1.5;
34+
--spark-badge-l-letter-spacing: 0rem;
35+
--spark-badge-xl-height: 2.5rem;
36+
--spark-badge-xl-width: 2.5rem;
37+
--spark-badge-xl-font-size: 1rem;
38+
--spark-badge-xl-padding-inline: 0.875rem;
39+
--spark-badge-xl-line-height-text: 1.5;
40+
--spark-badge-xl-letter-spacing: 0rem;
41+
--spark-badge-circle-border-radius: 50%;
42+
--spark-badge-pill-border-radius: 2.5rem;
43+
--spark-badge-square-border-radius: 0.3125rem;
44+
}

0 commit comments

Comments
 (0)