From 0be75b2040d45231a001bdd3abc657284249b4d4 Mon Sep 17 00:00:00 2001 From: Sophie Arana Date: Mon, 11 Sep 2023 17:50:30 +0100 Subject: [PATCH] fix write to slide folder --- .github/workflows/slides_reveal.yml | 2 +- slides/generate_slides.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/slides_reveal.yml b/.github/workflows/slides_reveal.yml index e1e1065..4b526ca 100644 --- a/.github/workflows/slides_reveal.yml +++ b/.github/workflows/slides_reveal.yml @@ -31,7 +31,7 @@ jobs: - name: Convert Markdown to HTML using reveal.js run: | - pandoc slides.md -t revealjs -s -o slides.html -V revealjs-url=./reveal.js -V theme=black + pandoc slides/slides.md -t revealjs -s -o slides/slides.html -V revealjs-url=./reveal.js -V theme=black - name: Commit changes run: | diff --git a/slides/generate_slides.py b/slides/generate_slides.py index b2ce521..9c76ab0 100644 --- a/slides/generate_slides.py +++ b/slides/generate_slides.py @@ -61,7 +61,7 @@ markdown += slide_content # Write the entire slide deck to a markdown file -with open('slides.md', 'w') as md_file: +with open(os.path.join(script_dir,'slides.md'), 'w') as md_file: md_file.write(markdown) print("Generated slides.md")