Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Deletes htmlify targets refs #2996
  • Loading branch information
JJ committed Sep 1, 2019
1 parent 1470182 commit 3adf10d
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions Makefile
Expand Up @@ -9,41 +9,24 @@ SELINUX_OPT := $(shell [ $(DOCKER_SELINUX_LABEL) -eq 1 ] && echo "$(COL
LANG_POD6_SOURCE := $(wildcard doc/Language/*.pod6)
# Managing of the language index page
USE_CATEGORIES := True
# Value of disambiguation flag in htmlify
DISAMBIGUATE := True

.PHONY: html init-highlights html-nohighlight sparse assets webdev-build \
bigpage test xtest ctest help run clean-html clean-images \
clean-search clean test-links push \
gen-pod6-source clean-build \
docker-image docker-htmlify docker-test docker-xtest docker-ctest docker-testall docker-run
docker-image docker-test docker-xtest docker-ctest docker-testall docker-run

html: gen-pod6-source bigpage htmlify

htmlify: gen-pod6-source init-highlights assets
perl6 htmlify.p6 --manage=$(USE_CATEGORIES) --disambiguation=$(DISAMBIGUATE)

gen-pod6-source: $(LANG_POD6_SOURCE) doc/Language/00-POD6-CONTROL
perl6 util/manage-page-order.p6 update --manage=$(USE_CATEGORIES)
html: gen-pod6-source bigpage

init-highlights:
ATOMDIR="./highlights/atom-language-perl6"; \
if [ -d "$$ATOMDIR" ]; then (cd "$$ATOMDIR" && git pull); \
else git clone https://github.com/perl6/atom-language-perl6 "$$ATOMDIR"; \
fi; cd highlights; npm install .; npm rebuild

html-nohighlight: gen-pod6-source
perl6 htmlify.p6 --no-highlight --disambiguation=$(DISAMBIGUATE)

sparse:
perl6 htmlify.p6 --no-highlight --sparse=10 --disambiguation=$(DISAMBIGUATE)

assets:
./app.pl assets

webdev-build:
perl6 htmlify.p6 --no-highlight --sparse=200 --disambiguation=$(DISAMBIGUATE)

bigpage: gen-pod6-source
pod2onepage --html -v --source-path=./build --exclude=404.pod6 > html/perl6.html

Expand Down Expand Up @@ -78,7 +61,7 @@ help:
@echo " ctest: run the test suite, content tests only"
@echo " run: run the development webserver"
@echo "docker-image: build Docker image from Dockerfile"
@echo "docker-htmlify: generate the HTML documentation (in container)"

@echo "docker-test: run the test suite (in container)"
@echo "docker-xtest: run the test suite, including extra tests (in container)"
@echo "docker-ctest: run the test suite, content tests only (in container)"
Expand All @@ -94,10 +77,6 @@ run:
docker-image:
docker build -t $(DOCKER_IMAGE_NAME) .

docker-htmlify: docker-image docker-test
docker run --rm -it -v $(REPO_PATH):/perl6/doc/$(SELINUX_OPT) $(DOCKER_IMAGE_NAME) \
/bin/bash -c 'make html'

docker-test: docker-image
docker run --rm -it -v $(REPO_PATH):/perl6/doc/$(SELINUX_OPT) $(DOCKER_IMAGE_NAME) \
/bin/bash -c 'make test'
Expand Down

0 comments on commit 3adf10d

Please sign in to comment.