Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh4464 committed Jun 17, 2024
1 parent 8b33680 commit 36e65aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
mkdir -p pdfs
find . -path "./Excalidraw" -prune -o -name "*.md" -print | while IFS= read -r file; do
echo "Converting $file to PDF..."
pandoc "$file" --resource-path=$(dirname $file) -o "pdfs/$(basename "$file" .md).pdf" --pdf-engine=xelatex --template=$PWD/template/my_template.latex
pandoc "$file" --resource-path=$(dirname $file):$(dirname $file)/assets -o "pdfs/$(basename "$file" .md).pdf" --pdf-engine=xelatex --template=$PWD/template/my_template.latex
done
- name: Create Release
Expand Down
20 changes: 10 additions & 10 deletions add_ctexart_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Created Date: Monday, June 17th 2024
# Author: Zihan
# -----
# Last Modified: Monday, 17th June 2024 7:53:50 pm
# Last Modified: Monday, 17th June 2024 7:59:27 pm
# Modified By: the developer formerly known as Zihan at <[email protected]>
# -----
# HISTORY:
Expand Down Expand Up @@ -43,14 +43,14 @@
# f.truncate()

# substitute all space in file name with '_'
# for file in md_files:
# new_file = file.replace(' ', '_')
# print(f'Renaming {file} to {new_file}')
# os.rename(file, new_file)
for file in md_files:
new_file = file.replace(' ', '_')
print(f'Renaming {file} to {new_file}')
os.rename(file, new_file)

# also for foler name
folders = glob.glob('**/', recursive=True)
for folder in folders:
new_folder = folder.replace(' ', '_')
print(f'Renaming {folder} to {new_folder}')
os.rename(folder, new_folder)
# folders = glob.glob('**/', recursive=True)
# for folder in folders:
# new_folder = folder.replace(' ', '_')
# print(f'Renaming {folder} to {new_folder}')
# os.rename(folder, new_folder)

0 comments on commit 36e65aa

Please sign in to comment.