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

configure the theme #116

Closed
zhumj1 opened this issue Feb 7, 2023 · 7 comments
Closed

configure the theme #116

zhumj1 opened this issue Feb 7, 2023 · 7 comments

Comments

@zhumj1
Copy link

zhumj1 commented Feb 7, 2023

Do you have the option to configure the theme?

@ar2rsawseen
Copy link
Collaborator

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

@zhumj1
Copy link
Author

zhumj1 commented Feb 7, 2023

thank you

@xrui94
Copy link

xrui94 commented Mar 9, 2023

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
Copy link
Collaborator

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
Copy link

xrui94 commented Mar 10, 2023

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
Copy link
Collaborator

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

@xrui94
Copy link

xrui94 commented Jan 14, 2024

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

Yes,it is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants