Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ ALL_FILES = $(ALL_FILES_BUT_SITEMAP) $(DOC_OUTPUT_DIR)/sitemap.html
# Rulez
################################################################################

all : docs html
all : docs html tidy

docs-release: dmd-release druntime-release phobos-release apidocs-release
docs-prerelease: dmd-prerelease druntime-prerelease phobos-prerelease apidocs-prerelease
Expand Down Expand Up @@ -671,4 +671,20 @@ changelog/${NEXT_VERSION}.dd: | ${STABLE_DMD} ../tools ../installer
pending_changelog: changelog/${NEXT_VERSION}.dd html
@echo "Please open file:///$(shell pwd)/web/changelog/${NEXT_VERSION}_pre.html in your browser"

################################################################################
# HTML5 Tidy
################################################################################

TIDY=$G/tidy/build/cmake/tidy

$G/tidy/.cloned:
git clone --depth 1 https://github.com/htacg/tidy-html5 $G/tidy
echo 1 > $@

$(TIDY): $G/tidy/.cloned
(cd $G/tidy/build/cmake && echo "y" | ./build-me.sh)

tidy: $(TIDY) docs html
$(TIDY) -m $$(find web -type f -name "*.html")

.DELETE_ON_ERROR: # GNU Make directive (delete output files on error)