You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The rest of this guide assumes you have installed Unidoc somewhere on your macOS host that is visible in your `PATH` and allows you to invoke it as `unidoc`.
47
-
48
-
49
45
## 3. Launching a `mongod` instance
50
46
51
47
Unidoc can configure a `mongod` instance for you through the `unidoc init` command. This tool takes a directory path as an argument, which it uses to persist the state of the database. In the example below, we will create the documentation database in a directory named `unidoc` in your home directory.
@@ -63,14 +59,16 @@ Please note that this will start a Docker container that runs continuously in th
63
59
64
60
## 3. Running `unidoc preview`
65
61
66
-
The `unidoc preview` tool is a simple web server that links and serves documentation for local Swift packages. Run it directly from your macOS host like this:
62
+
The `unidoc preview` tool is a simple web server that links and serves documentation for local Swift packages. Run it directly from the host like this:
67
63
68
64
```bash
69
65
unidoc preview
70
66
```
71
67
72
68
The `unidoc preview` tool will start a web server on [`http://localhost:8080`](http://localhost:8080).
73
69
70
+
Please note that to serve the necessary CSS and JavaScript the server expects to find the `Assets` directory in the current working directory. These resources are included in the `unidoc.tar.gz` archives, and if built from source, they are also available in the `swift-unidoc` repository.
0 commit comments