Origami seems quite interesting though it has a lot of unfamiliar syntax and concepts to learn. To keep it simple, I started with a simple site.ori file:
as it was shown at the top of the Hello, World page and I have no idea how to proceed from there.
The tutorial asks me to clone a pre-made repository with a lot of stuff in it, while there is not even a mention of how to install origami in the first place. By reading the package.json file of the language-intro repo, I ran npm i @weborigami/origami and saw that to run the project it uses the following incantation ori serve watch src, =debug src/site.ori
Alright. I originally ran npx ori to understand what those options do, and:
serve isn't shown among the list of supported commands.
- the
ori help:<namespace> syntax is very unfamiliar to those used to working on CLI tools, expecting to use either cmd help subcommand or cmd subcommand --help
ori help:serve shows it's a function that takes (tree, port) arguments, so I'm not sure what ori serve watch src means. Is watch passed as the tree argument? Again, unfamiliar syntax and concepts.
- The second part of the incantation
, =debug src/site.ori is even more alien to me.
At this point, I am completely lost and thought I'd try to write an issue to present the perspective of a new user, so you have a point of reference on which direction to improve the docs. I know my way around the shell or npm or even esoteric languages, but the approach I prefer is to start small, simple and from knowledge I already have. I could force my way to blindly follow the guide and hope it eventually clicks and all makes sense, but until that happens, one is a bit lost and confused, rather than in a state of productive flow.
IMO the tutorial should tell how to start from scratch (i.e. empty npm repo) to end up with what's in the language-intro repo, rather than using that repo as a starting point. And ideally the CLI tool should work like everything else in the node or UNIX world, with simple subcommands, rather than unfamiliar syntax than somehow maps to function invocations.
Hope this helps and is constructive!
Origami seems quite interesting though it has a lot of unfamiliar syntax and concepts to learn. To keep it simple, I started with a simple site.ori file:
as it was shown at the top of the Hello, World page and I have no idea how to proceed from there.
The tutorial asks me to clone a pre-made repository with a lot of stuff in it, while there is not even a mention of how to install origami in the first place. By reading the package.json file of the language-intro repo, I ran
npm i @weborigami/origamiand saw that to run the project it uses the following incantationori serve watch src, =debug src/site.oriAlright. I originally ran
npx orito understand what those options do, and:serveisn't shown among the list of supported commands.ori help:<namespace>syntax is very unfamiliar to those used to working on CLI tools, expecting to use eithercmd help subcommandorcmd subcommand --helpori help:serveshows it's a function that takes(tree, port)arguments, so I'm not sure whatori serve watch srcmeans. Iswatchpassed as the tree argument? Again, unfamiliar syntax and concepts., =debug src/site.oriis even more alien to me.At this point, I am completely lost and thought I'd try to write an issue to present the perspective of a new user, so you have a point of reference on which direction to improve the docs. I know my way around the shell or npm or even esoteric languages, but the approach I prefer is to start small, simple and from knowledge I already have. I could force my way to blindly follow the guide and hope it eventually clicks and all makes sense, but until that happens, one is a bit lost and confused, rather than in a state of productive flow.
IMO the tutorial should tell how to start from scratch (i.e. empty npm repo) to end up with what's in the language-intro repo, rather than using that repo as a starting point. And ideally the CLI tool should work like everything else in the node or UNIX world, with simple subcommands, rather than unfamiliar syntax than somehow maps to function invocations.
Hope this helps and is constructive!