Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

them - solarized dark - as suggested in your documentation causes error #6

Closed
inspiraller opened this issue Sep 26, 2022 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@inspiraller
Copy link

Your documentation themes do not work for me and solarized dark causes an actual error

The --highlight-style option can receive the name of a Hightlight.js style (file name without extension, e.g. solarized-dark) or the path to a custom style file (a local path or a HTTP URL).

docs@1.0.0 mdtodoc
mdtodoc markdownfiles/*.md --dest dist --theme github --highlight-style solarized-dark --layout layout/custom-layout.html

Error: Invalid highlight style 'solarized-dark': file not found or not readable.
at Style.validate (file:///C:/site/docs/node_modules/markdown-to-document/src/style.js:177:13)
at async Style.loadHighlightStyle (file:///C:/site/docs/node_modules/markdown-to-document/src/style.js:160:19)
at async Style.init (file:///C:/site/node_modules/markdown-to-document/src/style.js:77:28)
at async Processor.process (file:///C:/site/docs/node_modules/markdown-to-document/src/processor.js:63:5)

@GaelGirodon
Copy link
Owner

GaelGirodon commented Sep 26, 2022

Only highlight styles located at the root of the styles/ directory of Hightlight.js can be provided without a full path: https://www.jsdelivr.com/package/npm/highlight.js?path=styles. It seems that solarized-dark has been moved to the subfolder base16/ in a later version of Highlight.js. So you can:

@GaelGirodon GaelGirodon added bug Something isn't working documentation Improvements or additions to documentation labels Sep 26, 2022
@GaelGirodon GaelGirodon self-assigned this Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants