Skip to content

Commit

Permalink
build: addNewTutorials.sh to GH workflow; cleanup makeGitTutorial output
Browse files Browse the repository at this point in the history
  • Loading branch information
briantoby committed Jan 16, 2025
1 parent 2b401b4 commit 61a4f84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/builddocsite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,21 @@ jobs:
pandoc --standalone ${fil} --css tutorial.css -o ${outfile}
sed -i "s/<figure>/<BR clear=all><figure>/g" ${outfile}
done
git add ${dest}
done
- name: build tutorials index
run: |
cd scripts
python makeGitTutorial.py ..
- name: Note changed files
run: |
git add tutorials.html
git add */data/index.html
# - name: Push changes
# uses: ad-m/github-push-action@master
- name: Push changes
uses: ad-m/github-push-action@master

- name: Sphinx build
run: |
Expand Down
3 changes: 1 addition & 2 deletions scripts/makeGitTutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ def makeDataIndex(datadir,title):
# loop through directories in Tutorials repository
for tutdir in glob.glob(os.path.join(TutorialsDir,'*')):
if not os.path.isdir(tutdir): continue
if tutdir in ['scripts','docs','webdocs','MDtutorials']:
continue
d = os.path.split(tutdir)[1]
if d in ['scripts','docs','webdocs','MDtutorials']: continue
if d not in dirList: print(u"Tutorial directory not in GSASIIctrlGUI.tutorialIndex: "+d)
print(f"\nStatistics: {tutorialcount} total tutorials, {videocount} with videos")

0 comments on commit 61a4f84

Please sign in to comment.