Adds more documentation for the guide/ section on the Lute website#884
Adds more documentation for the guide/ section on the Lute website#884Vighnesh-V wants to merge 3 commits intoprimaryfrom
Conversation
annieetang
left a comment
There was a problem hiding this comment.
thanks for writing this! will be super valuable to have on the site.
are the pages under dev-tooling intended to replace the CLI reference? if not, are there duplicate information that we can cut down and could we link them together? if dev-tooling/lute-lint can have a hyperlink or a section pointing users to the lute lint CLI reference if they're interested in learning more, etc. (same with the other tooling, and anything in the other pages that readers could read more about)
also it would be nice if we could split this pr up a bit, it's pretty dense and I think we could add these to the site in parts 😅
docs/guide/dev-tooling/lute-lint.md
Outdated
| - TODO: add linter format documentation | ||
| - TODO: add explanation of how / where to add custom rules |
There was a problem hiding this comment.
shld this be commented out?
There was a problem hiding this comment.
I actually want to leave the TODO's here as artifacts for what our documentation is missing.
There was a problem hiding this comment.
oh ok can we write like "In progress..." or "Check back soon" something so it's a little more formal
| order: 5 | ||
| --- | ||
|
|
||
| # Writing Tests |
There was a problem hiding this comment.
should the "Writing Tests" section be underneath "Developer Tooling / Lute Test"? or if we could mention this section in the Lute Test page so anyone reading can know where to find examples / how to write the tests
There was a problem hiding this comment.
I think this should be it's own section as it's a tutorial on how to actually use the standard library to write tests (and it's related to the previous section). I'll link it.
|
|
||
| As mentioned [here](../dev-tooling/index.md), `lute` comes with a builtin utility for discovering and running tests. In this chapter we'll see how you can write tests against this framework and execute them. This can help you improve your confidence in the correctness of your code. We'll look at how we could test the code from the guessing game chapter, specifically the code that handles argument parsing. | ||
|
|
||
| To get started, set up a project structure that has these files: |
There was a problem hiding this comment.
Could we have some subheadings for the different phases and examples? would be a little easier to read and re-reference
| --- | ||
|
|
||
| # Snapshot Testing (Experimental) | ||
| TODO No newline at end of file |
There was a problem hiding this comment.
if we don't want to leave the TODO on the actual site, could we keep this an empty page or something like 'check back later' / 'in progress'?
docs/guide/hello-world.md
Outdated
|
|
||
| # Hello World! | ||
|
|
||
| We're going to walk through the creation of a simple program using Lute. To start with, create a folder for your project with: |
There was a problem hiding this comment.
do we have an intro anywhere for what Lute is / would here be a good place for a quick welcome and brief explanation for why someone would want to use lute, then we can get into the setup?
There was a problem hiding this comment.
We should have this, but I'm not going to add it at this time, since the place I think we are deficient in is informing users of all the cool stuff we've implemented and how to use it. A foreword / intro can come a bit later I think
There was a problem hiding this comment.
sg! we can also put this intro on the home page
| ## TODOS: | ||
| - Perhaps implement a lute new \<proj\> command, that creates a main.luau file, setups a luaurc, creates a tests directory? No newline at end of file |
There was a problem hiding this comment.
same here, do we want to keep this commented out?
|
Going to address the comments in a single pass here:
|
Documentation writing
ad05790 to
6e21ae3
Compare
Inspired by the Rust Book , this PR adds more documentation to the guide section to get new users up and running with programming with Lute. The rough layout is:
Splitting this PR up: