瀏覽代碼

enable dev site from container

Thomas Clavier 1 年之前
父節點
當前提交
2e6f0de631
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 5 0
      README.md
  2. 2 1
      _config.yml

+ 5 - 0
README.md

@@ -101,6 +101,7 @@ Then, run the Docker container:
     $ docker run --rm -it \
         -u $(id -u):$(id -g) \
         -v $(pwd):/workspace \
+        -p 7998:7998 \
         fa-builder
 
 Within the container, build the font:
@@ -108,6 +109,10 @@ Within the container, build the font:
     $ npm ci
     $ make -C src/icons
 
+Build the web documentation and serve it on a local server on http://localhost:7998:
+
+    $ npm run dev
+
 <!--- reference links for badges -->
 
 [all-contrib]: https://img.shields.io/badge/all_contributors-128-orange.svg "All Contributors badge"

+ 2 - 1
_config.yml

@@ -1,6 +1,7 @@
 safe:             false
 port:             7998
-url:              http://localhost:7998
+host: 0.0.0.0
+url:              http://0.0.0.0:7998
 
 source:           src/doc/
 destination:      _site