Skip to content

Commit a1bc4b7

Browse files
committed
merge from master
2 parents 2f18547 + 09212d7 commit a1bc4b7

File tree

14 files changed

+79
-87
lines changed

14 files changed

+79
-87
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ doxygen
22
build
33
*~
44

5+
/docker/requirements.txt
6+
/docker/install.sh
7+
58
/spec-venv
69
/repos/*
710
/.vscode

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ to do the same task manually.
3737
Setup
3838
-----
3939

40-
Install python 3 and doxygen. To install on **Ubuntu**::
40+
Install python 3 and doxygen (>= 1.8.17). To install on **Ubuntu**::
4141

4242
sudo scripts/install.sh
4343

master.log

Lines changed: 0 additions & 26 deletions
This file was deleted.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ aws-shell # Only needed for deploying the site
66
breathe
77
gitpython
88
sphinx
9+
sphinx-notfound-page
910
sphinx-rtd-theme

scripts/build-image.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/deploy.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

scripts/element.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import shutil
99
import subprocess
1010

11-
sphinx_opts = ''
11+
sphinx_opts = '-q'
1212
sphinx_build = 'sphinx-build'
1313
source_dir = 'source'
1414
build_dir = 'build'
@@ -50,7 +50,7 @@ def shell(c):
5050
log(c)
5151
if dry_run:
5252
return
53-
subprocess.check_output(c, shell=True)
53+
subprocess.check_call(c, shell=True)
5454

5555
def rm(dir):
5656
log('rm -rf', dir)

scripts/install.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
#! /bin/bash
2+
set -e
3+
set -x
4+
25
export DEBIAN_FRONTEND=noninteractive
36
apt-get update
47
apt-get install -y \
58
python3-pip \
6-
python3
9+
python3 \
10+
wget
711
apt-get install -y \
8-
doxygen \
912
git
13+
wget http://doxygen.nl/files/doxygen-1.8.17.linux.bin.tar.gz
14+
tar zxf doxygen-1.8.17.linux.bin.tar.gz
15+
pushd doxygen-1.8.17
16+
./configure
17+
set +e
18+
make install
19+
set -e
20+
popd
1021
apt-get install -y \
1122
latexmk \
1223
texlive-latex-base \

scripts/oneapi.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,33 @@
2525
args = None
2626

2727

28+
def get_env(var):
29+
return os.environ[var] if var in os.environ else ''
30+
31+
@element.action
32+
def dockerbuild(target=None):
33+
element.copy('requirements.txt', 'docker')
34+
element.copy('scripts/install.sh', 'docker')
35+
element.shell('docker build'
36+
' --build-arg http_proxy=%s'
37+
' --build-arg https_proxy=%s'
38+
' --build-arg no_proxy=%s'
39+
' --tag rscohn2/oneapi-spec docker'
40+
% (get_env('http_proxy'), get_env('https_proxy'), get_env('no_proxy')))
41+
42+
@element.action
43+
def dockerpush(target=None):
44+
element.shell('docker push rscohn2/oneapi-spec')
45+
46+
@element.action
47+
def dockerrun(target=None):
48+
element.shell('docker run --rm -it'
49+
' --user %s:%s'
50+
' --volume=%s:/build'
51+
' --workdir=/build'
52+
' rscohn2/oneapi-spec'
53+
% (os.getuid(), os.getgid(), os.getcwd()))
54+
2855
@element.action
2956
def clean(target=None):
3057
apply_dirs('clean')
@@ -147,6 +174,9 @@ def ci(target=None):
147174
'ci-publish': ci_publish,
148175
'clean': clean,
149176
'clones': clones,
177+
'dockerbuild': dockerbuild,
178+
'dockerpush': dockerpush,
179+
'dockerrun': dockerrun,
150180
'html': build,
151181
'latexpdf': build,
152182
'prep': prep,

source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4343
# ones.
4444
extensions = [
45+
'notfound.extension',
4546
'sphinx.ext.autodoc',
4647
'sphinx.ext.doctest',
4748
# 'sphinx.ext.intersphinx',
@@ -220,6 +221,8 @@
220221
}
221222
breathe_default_project = 'oneAPI'
222223

224+
notfound_default_language = 'versions'
225+
223226
def setup(app):
224227
app.add_css_file('custom.css')
225228

0 commit comments

Comments
 (0)