Skip to content

Commit

Permalink
Require Inko 0.15.0 or newer
Browse files Browse the repository at this point in the history
Changelog: other
  • Loading branch information
yorickpeterse committed May 22, 2024
1 parent 086ccf8 commit 0affa04
Show file tree
Hide file tree
Showing 12 changed files with 513 additions and 478 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/inko-lang/inko:latest
image: ghcr.io/inko-lang/inko:main
steps:
- run: microdnf install --quiet --assumeyes tar git
- uses: actions/checkout@v4
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ inko pkg sync
To get started, create `src/main.inko` with the following contents:

```inko
import wobsite.Site
import wobsite (Site)
class async Main {
fn async main {
Site.build fn (site) {
Site.build(fn (site) {
}
})
}
}
```
Expand Down Expand Up @@ -57,13 +57,13 @@ To build the site, you can use the following methods on the `Site` type:
For example:

```inko
import wobsite.Site
import wobsite (Site)
class async Main {
fn async main {
Site.build fn (site) {
Site.build(fn (site) {
site.copy('*.css')
}
})
}
}
```
Expand All @@ -78,15 +78,15 @@ becomes `public/css/icons.css`).
Generating an HTML file from a Markdown file is a little more involved:

```inko
import wobsite.(Site, Page)
import wobsite (Site, Page)
class async Main {
fn async main {
Site.build fn (site) {
site.page('/index.md', index: false) fn {
Site.build(fn (site) {
site.page('/index.md', index: false, builder: fn {
recover fn (_, page: Page) { Result.Ok(page.to_html([])) }
}
}
})
})
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions inko.pkg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require https://github.com/yorickpeterse/inko-builder 0.11.0 ae7b8cf3476dfc401408c493bd6d795bd0ac3ab2
require https://github.com/yorickpeterse/inko-markdown 0.15.0 48cf0e8276522870a601f857f672c5a11c5eda37
require https://github.com/yorickpeterse/inko-syntax 0.8.0 4cb4686afca3b6be54f4f42de59198f27b5673c2
require https://github.com/yorickpeterse/inko-builder 0.12.0 dfb7877ca9dec2109b0fa940190c210dd3fe4059
require https://github.com/yorickpeterse/inko-markdown 0.16.0 e6d26dd94bd44cdd24fb8a159caa949cfe82891f
require https://github.com/yorickpeterse/inko-syntax 0.9.0 c1a94c3ed62ff4f996d267fc320707a5869a1799
Loading

0 comments on commit 0affa04

Please sign in to comment.