-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
what's the most robust way of importing the default CSS from an html static page? #3661
Comments
Hi, Everything you put in /static will be hosted So if you have /static/myPage.html, and /static/css/myCss.css You can load "/${baseUrl}/css/myCss.css", or preferably using a relative path like "css/myCss.css" (more easy to change your baseUrl, as HTML files are static) We don't process anything from this folder, content is published as-is, Docusaurus does not really have anything to do with that |
thanks for the reply @slorber |
The CSS file loaded by the classic theme is |
📚 Documentation
It's unclear what would be the preferred way of importing the default CSS from an html static page.
I have the need to host static
.html
pages in the/static
folder and would like to style them like the rest of the docusarus website.In docusaurus v1 it was possible to access it at
${baseUrl}css/main.css
.How should it be done in v2?
Have you read the Contributing Guidelines on issues?
yes
The text was updated successfully, but these errors were encountered: