Prathamesh Sarjerao Vaidya commited on
Commit
da95057
Β·
1 Parent(s): 6512a42

made some changes

Browse files
.github/workflows/scripts/latex-header.tex CHANGED
@@ -3,7 +3,8 @@
3
  \usepackage{adjustbox}
4
  \usepackage{caption}
5
  \usepackage{subcaption}
6
- \usepackage{geometry}
 
7
  \usepackage{fancyhdr}
8
  \usepackage{xcolor}
9
  \usepackage{hyperref}
@@ -15,9 +16,6 @@
15
  \setsansfont{DejaVu Sans}
16
  \setmonofont{DejaVu Sans Mono}
17
 
18
- % Try to set a font with emoji support as fallback
19
- \newfontfamily\emojifont{Apple Color Emoji}[Renderer=Harfbuzz]
20
-
21
  % Better image positioning and scaling
22
  \floatplacement{figure}{H}
23
  \let\oldincludegraphics\includegraphics
@@ -25,13 +23,8 @@
25
  \adjustbox{max width=\textwidth,center}{\oldincludegraphics[#1]{#2}}%
26
  }
27
 
28
- % Set margins - FIXED: Reduced margins significantly
29
- \geometry{
30
- top=0.5in,
31
- left=0.5in,
32
- right=0.5in,
33
- bottom=0.5in
34
- }
35
 
36
  % Hyperlink colors
37
  \hypersetup{
 
3
  \usepackage{adjustbox}
4
  \usepackage{caption}
5
  \usepackage{subcaption}
6
+ % \usepackage[top=0.5in,left=0.5in,right=0.5in,bottom=0.5in]{geometry}
7
+ \usepackage[a4paper,top=2.25cm,bottom=2.25cm,left=1.9cm,right=1.9cm]{geometry}
8
  \usepackage{fancyhdr}
9
  \usepackage{xcolor}
10
  \usepackage{hyperref}
 
16
  \setsansfont{DejaVu Sans}
17
  \setmonofont{DejaVu Sans Mono}
18
 
 
 
 
19
  % Better image positioning and scaling
20
  \floatplacement{figure}{H}
21
  \let\oldincludegraphics\includegraphics
 
23
  \adjustbox{max width=\textwidth,center}{\oldincludegraphics[#1]{#2}}%
24
  }
25
 
26
+ % Try to set a font with emoji support as fallback
27
+ \newfontfamily\emojifont{Noto Color Emoji}[Renderer=Harfbuzz]
 
 
 
 
 
28
 
29
  % Hyperlink colors
30
  \hypersetup{
.github/workflows/scripts/preprocess_markdown.py CHANGED
@@ -26,10 +26,11 @@ def process_mermaid_diagrams(content, file_dir):
26
  return f'\n```\n{mermaid_code}\n```\n'
27
 
28
  try:
29
- # Convert to SVG first - FIXED: Remove --puppeteerConfig
30
  result = subprocess.run([
31
  'mmdc', '-i', mermaid_file, '-o', svg_file,
32
- '--theme', 'default', '--backgroundColor', 'white'
 
33
  ], check=True, capture_output=True, text=True)
34
 
35
  # Convert SVG to PNG for better PDF compatibility
@@ -81,7 +82,9 @@ def clean_emojis_and_fix_images(content, file_dir):
81
  'πŸ“Š': '[Analytics]',
82
  '🧠': '[AI]',
83
  'πŸŽ₯': '[Media]',
84
- 'πŸ“„': '[File]'
 
 
85
  }
86
 
87
  for emoji, replacement in emoji_replacements.items():
 
26
  return f'\n```\n{mermaid_code}\n```\n'
27
 
28
  try:
29
+ # Convert to SVG with --no-sandbox flag for CI environments
30
  result = subprocess.run([
31
  'mmdc', '-i', mermaid_file, '-o', svg_file,
32
+ '--theme', 'default', '--backgroundColor', 'white',
33
+ '--puppeteerConfig', '{"args": ["--no-sandbox", "--disable-setuid-sandbox"]}'
34
  ], check=True, capture_output=True, text=True)
35
 
36
  # Convert SVG to PNG for better PDF compatibility
 
82
  'πŸ“Š': '[Analytics]',
83
  '🧠': '[AI]',
84
  'πŸŽ₯': '[Media]',
85
+ 'πŸ“„': '[File]',
86
+ 'βœ…': '[Success]',
87
+ '❌': '[Failed]'
88
  }
89
 
90
  for emoji, replacement in emoji_replacements.items():