Преглед на файлове

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 \
     $ docker run --rm -it \
         -u $(id -u):$(id -g) \
         -u $(id -u):$(id -g) \
         -v $(pwd):/workspace \
         -v $(pwd):/workspace \
+        -p 7998:7998 \
         fa-builder
         fa-builder
 
 
 Within the container, build the font:
 Within the container, build the font:
@@ -108,6 +109,10 @@ Within the container, build the font:
     $ npm ci
     $ npm ci
     $ make -C src/icons
     $ 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 -->
 <!--- reference links for badges -->
 
 
 [all-contrib]: https://img.shields.io/badge/all_contributors-128-orange.svg "All Contributors badge"
 [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
 safe:             false
 port:             7998
 port:             7998
-url:              http://localhost:7998
+host: 0.0.0.0
+url:              http://0.0.0.0:7998
 
 
 source:           src/doc/
 source:           src/doc/
 destination:      _site
 destination:      _site