MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
193 stars 65 forks source link

Use local temp folder to download chromium headless #124

Closed Zhaph closed 2 years ago

Zhaph commented 2 years ago

The current behaviour of the BrowserFetcher class tends to leave instances of the headless chromium browser in a .localchromium folder relative to the directory the application is called from.

This PR updates the BrowserFetcher to take a BrowserFetcherOptions that specifies a directory in the user's local temp folder.

I've also updated the Help text on the chromePath option to remove the statement about only used if the Mermaid switch is enabled as this is not true.

Fixes #121

MaxMelcher commented 2 years ago

Thanks @Zhaph!