clenemt / docdash

:zap: Lodash inspired JSDoc 3 template/theme
http://clenemt.github.io/docdash/
Other
824 stars 201 forks source link

configure the theme #116

Closed zhumj1 closed 10 months ago

zhumj1 commented 1 year ago

Do you have the option to configure the theme?

ar2rsawseen commented 1 year ago

Hello, there is a "scripts": [] option where you can provide list of js and CSS files to load and override default values

zhumj1 commented 1 year ago

thank you

xrui94 commented 1 year ago

How to use the "scripts" option to configure theme? Is there a example? This is my jsdoc.json config file below, but it is not working. image

ar2rsawseen commented 1 year ago

Hello The usage is correct, and I think the problem is the relative path to the file If you look at the generated source code of the doc and find your script included there, what path does it have, and how is it relative to where your script actually is?

xrui94 commented 1 year ago

Hello The usage is correct, and I think the problem is the relative path to the file If you look at the generated source code of the doc and find your script included there, what path does it have, and how is it relative to where your script actually is?

Hi Thank you for your reply! Yes, my usage is correct. It is indeed the relative path error of the css file. When the browser accesses the "common.css" file, the browser reports a 404 error. I move the "common.css" file to the styles folder of the api document directory, it can work normally. image

ar2rsawseen commented 1 year ago

Hello, so just to confirm, the issue is resolved then? :)

xrui94 commented 10 months ago

Hello, so just to confirm, the issue is resolved then? :)

Yes,it is working.