Skip to content

Commit

Permalink
merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
rscohn2 committed Mar 30, 2020
2 parents 8ba8c27 + d13e5bd commit 61a21a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions scripts/oneapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,18 @@ def build(root, target):
prep(root)
sphinx(root, target)

@action
def ci_publish(root, target=None):
root_only(root)
def site_zip():
with ZipFile('site.zip', 'w') as site_zip:
for r, dirs, files in os.walk('site', topdown=True):
# Exclude DAL API because it is 1.7G
if os.path.basename(r) == 'oneDAL':
dirs = remove_elements(dirs, ['api', '_sources'])
for file in files:
site_zip.write(join(r, file))

@action
def ci_publish(root, target=None):
root_only(root)
if not args.branch:
exit('Error: --branch <branchname> is required')
if 'AWS_SECRET_ACCESS_KEY' in os.environ and os.environ['AWS_SECRET_ACCESS_KEY'] != '':
Expand Down Expand Up @@ -341,6 +343,7 @@ def ci(root, target=None):
get_tarballs(root)
site(root)
build('.', 'spelling')
site_zip()
if args.branch == 'publish' or args.branch == 'refs/heads/publish':
stage_publish(root)
else:
Expand Down
2 changes: 1 addition & 1 deletion source/elements/l0/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ Detailed API Descriptions

The detailed specification for Level Zero is available `online`_.

.. _`online`: https://spec.oneapi.com/versions/0.6.0/oneL0/index.html
.. _`online`: https://spec.oneapi.com/versions/latest/oneL0/index.html

0 comments on commit 61a21a8

Please sign in to comment.