Skip to content

Commit

Permalink
Add big dataset examples
Browse files Browse the repository at this point in the history
  • Loading branch information
satyaog committed Apr 8, 2023
1 parent 47e7860 commit 1572fd8
Show file tree
Hide file tree
Showing 28 changed files with 2,130 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
_build
.idea
**/__pycache__
/docs/examples/**/*.diff
8 changes: 5 additions & 3 deletions docs/Minimal_examples.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.. ***************************
.. ****************
.. Minimal Examples
.. ***************************
.. ****************
.. include:: examples/frameworks/README.rst
.. include:: examples/frameworks/index.rst
.. include:: examples/distributed/index.rst
.. include:: examples/data/index.rst
26 changes: 25 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from __future__ import division, print_function, unicode_literals

from datetime import datetime

from pathlib import Path
import subprocess
import sphinx_theme

extensions = [
Expand Down Expand Up @@ -90,5 +91,28 @@
# Include CNAME file so GitHub Pages can set Custom Domain name
html_extra_path = ['CNAME']


docs_root = Path(__file__).parent
file_dir = docs_root / "examples/generate_diffs.sh"
try:
_proc = subprocess.run(str(file_dir), shell=True, capture_output=True, check=True)
except subprocess.CalledProcessError as err:
raise RuntimeError(
"Could not build the diff files for the examples:\n"
+ str(err.output, encoding="utf-8")
+ str(err.stderr, encoding="utf-8")
)

pyfile = docs_root / "examples/preprocess.py"
try:
_proc = subprocess.run(["python3", str(pyfile)], capture_output=True, check=True)
except subprocess.CalledProcessError as err:
raise RuntimeError(
"Could not generate github README's:\n"
+ str(err.output, encoding="utf-8")
+ str(err.stderr, encoding="utf-8")
)


def setup(app):
app.add_css_file('custom.css')
Loading

0 comments on commit 1572fd8

Please sign in to comment.