Skip to content

Commit d3c68f2

Browse files
committed
feat: add make docs that generate docs with staple
1 parent 857fa15 commit d3c68f2

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.fasl
22
system-index.txt
33
lisp-inference
4+
docs/

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ check:
1818
server:
1919
@$(SBCL_CMD) run-server.lisp
2020

21+
docs:
22+
rm -rf docs/ || true
23+
@$(SBCL_CMD) run-docs.lisp
24+
2125
docker-build:
2226
docker build -t $(DOCKER_IMG) .
2327

@@ -38,4 +42,4 @@ docker-publish: docker-build
3842
deploy: docker-publish
3943
ssh starfox bash /home/lerax/Deploy/logic.sh
4044

41-
.PHONY: check docker-build
45+
.PHONY: check docker-build docs

run-docs.lisp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(load "fix-quicklisp")
2+
;; auto generate docs with staple
3+
(ql:quickload '(:staple :lisp-inference) :silent t)
4+
(staple:generate :lisp-inference :if-exists nil)
5+
(format t "Docs generated at docs/ directory.~%")
6+
(sb-ext:exit :code 0)

0 commit comments

Comments
 (0)