Skip to content

Commit

Permalink
getting somewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
briantoby committed Apr 10, 2024
1 parent 0373596 commit 96a70d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- name: see changes
run: |
diff tutorials.html tutorials.html.original
git diff
- name: prepare to push changes back
Expand Down
9 changes: 4 additions & 5 deletions scripts/makeGitTutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ def makeDataIndex(datadir,title):
'''Create an index.html file in the specified directory,
with a URL for each file in the directory. This is run on
every <tutorial>/data directory to provide web browser access to
the contents since GitHub does not offer allow directory views
the contents since GitHub does not offer allow directory views.
'''
fp = open(os.path.join(datadir,'index.html'),'w')
fp.write(f'''<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>Data: {title}</title>
</head>
fp.write(f'''<!-- Do not edit this file. It is created by makeGitTutorial.py --!>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html><head><title>Data: {title}</title></head>
<center>
<img src="../../gsas2logo.png" align=right>
<H2>{title}<BR>Tutorial Exercise Files</H2>
Expand Down

0 comments on commit 96a70d2

Please sign in to comment.