Skip to content

Commit

Permalink
change links
Browse files Browse the repository at this point in the history
  • Loading branch information
smashmath committed Jan 7, 2025
1 parent 5952acb commit 5dc50c9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
6 changes: 4 additions & 2 deletions assets/html/generate_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def generate_links():
# get the list of files in the current directory
files = os.listdir(current_dir)
# open the output file
output = open(parent_dir + '/links.txt', 'w')
#output = open(parent_dir + '/links.txt', 'w')
output = open(current_dir + '/links.txt', 'w')
# iterate through the files
for file in files:
if not file.endswith('.html'):
Expand All @@ -22,8 +23,9 @@ def generate_links():
path = current_dir + '/' + file
# we need to replace the backslashes with forward slashes
path = path.replace('\\', '/')
# replace C:/ with https://
# replace C:/ or E:/ with https://
link = path.replace('C:/', 'https://')
link = path.replace('E:/', 'https://')
#link = 'https://smashmath.github.io/' + path.split(parent_dir)[1]
# write the link to the output file
output.write(file + ':\n\t' + link + '\n')
Expand Down
13 changes: 12 additions & 1 deletion assets/html/links.txt
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
https://smashmath.github.io/assets/html/introduction.html
frontpage.html:
https://smashmath.github.io/assets/html/frontpage.html
<iframe style="border: none;" title="embedded content" src="https://smashmath.github.io/assets/html/frontpage.html" width="100%" height="500px"></iframe>
introduction.html:
https://smashmath.github.io/assets/html/introduction.html
<iframe style="border: none;" title="embedded content" src="https://smashmath.github.io/assets/html/introduction.html" width="100%" height="500px"></iframe>
math011tuesdaysyll.html:
https://smashmath.github.io/assets/html/math011tuesdaysyll.html
<iframe style="border: none;" title="embedded content" src="https://smashmath.github.io/assets/html/math011tuesdaysyll.html" width="100%" height="500px"></iframe>
template.html:
https://smashmath.github.io/assets/html/template.html
<iframe style="border: none;" title="embedded content" src="https://smashmath.github.io/assets/html/template.html" width="100%" height="500px"></iframe>
9 changes: 0 additions & 9 deletions assets/links.txt

This file was deleted.

0 comments on commit 5dc50c9

Please sign in to comment.