Skip to content

Commit ea5e41b

Browse files
trying netlify hosted docs
1 parent cbde79f commit ea5e41b

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
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__

docs/examples/basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Let's create a 5-node cycle graph and add some basic styling through node attrib
88

99
<div class="interactive-graph-wrapper" style="margin-bottom: 1.5em; padding: 1em; border: 1px solid #e0e0e0; border-radius: 4px; background-color: #f9f9f9;">
1010
<h4 style="margin-top: 0; margin-bottom: 0.5em; font-size: 1.1em;">Interactive 5-Cycle Graph</h4>
11-
<iframe src="/nx-vis-visualizer/assets/generated_graphs/cycle_graph_example.html"
11+
<iframe src="/assets/generated_graphs/cycle_graph_example.html"
1212
width="100%"
1313
height="450px"
1414
style="border: 1px solid #ccc; max-width: 100%; display: block;"

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# mkdocs.yml
22
site_name: NX-VIS Visualizer
3-
site_url: https://particularlypythonicsbs.github.io/nx-vis-visualizer/
3+
site_url: https://nx-vis-visualizer.netlify.app/
44
site_author: Anil Radhakrishnan
55
repo_url: https://github.com/ParticularlyPythonicBS/nx-vis-visualizer
66
repo_name: ParticularlyPythonicBS/nx-vis-visualizer

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)