Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate notebook sources #301

Merged
merged 29 commits into from
Nov 2, 2020
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Activate glow env in docs steps
Signed-off-by: Karen Feng <[email protected]>
  • Loading branch information
karenfeng committed Oct 23, 2020
commit 0346a173fef291c41bbb7a2886d5305f872a5fad
11 changes: 10 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ install_pyspark2: &install_pyspark2
conda remove -y pyspark
pip install pyspark==2.4.5


check_clean_repo: &check_clean_repo
run:
name: Verify that repo is clean
Expand Down Expand Up @@ -65,12 +66,20 @@ jobs:
cd docs
make linkcheck
- run:
name: Check that notebook source files are up-to-date
name: Configure Databricks CLI
command: |
printf "[docs-ci]\nhost = https://westus.azuredatabricks.net\ntoken = ${DB_API_TOKEN}\n" > ~/.databrickscfg
- run:
name: Generate notebook source files
command: |
export PATH=$HOME/conda/bin:$PATH
source activate glow
for f in $(find docs/source/_static/notebooks -type f -name '*.html'); do
python docs/dev/gen-nb-src.py --html "${f}"
done
- run:
name: Check that notebook source files are up-to-date
command: |
if [[ -n $(git diff --name-only docs/source/_static/zzz_GENERATED_NOTEBOOK_SOURCE) ]]; then
echo "Notebook sources do not match HTML files!"
false
Expand Down