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

htmlTemplate option in .redocly.yaml file is ignored when using "preview-docs" #121

Closed
Bahus opened this issue Apr 19, 2020 · 0 comments
Closed
Labels
good first issue Good for newcomers Type: Bug Something isn't working

Comments

@Bahus
Copy link

Bahus commented Apr 19, 2020

Hi, when trying to insert some images into rendered preview I found out that htmlTemlate parameter can't be passed nether through .redocly.yaml nor command line parameters:

https://github.com/Redocly/openapi-cli/blob/989d6e3b6ccbba2d6779e544abc1780cc6df14ad/src/cli/index.js#L223-L229

( htmlTemplate parameter is never passed to startPreviewServer call )

Thus when I insert image link into a description, preview server tries to find it inside node_modules/@redocly/openapi-cli/dist/preview-docs/ instead of a folder where my custom html template is located.

My question is: what is a correct way to insert images into locally rendered preview? Thank you.

@adamaltman adamaltman added Type: Bug Something isn't working good first issue Good for newcomers labels Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants