Skip to content

Commit 61a4f84

Browse files
committed
build: addNewTutorials.sh to GH workflow; cleanup makeGitTutorial output
1 parent 2b401b4 commit 61a4f84

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/builddocsite.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,21 @@ jobs:
5454
pandoc --standalone ${fil} --css tutorial.css -o ${outfile}
5555
sed -i "s/<figure>/<BR clear=all><figure>/g" ${outfile}
5656
done
57+
git add ${dest}
5758
done
5859
5960
- name: build tutorials index
6061
run: |
6162
cd scripts
6263
python makeGitTutorial.py ..
64+
65+
- name: Note changed files
66+
run: |
67+
git add tutorials.html
68+
git add */data/index.html
6369
64-
# - name: Push changes
65-
# uses: ad-m/github-push-action@master
70+
- name: Push changes
71+
uses: ad-m/github-push-action@master
6672

6773
- name: Sphinx build
6874
run: |

scripts/makeGitTutorial.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ def makeDataIndex(datadir,title):
192192
# loop through directories in Tutorials repository
193193
for tutdir in glob.glob(os.path.join(TutorialsDir,'*')):
194194
if not os.path.isdir(tutdir): continue
195-
if tutdir in ['scripts','docs','webdocs','MDtutorials']:
196-
continue
197195
d = os.path.split(tutdir)[1]
196+
if d in ['scripts','docs','webdocs','MDtutorials']: continue
198197
if d not in dirList: print(u"Tutorial directory not in GSASIIctrlGUI.tutorialIndex: "+d)
199198
print(f"\nStatistics: {tutorialcount} total tutorials, {videocount} with videos")

0 commit comments

Comments
 (0)