Skip to content

Commit

Permalink
(minor) shorter code snippets for PDF
Browse files Browse the repository at this point in the history
for #509
  • Loading branch information
vindarel committed Dec 31, 2023
1 parent ff32c63 commit 206b89c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions STYLEGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ This snippet...

If the result is large, use another code block, without comments.

- lines should not exceed 64 characters, otherwise the PDF will truncate them and show an horizontal scrollbar.


## EPUB gotchas

### Embedded content
Expand Down
2 changes: 1 addition & 1 deletion getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Another solution is to use ASDF's list of known projects:

~~~lisp
;; startup file like ~/.sbclrc
(pushnew "~/path-to/project/" asdf:*central-registry* :test #'equal)
(pushnew "~/to/project/" asdf:*central-registry* :test #'equal)
~~~

and since ASDF is integrated into Quicklisp, we can `quickload` our project right away.
Expand Down
8 changes: 4 additions & 4 deletions websockets.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ that the connection has been made. Here's how it works:
(lambda (responder)
(declare (ignore responder))
(websocket-driver:start-connection ws)))) ; send the handshake
;; Send the handshake:
(websocket-driver:start-connection ws))))
~~~

You may now start your server, running on port `12345`:

~~~lisp
;; keep the handler around so that you can stop your server later on
;; Keep the handler around so that
;; you can stop your server later on:
(defvar *chat-handler* (clack:clackup #'chat-server :port 12345))
~~~

Expand Down

0 comments on commit 206b89c

Please sign in to comment.