Files
website/Makefile
Dean Sallinen 3c830c3f6c Add Documentation (#47)
* first pass at custom docs

* comparison to markdoc

* Updated editor configuration files

* add plugins for table of contents

* Changed to default from editor-configs

* reformat world

* Formatting for everything

* More world formatting

* fix 500 error on reload

* finish merge

* add flexible docs sections

* add sort order for documentation sections

* update docs styling

* add article filter

* fix lockfile

* add responsive navigation on mobile

* fix toc column

* fix collapse icon

* center images

* fix element semantics

* add keyboard shortcuts to filter

* add support for breadcrumbs

* documentation styling

* move testing docs

* integrate docs repo

* remove testing docs

* fix table layouts for few columns

* add styling to all docs pages

* modify routing

* enable ssr for documentation

* update docs

* fix formatting for long strings in code blocks

* sticky toc

* render toc server side

* fix bad urls

* temporarily revert to ua defined margins

* fix mobile layout

* update spacing for mobile

* Updated submodule

* add page title to toc

* add seo description and title for doc pages

* add section landing pages

* update layout and spacing

* fix accidental collapse

* source github commits for update log

---------

Co-authored-by: Aaron Cox <aaron@greymass.com>
2023-06-14 10:31:14 -07:00

47 lines
923 B
Makefile

SRC_FILES := $(shell find src -type f)
BIN := ./node_modules/.bin
.EXPORT_ALL_VARIABLES:
REV := $(shell git rev-parse --short HEAD)
BRANCH := $(shell git branch --show-current)
build: $(SRC_FILES) node_modules package.json svelte.config.js tsconfig.json yarn.lock
@echo "Starting build of $(BRANCH)-$(REV)"
@${BIN}/vite build || (rm -rf build && exit 1)
.PHONY: dev
dev: node_modules
@${BIN}/vite dev
.PHONY: preview
preview: build
@${BIN}/vite preview
.PHONY: check
check: node_modules
@${BIN}/svelte-check
@${BIN}/prettier -c src
.PHONY: format
format: node_modules
@${BIN}/prettier -w .
.PHONY: test
test: node_modules
@${BIN}/playwright test
.PHONY: test-ci
test-ci: node_modules
@${BIN}/playwright test --reporter github
node_modules:
yarn install --non-interactive --frozen-lockfile
.PHONY: clean
clean:
rm -rf build/ dist/ workers-site/
.PHONY: distclean
distclean: clean
rm -rf node_modules/