From 9d4bec8b4d0d082c2671de5f0a2c08fca99ab69f Mon Sep 17 00:00:00 2001 From: Lord Turmoil Date: Mon, 16 Oct 2023 12:15:12 +0800 Subject: [PATCH] update: trivial --- deploy.py | 19 ------------------- index.html | 24 ++++++++++++------------ 2 files changed, 12 insertions(+), 31 deletions(-) delete mode 100644 deploy.py diff --git a/deploy.py b/deploy.py deleted file mode 100644 index df87798..0000000 --- a/deploy.py +++ /dev/null @@ -1,19 +0,0 @@ -import os - -# replace absolute path with relative path in index.html -print('Replacing absolute path with relative path in index.html...') -with open('index.html', 'r', encoding='utf-8') as f: - content = f.read() -content = content.replace('"/', '"') -with open('index.html', 'w', encoding='utf-8') as f: - f.write(content) -print('Done!') -print() - -# deploy to GitHub Pages -print('Deploying to GitHub Pages...') -os.system('git checkout deploy') -os.system('git add .') -os.system('git commit -m "replace absolute path with relative path in index.html"') -os.system('git push origin deploy') -print('Done!') diff --git a/index.html b/index.html index b4ca3c6..200857a 100644 --- a/index.html +++ b/index.html @@ -12,12 +12,12 @@ - - - - - - + + + + + + - - - - - - + + + + + + \ No newline at end of file