Skip to content

Commit 3a19bbd

Browse files
authored
make watermark optional (#310)
1 parent e146b9a commit 3a19bbd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
- uses: actions/setup-python@v2
1313
- name: Install prerequisites
1414
run: |
15+
sudo apt-get update -qq
1516
xargs -a ubuntu-packages.txt sudo apt install -qq
1617
python -m pip install --quiet --upgrade pip
1718
pip install --quiet -r requirements.txt
1819
- name: Builds and checks
1920
run: |
20-
pre-commit run --all
21+
ONEAPI_DRAFT=true pre-commit run --all
2122
mkdir -p build/reuse
2223
# ignore fail for reuse
2324
reuse lint > build/reuse/lint.txt || true

source/conf/common_conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import json
66
import string
77
import sys
8+
from os import environ
89
from os.path import abspath, join
910

1011
import docutils
@@ -179,7 +180,7 @@ class BCLLexer(RegexLexer):
179180

180181
# -- Watermark
181182

182-
sphinxmark_enable = True
183+
sphinxmark_enable = 'ONEAPI_DRAFT' in environ
183184
sphinxmark_div = 'row#main-content'
184185

185186

0 commit comments

Comments
 (0)