Skip to content

Commit

Permalink
Fix python script
Browse files Browse the repository at this point in the history
  • Loading branch information
arlowatts committed Jan 9, 2025
1 parent e790745 commit e875b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build-table-of-contents.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os

def main():
append_dir_list((os.listdir("world"), os.listdir("stories")))
append_dir_list(os.listdir("world") + os.listdir("stories"))

# create a list of the current directory's contents and append it its index file
def append_dir_list(dir_list: tuple):
def append_dir_list(dir_list: list):
index_path = "index.md"

# check that the directory contains an index file to write to
Expand Down

0 comments on commit e875b60

Please sign in to comment.