Skip to content

Commit 876896f

Browse files
Stefano RodighieroStefano Rodighiero
authored andcommitted
some tweaks to the docs
1 parent a428517 commit 876896f

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

notebooks/rando-planner.clj

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
^{:nextjournal.clerk/visibility {:code :hide}}
22
(ns notebooks.rando-planner
3+
{:nextjournal.clerk/toc true}
34
(:require [rando-planner.gpx :as gpx]
45
[rando-planner.plan :as plan]
56
[rando-planner.diagram :as diagram]
67
[rando-planner.leaflet :as leaflet]
78
[nextjournal.clerk :as clerk]))
89

910

10-
;; #### Custom viewers for [Clerk](https://github.com/nextjournal/clerk) for planning multi-day bike routes
11-
1211
^{:nextjournal.clerk/visibility {:code :hide}}
1312
(clerk/image "rando-planner-index.png")
1413

1514
;; # [rando-planner](https://github.com/larsen/rando-planner) 🚲
1615

16+
;; Custom viewers for [Clerk](https://github.com/nextjournal/clerk) for planning multi-day bike routes
17+
1718
^{:nextjournal.clerk/visibility {:code :hide}}
1819
(let [example-plan {:gpx "gpx/be-rostock.gpx"
1920
:average-speed 20
@@ -27,11 +28,9 @@
2728
{:start "16:00" :type :ride :length 2.5}]}]}]
2829
(merge
2930
{:nextjournal/width :full}
30-
(clerk/row
31-
(clerk/col
32-
(clerk/with-viewer diagram/elevation-viewer example-plan))
33-
(clerk/col
34-
(clerk/with-viewer diagram/plan-viewer example-plan)))))
31+
(clerk/col
32+
(clerk/with-viewer diagram/elevation-viewer example-plan)
33+
(clerk/with-viewer diagram/plan-viewer example-plan))))
3534

3635

3736
;; When planning a long-distance bike ride, you face two main
@@ -289,3 +288,17 @@ be morale-crushing."]])
289288
;; - `:start`: This key denotes the starting time of an activity, in the format "HH:mm"
290289
;; - `:type`: This key specifies the type of activity. At the moment only the type "ride" is in use. This key is reserved for future uses
291290
;; - `:length`: This key represents the duration or length of the activity, expressed in hours. It is expected to be a numerical value.
291+
292+
;; ## Available visualizers
293+
294+
;; ### Elevation viewer
295+
296+
(clerk/with-viewer diagram/elevation-viewer equally-split-plan-with-pauses)
297+
298+
;; ### Leaflet GPX viewer
299+
300+
(clerk/with-viewer leaflet/leaflet-gpx-viewer equally-split-plan-with-pauses)
301+
302+
;; ### Plan viewer
303+
304+
(clerk/with-viewer diagram/plan-viewer equally-split-plan-with-pauses)

0 commit comments

Comments
 (0)