Unverified Commit 491237aa authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[Doc] ignore tutorial files for non-pytorch backend (#5191)

parent 39106b7d
...@@ -235,6 +235,8 @@ if dglbackend == 'mxnet': ...@@ -235,6 +235,8 @@ if dglbackend == 'mxnet':
sphinx_gallery_conf['filename_pattern'] = "/*(?<=mx)\.py" sphinx_gallery_conf['filename_pattern'] = "/*(?<=mx)\.py"
if dglbackend == 'pytorch': if dglbackend == 'pytorch':
sphinx_gallery_conf['filename_pattern'] = "/*(?<!mx)\.py" sphinx_gallery_conf['filename_pattern'] = "/*(?<!mx)\.py"
else:
sphinx_gallery_conf['ignore_pattern'] = "/*tutorials/*\.py"
# sphinx-copybutton tool # sphinx-copybutton tool
copybutton_prompt_text = r'>>> |\.\.\. ' copybutton_prompt_text = r'>>> |\.\.\. '
......
networkx>=2.1 networkx>=2.1
torch==1.13.1+cpu torch
numpy numpy
seaborn seaborn
matplotlib matplotlib
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment