Skip to content

Commit

Permalink
Update The Build Docs Script To Make It Easier To Use Next Time
Browse files Browse the repository at this point in the history
  • Loading branch information
vthg2themax committed Jun 8, 2024
1 parent a76db44 commit c5c8d81
Show file tree
Hide file tree
Showing 53 changed files with 35 additions and 12,772 deletions.
24 changes: 12 additions & 12 deletions docs/en/docs/syntax/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,26 @@ You can also use the Display filter to do things like format a date, or a UUID.

=== "Template"

```
<span><%= chrono::NaiveDate::from_ymd_opt(2015, 9, 5).unwrap().and_hms_opt(23, 56, 4).unwrap().format("around %l %p on %b %-d") | disp %></span>
```
```rhtml
<span><%= chrono::NaiveDate::from_ymd_opt(2015, 9, 5).unwrap().and_hms_opt(23, 56, 4).unwrap().format("around %l %p on %b %-d") | disp %></span>
```

=== "Result"

```
<span>around 11 PM on Sep 5</span>
```
```html
<span>around 11 PM on Sep 5</span>
```

- Easily Display A UUID

=== "Template"

```
<span><%= uuid::Uuid::new_v4().urn() | disp %></span>
```
```rhtml
<span><%= uuid::Uuid::new_v4().urn() | disp %></span>
```

=== "Result"

```
<span>urn:uuid:c3602585-a9a1-43f5-b0e6-8bc05d5444dd</span>
```
```html
<span>urn:uuid:c3602585-a9a1-43f5-b0e6-8bc05d5444dd</span>
```
2 changes: 1 addition & 1 deletion docs/en/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ site_author: "Ryohei Machida"
# site_url: 'https://***.com'

# Copyright
copyright: "&copy; 2020 Ryohei Machida"
copyright: "&copy; 2024 Ryohei Machida"

# Repository
repo_name: "rust-sailfish/sailfish"
Expand Down
Loading

0 comments on commit c5c8d81

Please sign in to comment.