Files
releases/docs/Makefile
T
Stephan Renatus aa03444888 website: misc smaller improvements (#4092)
* remove empty bottom-left block
* add "Contributing" to mobile nav
* add "Support" section to mobile nav
* make "Support" link relative in sidebar
* add "Discussions" social icon + titles

Now, something shows up when you hover over the social button. I hope
this improves a11y.

Had to bump the font awesome version for another icon I tried, figured
I'd just keep the bump anyways.

Includes some `config.yaml` removals because I couldn't see where they had
been used.

* docs/Makefile: add netlify-cli --dir argument

Without it, I'd run into some weird problem with netlify assuming the
website was built with cecil, and complaining it couldn't find its
binary.

With the `--dir` argument, everything seems to work like it did before.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2021-12-06 21:38:39 +01:00

72 lines
1.8 KiB
Makefile

DEPLOY_PRIME_URL ?= "http://localhost:8888"
######################################################
#
# Development targets
#
######################################################
.PHONY: clean
clean:
rm -rf ${CURDIR}/website/data/releases.yaml
rm -rf $(CURDIR)/website/generated
rm -rf $(CURDIR)/website/public
rm -rf $(CURDIR)/website/resources
.PHONY: generate
generate:
$(CURDIR)/website/scripts/load-docs.sh
# The website has some npm dependencies saved in ./website/node_modules
# As well as dependencies required for the "live-blocks".
# Use this target to update them as needed.
.PHONY: install-deps
install-deps: live-blocks-install-deps
npm install
# The live-blocks-% pattern target will shim to the
# npm scripts in ./website/scripts/live-blocks
.PHONY: live-blocks-%
live-blocks-%:
cd $(CURDIR)/website/scripts/live-blocks && npm run $*
.PHONY: serve-local
serve-local: production-build
# must be run from root of repo for
# the netlify.toml config to work
cd $(CURDIR)/.. && netlify dev --offline --dir $(CURDIR)/website/public
.PHONY: serve-remote
serve-remote: production-build
# must be run from root of repo for
# the netlify.toml config to work
cd $(CURDIR)/.. && netlify deploy
######################################################
#
# CI targets
#
######################################################
.PHONY: hugo-production-build
hugo-production-build:
hugo \
--source $(CURDIR)/website \
--contentDir generated \
--ignoreCache \
--minify
.PHONY: production-build
production-build: clean generate hugo-production-build live-blocks-inject
.PHONY: preview-build
preview-build:
hugo \
--source $(CURDIR)/website \
--contentDir generated \
--baseURL $(DEPLOY_PRIME_URL) \
--buildDrafts \
--buildFuture \
--ignoreCache
make live-blocks-inject