Skip to content

Commit d17e323

Browse files
committed
merge from master
2 parents 244be55 + 3dd716b commit d17e323

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ production with::
154154

155155
python scripts/oneapi.py prod-publish
156156

157+
Then purge the CDN. Generate a list of URLs with::
158+
159+
python scripts/oneapi.py purge
160+
157161
------------
158162
More Reading
159163
------------

scripts/oneapi.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,20 @@ def site(root, target=None):
301301
tar.extractall(versions_x)
302302
copytree(versions_x, join(versions, 'latest'))
303303

304+
def remove_elements(l, elements):
305+
for e in elements:
306+
if e in l:
307+
l.remove(e)
308+
return l
309+
310+
def purge(root, target=None):
311+
root_only(root)
312+
for (r,dirs,files) in os.walk('site', topdown=True):
313+
r = r.replace('site/','')
314+
dirs = remove_elements(dirs,['oneDAL', 'oneL0', 'oneMKL'])
315+
for file in files:
316+
print('http://spec.oneapi.com/%s/%s' % (r, file))
317+
304318
@action
305319
def ci(root, target=None):
306320
root_only(root)
@@ -324,6 +338,7 @@ def ci(root, target=None):
324338
'latexpdf': build,
325339
'prep': prep,
326340
'prod-publish': prod_publish,
341+
'purge': purge,
327342
'site': site,
328343
'spec-venv': spec_venv,
329344
'stage-publish': stage_publish}

source/elements/oneCCL/source/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ Intel has published an `open source implementation`_ with the Apache
3535
license. The `open source implementation`_ includes a comprehensive
3636
test suite. Consult the `README`_ for directions.
3737

38-
.. _`open source implementation`: https://github.com/intel/oneccl
39-
.. _`README`: https://github.com/intel/oneccl/blob/master/README.md
38+
.. _`open source implementation`: https://github.com/oneapi-src/oneCCL
39+
.. _`README`: https://github.com/oneapi-src/oneCCL/blob/master/README.md
4040

0 commit comments

Comments
 (0)