File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 68
68
([Boolean](#boolean))
69
69
Whether to also create a .html file.
70
70
71
+ # ## Build PDF
72
+
73
+ ` ` ` yaml
74
+ with:
75
+ build_pdf: value
76
+ ` ` `
77
+
78
+ ([Boolean](#boolean))
79
+ Whether to also create a .pdf file (defaults to `true`. After all, this is the intended behaviour).
80
+
71
81
# ## CSS Theme
72
82
73
83
` ` ` yaml
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ inputs:
24
24
build_html :
25
25
description : ' (Boolean) Whether to also create a .html file'
26
26
required : false
27
+ build_pdf :
28
+ description : ' (Boolean) Whether to create a .pdf file (the intended behaviour)'
29
+ required : false
27
30
theme :
28
31
description : ' (File) The location of the CSS file you want to use as the theme'
29
32
required : false
Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ if (!OutputDirIsDir) {
69
69
// Whether to also output a <filename>.html file, there is a bit of magic at the end to ensure that the value is a boolean
70
70
const build_html = getRunnerInput ( 'build_html' , true , booleanTransformer ) ;
71
71
72
+ // Whether to also output a <filename>.pdf file, there is a bit of magic at the end to ensure that the value is a boolean
73
+ // This was requested in #36. No idea why...
74
+ const build_pdf = getRunnerInput ( 'build_pdf' , true , booleanTransformer ) ;
75
+
72
76
// Custom CSS and HTML files for theming
73
77
const ThemeFile = getRunnerInput ( 'theme' , null , getRunnerPath ) ;
74
78
const HighlightThemeFile = getRunnerInput ( 'highlight_theme' , DEFAULT_HIGHLIGHT_FILE , getRunnerPath ) ;
@@ -148,7 +152,9 @@ async function ConvertMarkdown(file) {
148
152
}
149
153
150
154
// Build the PDF file
151
- BuildPDF ( result , file ) ;
155
+ if ( build_pdf === true ) {
156
+ BuildPDF ( result , file ) ;
157
+ }
152
158
}
153
159
154
160
// Assign the style and template files to strings for later manipulation
You can’t perform that action at this time.
0 commit comments