Skip to content

Commit da246fe

Browse files
author
Shelson Ferrari
committed
ajuste ci cd para gerar pdf cv shelson
1 parent d2a334d commit da246fe

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

sys/markdown_to_pdf.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,27 +83,21 @@ def highlight_code(code, language):
8383
}
8484
]
8585

86-
# ---------------------------------
87-
# Function to get the project base directory
88-
# ---------------------------------
89-
def get_project_base_dir():
90-
return os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
91-
9286
# ---------------------------------
9387
# Paths for input and output directories
9488
# ---------------------------------
95-
base_dir = get_project_base_dir()
96-
input_md_dir = os.path.join(base_dir, 'sys/cv/')
97-
output_pdf_dir = os.path.join(base_dir, 'sys/pdf')
89+
base_dir = './sys'
90+
input_md_dir = os.path.join(base_dir, 'cv/')
91+
output_pdf_dir = os.path.join(base_dir, 'pdf')
9892

9993
if not os.path.exists(output_pdf_dir):
10094
os.makedirs(output_pdf_dir)
10195

10296
# ---------------------------------
10397
# Paths for CSS files
10498
# ---------------------------------
105-
css_file_path = os.path.join(base_dir, 'sys/style.css')
106-
css_file_theme_path = os.path.join(base_dir, 'sys/css/mdTheme/default.css')
99+
css_file_path = os.path.join(base_dir, 'style.css')
100+
css_file_theme_path = os.path.join(base_dir, 'css/mdTheme/default.css')
107101

108102
# ---------------------------------
109103
# Read CSS file contents

0 commit comments

Comments
 (0)