-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from whatacold/get-started-demo-file
use demo.clj instead of slides.clj for getting started demo.
- Loading branch information
Showing
2 changed files
with
25 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(ns demo) | ||
|
||
;; This file merely shows how to use a Clojure file to write docs in Clay, | ||
;; with no additional dependencies required. | ||
|
||
;; # This Is a H1 Title | ||
;; ## And a H2 Title | ||
;; Here, we can write comments in [Markdown](https://en.wikipedia.org/wiki/Markdown) format, | ||
;; and normal Clojure code along the side, | ||
;; both of which and the evaluated results of the code will show up in the redendered docs. | ||
|
||
;; Below are a few simple examples: | ||
|
||
(+ 1 2) | ||
|
||
(str "Hello, " "Clay!") | ||
|
||
(defn greet [name] | ||
(str "Hello, " name "!")) | ||
|
||
(greet "Clay") |
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