--config option does not accept relative path
See original GitHub issueHello
I have a doc repo structure like:
RepoFolderRoot
├───doc1
│ doc1.md
│ doc1.pdf
│
├───doc2
│ │ doc2.md
│ │ doc2.pdf
│
├───generate_pdf
│ │ config.json
│ │ mystyle.css
I tried to launch the md2pdf command from the root folder (for scripting) by trying:
md2pdf --config-file .\generate-pdf\config.json .\doc1\doc1.md
or
md2pdf --config-file generate-pdf\config.json .\doc1\doc1.md
or
md2pdf --config-file \generate-pdf\config.json .\doc1\doc1.md
And I always got aWarning: couldn't read config file: \generate-pdf\config.json
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Config property `parserOptions.project` relative path resolving
When using a relative parserOptions.project path, I've found that the path is not relative to the config file (e.g. .eslintrc.js ) referencing ...
Read more >Unable to select correct relative path for accessing a config file
You have 2 options: 1. read-only properties. Use this approach if these are some internal properties the user should not be able to...
Read more >Configure relative paths
A relative path binds policies to a specific relative path location (for example /test/path ). When the API Gateway receives a request on...
Read more >Configuration Reference - Astro Documentation
The following reference covers all supported configuration options in Astro. ... The value can be either an absolute file system path or a...
Read more >Documentation - Module Resolution - TypeScript
Use non-relative paths when importing any of your external dependencies. Module Resolution Strategies. There are two possible module resolution strategies: Node ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
😃 Sure. I will use it in a more scripted way very soon. If I think about ant improvement, I’ll let you know.
Thanks!
Hi
The relative path changed… it used to consider the relative path from the execution path, now, it considers relative path from the MD file.
It used to work with:
when executed from c:\RepoFolderRoot\
Error is:
and now works with…
It is not very convenient for me, as my stylesheet lifecyle is different from doc lifecycle, and I’m not the only one to use this repo (and of course, all of us do not have the same folder organisation…)