Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use separate template for testing preprocessor
- Loading branch information
1 parent
f206f4e
commit bd536b7
Showing
5 changed files
with
30 additions
and
10 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
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,19 @@ | ||
import os | ||
from setuptools import setup | ||
|
||
|
||
data_files = [] | ||
for (dirpath, dirnames, filenames) in os.walk('share/jupyter/voila/templates'): | ||
if filenames: | ||
data_files.append((dirpath, [os.path.join(dirpath, filename) for filename in filenames])) | ||
|
||
|
||
setup( | ||
name='voila_skip_template', | ||
version="0.0.1", | ||
description="Test template for Voilà", | ||
data_files=data_files, | ||
include_package_data=True, | ||
author='Voilà Development team', | ||
author_email='jupyter@googlegroups.com' | ||
) |
10 changes: 10 additions & 0 deletions
10
tests/skip_template/share/jupyter/voila/templates/skip_template/conf.json
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,10 @@ | ||
{ | ||
"base_template": "classic", | ||
"preprocessors": { | ||
"100-remove-skip-voila-cells": { | ||
"type": "nbconvert.preprocessors.tagremove.TagRemovePreprocessor", | ||
"remove_cell_tags": ["skip-voila"], | ||
"enabled": true | ||
} | ||
} | ||
} |
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
2 changes: 0 additions & 2 deletions
2
tests/test_template/share/jupyter/voila/templates/test_template/index.html.j2
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,5 +1,3 @@ | ||
{%- extends 'classic/index.html.j2' -%} | ||
|
||
Hi Voilà! | ||
This is a test template, obviously | ||
|
||
|