-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conscript,docs: how tos for anchor and payment display
- Loading branch information
1 parent
63c6726
commit ab79ae6
Showing
3 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#lang conscript | ||
|
||
(require conscript/survey-tools) | ||
|
||
(provide | ||
how-tos) | ||
|
||
(defstep (start) | ||
@md{ | ||
@button[#:to-step-id 'links]{How to add links} | ||
|
||
@button[#:to-step-id 'payments]{How to display payments} | ||
}) | ||
|
||
(defstep (links) | ||
@md{# Links | ||
|
||
A link to the @a[#:href "https://docs.totalinsightmanagement.com/Conscript_Tutorial.html"]{Conscript Tutorial}. | ||
|
||
Sometimes you want a link to open in a new tab, so you provide the attribute `target` with the value `"_blank"`: | ||
|
||
@a[ | ||
#:href "https://docs.totalinsightmanagement.com/Conscript_Tutorial.html" | ||
#:target "_blank" | ||
]{Open conscript tutorial in new tab} | ||
|
||
@button{Next}}) | ||
|
||
(define (payments) | ||
(define bonus 4.25) | ||
@md{# Bonus | ||
|
||
Your bonus is @(~$ bonus). | ||
|
||
@button{Next} | ||
}) | ||
|
||
(defstudy how-tos | ||
[start --> start] | ||
[links --> start] | ||
[payments --> start]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters