-
-
Notifications
You must be signed in to change notification settings - Fork 292
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 #5722 from lukewilliamboswell/website-update
More updates to wip site update
- Loading branch information
Showing
10 changed files
with
194 additions
and
100 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 |
---|---|---|
|
@@ -44,6 +44,9 @@ | |
}, | ||
{ | ||
"pattern": "https://liberapay.com/" | ||
}, | ||
{ | ||
"pattern": "*.html" | ||
} | ||
] | ||
} |
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
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
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
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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
# Documentation | ||
|
||
- Builtin Package <!-- link to builtins --> | ||
- Basic-CLI Platform <!-- link to docs --> | ||
Builtin Package - [docs](https://www.roc-lang.org/builtins) | ||
|
||
<!-- TODO Develop a Short language reference, move stuff out of tutorial e.g. de-sugaring table, keywords --> | ||
Basic-CLI Platform - [repo](https://github.com/roc-lang/basic-cli) - [docs](https://www.roc-lang.org/packages/basic-cli) | ||
|
||
## Guides | ||
|
||
- [Frequently Asked Questions](https://github.com/roc-lang/roc/blob/main/FAQ.md) | ||
- [Roc for Elm Programmers](https://github.com/roc-lang/roc/blob/main/roc-for-elm-programmers.md) | ||
[Frequently Asked Questions](https://github.com/roc-lang/roc/blob/main/FAQ.md) | ||
|
||
[Roc for Elm Programmers](https://github.com/roc-lang/roc/blob/main/roc-for-elm-programmers.md) | ||
|
||
## Language Reference | ||
|
||
<!-- TODO Develop a Short language reference, move stuff out of tutorial e.g. de-sugaring table, keywords --> | ||
|
||
|
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
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
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 |
---|---|---|
@@ -1,5 +1,33 @@ | ||
# Tutorial | ||
|
||
This is a placeholder page for the Roc tutorial. | ||
|
||
TODO move the tutorial here from `../generate_tutorial/src/input/tutorial.roc` | ||
This tutorial will teach you how to build Roc applications. Along the way, you'll learn how to write tests, use the REPL, and much more! | ||
|
||
## [Strings and Numbers](#strings-and-numbers) {#strings-and-numbers} | ||
|
||
Let's start by getting acquainted with Roc's [_Read-Eval-Print-Loop_](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop), or **REPL** for short. Run this in a terminal: | ||
|
||
<code class="block">roc repl</code> | ||
|
||
If Roc is [installed](#installation), you should see this: | ||
|
||
<pre><samp>The rockin’ roc repl</samp></pre> | ||
|
||
So far, so good! | ||
|
||
### [Hello, World!](#hello-world) {#hello-world} | ||
|
||
Try typing this in the REPL and pressing Enter: | ||
|
||
<samp class="repl-prompt">"Hello, World!"</samp> | ||
|
||
The REPL should cheerfully display the following: | ||
|
||
<pre><samp><span class="literal">"Hello, World!" </span><span class="colon">:</span> Str <span class="comment"> # val1</span></samp></pre> | ||
|
||
Congratulations! You've just written your first Roc code. | ||
|
||
### [Naming Things](#naming-things) {#naming-things} | ||
|
||
When you entered the _expression_ `"Hello, World!"`, the REPL printed it back out. It also printed `: Str`, because `Str` is that expression's type. We'll talk about types later; for now, let's ignore the `:` and whatever comes after it whenever we see them. | ||
|
||
**TODO -- move tutorial here when this site is migrated.** |
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
Oops, something went wrong.