Skip to content

Commit f90cbf2

Browse files
committed
Release oneAPI Samples Catalog Q1 2023.
Signed-off-by: michael vincerra <michael.vincerra@intel.com>
1 parent b6b78bc commit f90cbf2

64 files changed

Lines changed: 1288 additions & 679 deletions

File tree

Some content is hidden

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

src/db.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
import pandas as pd
77
import pathlib
88
import sys
9-
import pprint
10-
from datetime import datetime
9+
# import pprint
1110
# pp = pprint.PrettyPrinter(indent=4)
12-
# pp.pprint
1311

1412
def make_json_list(basedir:str):
1513
''' Walk basedir and create list of all filepaths to JSON code samples.'''
@@ -22,7 +20,6 @@ def make_json_list(basedir:str):
2220
filepath = os.path.join(root,file)
2321
json_file_paths.append(filepath)
2422
filtered_list = [j for j in json_file_paths if not j.startswith("./oneAPI-samples/Publications")]
25-
print(f"\n Test {filtered_list}")
2623
return filtered_list
2724
except Exception as e:
2825
print(f"Error. Ensure root directory is oneAPI-samples repo. \n: {e}")
@@ -50,7 +47,6 @@ def make_url_dict(branch:str,file_paths:list):
5047
if file_paths is not None:
5148
for f in file_paths:
5249
path_base = pathlib.PurePath(f)
53-
# TODO: Revise filepath path SLICE => [1:-1] after migration => oneAPI-samples
5450
path_slice = '/'.join(path_base.parts[1:-1])
5551
full_url = os.path.join(baseurl,path_slice)
5652
list_urls.append(str(full_url))
@@ -92,10 +88,7 @@ def main():
9288
'''Orchestrate sequence of steps to output sample_db_prd.json'''
9389
rootdir = sys.argv[-1]
9490
file_paths = make_json_list(rootdir)
95-
print(file_paths)
96-
# print("OBJ:",type(file_paths))
9791
merge_json_files(file_paths)
98-
# print("Check complete...?")
9992
json_db = df_to_db(file_paths)
10093

10194
return json_db

src/docs/_static/assets/.gitkeep

Whitespace-only changes.
4.19 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions

src/docs/_static/fonts/.gitkeep

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)