Skip to content

Commit

Permalink
fix a couple of docs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelMunoz committed Mar 9, 2024
1 parent 5154372 commit 3ac10bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/Navs.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ From there on, you can use the router to navigate to different parts of your app

(*** hide ***)
#r "nuget: Navs, 1.0.0-beta-004"
#r "nuget: FSharp.Data.Adaptive, 1.2.14"

open FSharp.Data.Adaptive
open System
open System.Threading
open System.Threading.Tasks
open UrlTemplates.RouteMatcher

Expand Down Expand Up @@ -247,6 +247,8 @@ Route.define<Page>(
(**
The UrlMatch property in the context has algo access to the QueryParams and the Hash of the URL that was matched for this route.
> For more information about extracting parameters from the URL, please refer to the [UrlTemplates Document section](./UrlTemplates.fsx).
## Guards
Guards are a way to prevent a route from being activated or deactivated. They run before any navigation is performed, the `Can Activate` guards run first followed by the `Can Deactivate` guards.
Expand Down
4 changes: 2 additions & 2 deletions docs/UrlTemplates.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ let statuses =

(*** hide ***)

printfn "%A{statuses}"
printfn $"%A{statuses}"
(*** include-output ***)


Expand All @@ -192,7 +192,7 @@ Console.WriteLine($"{values.Value[0]}, {values.Value[1]}");
// inactive, active
```
> ***Note:*** The `cref:T:UrlTemplates.RouteMatcher.UrlMatchModule.getParamSeqFromQuery` function and its extension method counterpart
> ***Note:*** The ``cref:M:UrlTemplates.RouteMatcher.UrlMatchModule.getParamSeqFromQuery`1`` function and its extension method counterpart
> does not guarantee that the values are in the same order as they were in the URL.
*)

0 comments on commit 3ac10bf

Please sign in to comment.