Skip to content

Commit

Permalink
Merge pull request #27 from saudzahirr/docs
Browse files Browse the repository at this point in the history
Add docs serve, build & deploy scripts
  • Loading branch information
saudzahirr authored Sep 1, 2024
2 parents 5fc5de3 + 8415f1f commit a65cec5
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ dependencies:
- ruff
- pytest
- tqdm
- pip
- pip:
- mkdocs-material
12 changes: 12 additions & 0 deletions scripts/deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e
cd ../docs
source $(conda info --base)/etc/profile.d/conda.sh
conda activate vm
mkdocs build
sleep 4
mkdocs gh-deploy --clean
git clean -xfd
sleep 4
open https://saudzahirr.github.io/vonMises/
12 changes: 12 additions & 0 deletions scripts/deploy.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off
setlocal enabledelayedexpansion

cd ..\docs
call conda activate vm
mkdocs build
timeout /t 4 /nobreak >nul
mkdocs gh-deploy --clean
timeout /t 4 /nobreak >nul
start https://saudzahirr.github.io/vonMises/

endlocal
9 changes: 9 additions & 0 deletions scripts/serve
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e
cd ../docs
source $(conda info --base)/etc/profile.d/conda.sh
conda activate vm
mkdocs serve &
sleep 4
open http://127.0.0.1:8000/vonMises/
6 changes: 6 additions & 0 deletions scripts/serve.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
cd ..\docs
call conda activate vm
start mkdocs serve
timeout /t 5 /nobreak >nul
start http://127.0.0.1:8000/vonMises/

0 comments on commit a65cec5

Please sign in to comment.