Skip to content

Commit 59b2595

Browse files
committed
correct root argument for express static
1 parent fa20c93 commit 59b2595

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/assets/docusaurus.png

5.02 KB
Loading

docs/getting-started-installation.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ id: installation
33
title: Installation
44
---
55

6+
![docusaurus](/docs/assets/docusaurus.png)
7+
68
Docusaurus was designed from the ground up to be easily installed and used to get your website up and running quickly. To install Docusaurus, we have created an easy script that will get all of the infrastructure set up for you:
79

810
1. Ensure you have the latest version of [Node](https://nodejs.org/en/download/) installed. We also recommend you install [Yarn](https://yarnpkg.com/en/docs/install) as well.

lib/server/server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,11 @@ function execute(port) {
516516

517517
// serve static assets from these locations
518518
app.use(
519-
join(siteConfig.baseUrl, 'docs', 'assets'),
519+
`${siteConfig.baseUrl}${readMetadata.getDocsPath()}/assets/`,
520520
express.static(join(CWD, '..', readMetadata.getDocsPath(), 'assets'))
521521
);
522522
app.use(
523-
join(siteConfig.baseUrl, 'blog', 'assets'),
523+
`${siteConfig.baseUrl}blog/assets/`,
524524
express.static(join(CWD, 'blog', 'assets'))
525525
);
526526
app.use(siteConfig.baseUrl, express.static(join(CWD, 'static')));

0 commit comments

Comments
 (0)