diff --git a/preproduction.sh b/preproduction.sh deleted file mode 100644 index 89a7e72..0000000 --- a/preproduction.sh +++ /dev/null @@ -1,4 +0,0 @@ -python parser/md.py -python generate.py -cd dist -python -m http.server 8000 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 771ce83..ecf8df5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -markdown>=3.8.0 -python-markdown-math>=0.9 -pyyaml>=6.0.2 -jinja2>=3.1.6 \ No newline at end of file +markdown==3.8.0 +python-markdown-math==0.9 +pyyaml==6.0.2 +jinja2==3.1.6 \ No newline at end of file diff --git a/shell.nix b/shell.nix index 4c821c6..c0c9492 100644 --- a/shell.nix +++ b/shell.nix @@ -8,10 +8,18 @@ pkgs.mkShell { ]; shellHook = '' - if [ ! -d .venv ]; then - python -m venv .venv + export PIP_REQUIRE_VIRTUALENV=1 + export VENV_PATH=$HOME/venv/homepage + + if [ ! -d $VENV_PATH ]; then + python -m venv $VENV_PATH fi - source .venv/bin/activate + source $VENV_PATH/bin/activate pip install -r requirements.txt + + python parser/md.py + python generate.py + cd dist + python -m http.server 8000 ''; }