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
Copy file name to clipboardExpand all lines: README.md
+24-11
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,30 @@ Keep track of development news:
20
20
21
21
Unless you wish to contribute to the project, we recommend using the hosted version at [devdocs.io](https://devdocs.io). It's up-to-date and works offline out-of-the-box.
22
22
23
+
### Using Docker (Recommended)
24
+
25
+
The easiest way to run DevDocs locally is using Docker:
26
+
27
+
```sh
28
+
docker run --name devdocs -d -p 9292:9292 ghcr.io/freecodcamp/devdocs:latest
29
+
```
30
+
31
+
This will start DevDocs at [localhost:9292](http://localhost:9292). We provide both regular and Alpine-based images:
32
+
-`ghcr.io/freecodcamp/devdocs:latest` - Standard image
DevDocs is made of two pieces: a Ruby scraper that generates the documentation and metadata, and a JavaScript app powered by a small Sinatra app.
24
48
25
49
DevDocs requires Ruby 3.3.0 (defined in [`Gemfile`](./Gemfile)), libcurl, and a JavaScript runtime supported by [ExecJS](https://github.com/rails/execjs#readme) (included in OS X and Windows; [Node.js](https://nodejs.org/en/) on Linux). Once you have these installed, run the following commands:
@@ -38,17 +62,6 @@ The `thor docs:download` command is used to download pre-generated documentation
38
62
39
63
**Note:** there is currently no update mechanism other than `git pull origin main` to update the code and `thor docs:download --installed` to download the latest version of the docs. To stay informed about new releases, be sure to [watch](https://github.com/freeCodeCamp/devdocs/subscription) this repository.
40
64
41
-
Alternatively, DevDocs may be started as a Docker container:
0 commit comments