Skip to content

Add a simple maintenance page #3459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions maintenance.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Ddoc

$(DIV class="center-children",
$(D_S $(TITLE),

$(HTMLTAG3 img, src="$(STATIC images/dman-scared.jpg)")

$(P
Please check back later.
)))

Macros:
TITLE=The website is under maintenance!
EXTRA_HEADERS=$(T style,
.center-children, h1 { text-align: center; }
img { max-width: 100%; }
)
5 changes: 4 additions & 1 deletion posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ ARTICLE_FILES=$(addprefix articles/, index builtin code_coverage const-faq \
# Website root filenames. They have extension .dd in the source
# and .html in the generated HTML. Save for the expansion of
# $(SPEC_ROOT), the list is sorted alphabetically.
PAGES_ROOT=$(SPEC_ROOT) 404 acknowledgements areas-of-d-usage $(ARTICLE_FILES) \
PAGES_ROOT=$(SPEC_ROOT) maintenance 404 acknowledgements areas-of-d-usage $(ARTICLE_FILES) \
ascii-table bugstats $(CHANGELOG_FILES) community comparison concepts \
deprecate dmd dmd-freebsd dmd-linux dmd-osx dmd-windows \
documentation download dstyle forum-template gpg_keys glossary \
Expand Down Expand Up @@ -471,6 +471,9 @@ $W/spec/%.html : spec/%.dd $(SPEC_DDOC) $(DMD) $(DDOC_BIN)
$W/404.html : 404.dd $(DDOC) $(DMD)
$(DMD) -conf= $(DDOCFLAGS) -Df$@ $(DDOC) errorpage.ddoc $<

$W/maintenance.html : maintenance.dd $(DDOC) $(DMD)
$(DMD) -conf= $(DDOCFLAGS) -Df$@ $(DDOC) $<

$(DOC_OUTPUT_DIR)/foundation/contributors.html: foundation/contributors.dd \
$G/contributors_list.ddoc foundation/foundation.ddoc $(DDOC) $(DMD)
$(DMD) -conf= $(DDOCFLAGS) -Df$@ $(DDOC) $(word 2, $^) $(word 3, $^) $<
Expand Down