Skip to content

Commit

Permalink
Add docker build (dbuild) script
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena committed Sep 3, 2021
1 parent 96dc98b commit f5fd6ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ You can check this locally and install with Docker.
```bash
git clone https://github.com/decidim/documentation
cd documentation
docker run -u $(id -u) -e DOCSEARCH_ENABLED=true -e DOCSEARCH_ENGINE=lunr -v $PWD:/antora:Z --rm -t antora/antora --generator antora-site-generator-lunr antora-playbook.yml
./bin/dbuild
xdg-open build/site/index.html
```
4 changes: 4 additions & 0 deletions bin/dbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/env bash

docker run -u $(id -u) -e DOCSEARCH_ENABLED=true -e DOCSEARCH_ENGINE=lunr -v $PWD:/antora:Z --rm -t antora/antora --generator antora-site-generator-lunr --cache-dir=./.cache/antora antora-playbook.yml $@

0 comments on commit f5fd6ed

Please sign in to comment.