Skip to content

Commit 9728900

Browse files
trying netlify hosted docs
1 parent cbde79f commit 9728900

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
!mkdocs.yml
1616
!generate_graph_examples.py
1717
!.python-version
18+
!requirements.txt
19+
!netlify.toml
1820

1921
# recursively re-ignore
2022
__pycache__

netlify.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# netlify.toml
2+
3+
[build]
4+
publish = "site"
5+
# The command Netlify will run.
6+
# Netlify's build image should handle activating the specified PYTHON_VERSION
7+
# and making 'python' and 'pip' available on the PATH from that version.
8+
command = "pip install -r requirements.txt && pip install . && python generate_graph_examples.py && mkdocs build"
9+
10+
[build.environment]
11+
PYTHON_VERSION = "3.12" # Be explicit. You can try "3.12.10" if "3.12" is ambiguous
12+
# or another version like "3.11" if 3.12 is problematic on Netlify.

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# requirements.txt
2+
mkdocs>=1.5
3+
mkdocs-material>=9.0
4+
networkx>=3.0

0 commit comments

Comments
 (0)