You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-48Lines changed: 44 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,57 +38,22 @@ Currently it requires a x64 runtime.
38
38
The download is available [here](https://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/releases)
39
39
40
40
## ⚙ Configuration Options
41
-
42
-
### --help
43
-
Help - outputs all the flags/parameters
44
-
45
-
### -o / --output
46
-
The path to the export file including the filename, e.g. c:\export.pdf
47
-
48
-
### -b / --breakPage
49
-
For every wiki page a new page in the PDF will be created
50
-
51
-
### -h / --heading
52
-
For every wiki page create a heading in the PDF. If the file is called Home.md a new #Home-heading is added to PDF.
53
-
54
-
### -s / --single
55
-
Path to a single markdown file to convert to PDF. If you want to write your changelog in the wiki, this is your parameter to only convert a single page.
56
-
-p parameter is required, too.
57
-
58
-
### -p / --path
59
-
Path to the wiki folder. If not provided, the current folder of the executable is used.
60
-
If you only want to convert a subfolder and have images, then you must provide the path to the attachments folder with --attachments-path.
61
-
62
41
### --attachments-path
63
42
Path to the .attachments folder. If not provided, the .attachments is assumed to be located under the folder of the wiki (-p/--path).
64
-
65
-
### -m / --mermaid
66
-
Convert mermaid diagrams to SVG. Will download latest chromium, if chrome-path is not defined.
67
-
68
-
### --mermaidjs-path
69
-
Path of the mermaid.js file. It'll be used if mermaid diagrams support is turned on (-m/--mermaid). If not specified, 'https://cdnjs.cloudflare.com/ajax/libs/mermaid/8.6.4/mermaid.min.js' will be downloaded.
70
-
43
+
### -b / --breakPage
44
+
For every wiki page a new page in the PDF will be created
71
45
### --chrome-path
72
46
Path of the chrome or chromium executable. It'll be used if mermaid diagrams support is turned on (-m/--mermaid). If not specified, a headless version will be downloaded.
73
-
74
47
### --css
75
48
Path to the stylesheet to overwrite the look of certain components in the PDF. See [styles.css](styles.css) for examples. To get the html file, use the [--debug flag](#-d----debug) to inspect and style it.
76
-
77
49
### -c / --highlight-code
78
50
Highlight code blocks using highligh.js
79
-
80
-
### --highlight-style
81
-
hightlight.js style used for code blocks. Defaults to 'vs'. See https://github.com/highlightjs/highlight.js/tree/main/src/styles for a full list.
82
-
83
-
### -v / --verbose
84
-
Verbose mode. Logging will added to the console window
85
-
86
51
### -d / --debug
87
52
Debug mode. Logs tons of stuff and even exports the intermediate html file
88
-
89
-
### --pathToHeading
90
-
Add path of the file to the header
91
-
53
+
### --disableTelemetry
54
+
Disables the telemetry tracking, see [Telemetry](#telemetry)
55
+
### --filter
56
+
Filters the pages depending on the page [yaml tags](https://docs.microsoft.com/en-us/azure/devops/project/wiki/wiki-markdown-guidance?view=azure-devops#yaml-tags).
Headers and footers can be added to the document by the --header-* and
94
59
--footer* arguments respectfully. In header and footer text string supplied
@@ -107,19 +72,39 @@ Headers and footers can be added to the document by the --header-* and
107
72
*[doctitle] Replaced by the title of the output document
108
73
*[sitepage] Replaced by the number of the page in the current site being converted
109
74
*[sitepages] Replaced by the number of pages in the current site being converted
110
-
75
+
### --help
76
+
Help - outputs all the flags/parameters
77
+
### -h / --heading
78
+
For every wiki page create a heading in the PDF. If the file is called Home.md a new #Home-heading is added to PDF.
111
79
### --header-url, --footer-url
112
80
Provide a path to html files that will be added as header and footer. See [example-footer.html](example-footer.html), [example-header.html](example-header.html)
113
-
114
81
### --HideHeaderLine, --hideFooterLine
115
82
Removes the horizontal line in the header or footer.
116
-
117
-
### --disableTelemetry
118
-
Disables the telemetry tracking, see [Telemetry](#telemetry)
83
+
### --highlight-style
84
+
hightlight.js style used for code blocks. Defaults to 'vs'. See https://github.com/highlightjs/highlight.js/tree/main/src/styles for a full list.
85
+
### -m / --mermaid
86
+
Convert mermaid diagrams to SVG. Will download latest chromium, if chrome-path is not defined.
87
+
### --mermaidjs-path
88
+
Path of the mermaid.js file. It'll be used if mermaid diagrams support is turned on (-m/--mermaid). If not specified, 'https://cdnjs.cloudflare.com/ajax/libs/mermaid/8.6.4/mermaid.min.js' will be downloaded.
119
89
### --open
120
90
Opens the PFD file after conversion. Great for development, not great in a build task.
121
-
### --filter
122
-
Filters the pages depending on the page [yaml tags](https://docs.microsoft.com/en-us/azure/devops/project/wiki/wiki-markdown-guidance?view=azure-devops#yaml-tags).
91
+
### -o / --output
92
+
The path to the export file including the filename, e.g. c:\export.pdf
93
+
### --organization
94
+
Azure Devops organization URL used to convert work item references to work item links. Ex: https://dev.azure.com/MyOrganizationName/
95
+
### -p / --path
96
+
Path to the wiki folder. If not provided, the current folder of the executable is used.
97
+
If you only want to convert a subfolder and have images, then you must provide the path to the attachments folder with --attachments-path.
98
+
### --pat
99
+
Personal access token used to access your Azure Devops Organization. If no token is provided
100
+
and organization and project parameters are provided, it will start a prompt asking you to login.
101
+
### --pathToHeading
102
+
Add path of the file to the header
103
+
### -s / --single
104
+
Path to a single markdown file to convert to PDF. If you want to write your changelog in the wiki, this is your parameter to only convert a single page.
105
+
-p parameter is required, too.
106
+
### -v / --verbose
107
+
Verbose mode. Logging will added to the console window
123
108
124
109
## 😲 Limitations
125
110
@@ -138,6 +123,17 @@ The tool uses Application Insights for basic telemetry:
138
123
- In the case of an error, the exception is submitted.
139
124
- No wiki data/content is submitted.
140
125
126
+
## FAQ
127
+
128
+
### Some pages are missing?
129
+
Please check the .order files in your wiki if the pages are listed in there.
130
+
131
+
### The emoticons are missing in the PDF?
132
+
Please check if you have page file that are encoded (e.g. Test%20dFiles.md)
133
+
134
+
### There is an error 'Qt: Could not initialize OLE (error 80010106)'.
135
+
Yes, please ignore for now.
136
+
141
137
## ♥ Thanks
142
138
143
139
In this tool uses open source libraries that do the actual work - I just combined them to get the export as PDF:
0 commit comments