Merge pull request #24475 from sftim/20201010_docker_mac_compatibility
Update local Hugo development target
This commit is contained in:
@@ -65,10 +65,10 @@ container-image:
|
|||||||
--build-arg HUGO_VERSION=$(HUGO_VERSION)
|
--build-arg HUGO_VERSION=$(HUGO_VERSION)
|
||||||
|
|
||||||
container-build: module-check
|
container-build: module-check
|
||||||
$(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo --minify
|
$(CONTAINER_RUN) --read-only $(CONTAINER_IMAGE) hugo --minify
|
||||||
|
|
||||||
container-serve: module-check
|
container-serve: module-check
|
||||||
$(CONTAINER_RUN) --mount type=tmpfs,destination=/src/resources,tmpfs-mode=0777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0
|
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir
|
||||||
|
|
||||||
test-examples:
|
test-examples:
|
||||||
scripts/test_examples.sh install
|
scripts/test_examples.sh install
|
||||||
|
|||||||
+17
@@ -33,6 +33,23 @@ enableGitInfo = true
|
|||||||
# Hindi is disabled because it's currently in development.
|
# Hindi is disabled because it's currently in development.
|
||||||
disableLanguages = ["hi", "no"]
|
disableLanguages = ["hi", "no"]
|
||||||
|
|
||||||
|
[caches]
|
||||||
|
[caches.assets]
|
||||||
|
dir = ":cacheDir/_gen"
|
||||||
|
maxAge = -1
|
||||||
|
[caches.getcsv]
|
||||||
|
dir = ":cacheDir/:project"
|
||||||
|
maxAge = "60s"
|
||||||
|
[caches.getjson]
|
||||||
|
dir = ":cacheDir/:project"
|
||||||
|
maxAge = "60s"
|
||||||
|
[caches.images]
|
||||||
|
dir = ":cacheDir/_images"
|
||||||
|
maxAge = -1
|
||||||
|
[caches.modules]
|
||||||
|
dir = ":cacheDir/modules"
|
||||||
|
maxAge = -1
|
||||||
|
|
||||||
[markup]
|
[markup]
|
||||||
[markup.goldmark]
|
[markup.goldmark]
|
||||||
[markup.goldmark.extensions]
|
[markup.goldmark.extensions]
|
||||||
|
|||||||
Reference in New Issue
Block a user