-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
621 changed files
with
68,658 additions
and
2,705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
name: CI | ||
|
||
on: [push] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
container: rscohn2/oneapi-spec:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build in container | ||
- name: Build | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY}} | ||
run: | | ||
python3 scripts/oneapi.py spec-venv | ||
. spec-venv/bin/activate | ||
python scripts/oneapi.py --branch $GITHUB_REF ci | ||
- name: Archive site | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: oneapi-spec-artifacts | ||
path: site.zip | ||
- name: Archive spellcheck | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: spell check | ||
path: build/spelling/output.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,55 @@ | ||
build_tbb_spec: | ||
build_oneTBB_html: | ||
stage: build | ||
tags: [python-sphinx] | ||
tags: [docker_linux] | ||
image: tr_ubuntu18.04:oneapi-spec | ||
script: | ||
- sphinx-build -b html source/elements/oneTBB/source onetbb_spec | ||
- python3 -m pip install -r requirements.txt | ||
- python3 scripts/oneapi.py html source/elements/oneTBB | ||
artifacts: | ||
paths: [onetbb_spec] | ||
paths: [source/elements/oneTBB/build/html] | ||
expire_in: 3d | ||
|
||
build_oneTBB_pdf: | ||
stage: build | ||
tags: [docker_linux] | ||
image: tr_ubuntu18.04:oneapi-spec | ||
script: | ||
- python3 -m pip install -r requirements.txt | ||
- python3 scripts/oneapi.py latexpdf source/elements/oneTBB | ||
artifacts: | ||
paths: [source/elements/oneTBB/build/latex/*.pdf] | ||
expire_in: 3d | ||
|
||
build_oneDPL_html: | ||
stage: build | ||
tags: [docker_linux] | ||
image: tr_ubuntu18.04:oneapi-spec | ||
script: | ||
- python3 -m pip install -r requirements.txt | ||
- python3 scripts/oneapi.py html source/elements/oneDPL | ||
artifacts: | ||
paths: [source/elements/oneDPL/build/html] | ||
expire_in: 3d | ||
|
||
build_oneDPL_pdf: | ||
stage: build | ||
tags: [docker_linux] | ||
image: tr_ubuntu18.04:oneapi-spec | ||
script: | ||
- python3 -m pip install -r requirements.txt | ||
- python3 scripts/oneapi.py latexpdf source/elements/oneDPL | ||
artifacts: | ||
paths: [source/elements/oneDPL/build/latex/*.pdf] | ||
expire_in: 3d | ||
|
||
pages: | ||
stage: deploy | ||
tags: [linux] | ||
needs: [build_tbb_spec] | ||
needs: [build_oneTBB_html, build_oneDPL_html] | ||
only: [develop] | ||
script: | ||
- mv onetbb_spec public | ||
- mkdir -p public | ||
- mv source/elements/oneTBB/build/html public/oneTBB | ||
- mv source/elements/oneDPL/build/html public/oneDPL | ||
artifacts: | ||
paths: [public] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from os import walk | ||
from os.path import join | ||
import re | ||
|
||
r = re.compile(r'\W+:name: (return-values|include-files|note|note-1|note-2|note-3|syntax|description|input-parameters|output-parameters|example)') | ||
|
||
for root, dirs, files in walk("."): | ||
for file in files: | ||
if not file.endswith(".rst"): | ||
continue | ||
p = join(root, file) | ||
print(p) | ||
in_lines = open(p).readlines() | ||
l2 = in_lines[2] | ||
dup_label = '.. _%s:\n' % l2.rstrip() | ||
print('dup_label:', dup_label) | ||
with open(p, 'w') as fout: | ||
for line in in_lines: | ||
if r.match(line) or line == dup_label: | ||
print('omitting:', line) | ||
else: | ||
fout.write(line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.