Skip to content

Commit d38406e

Browse files
authored
Merge pull request RustLangES#43 from SergioRibera/main
Primera documentacion en README.md
2 parents f47bca3 + 13c6f20 commit d38406e

File tree

1 file changed

+17
-51
lines changed

1 file changed

+17
-51
lines changed

README.md

Lines changed: 17 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,28 @@
1-
## Development
1+
![image](https://github.com/SergioRibera/RustLangES.github.io/assets/56278796/cfc76ed8-b833-4746-a985-b0fcefde5a66)
2+
3+
<p align="center">
4+
<img alt="GitHub Workflow Status (with event)" src="https://img.shields.io/github/actions/workflow/status/RustLangES/RustLangES.github.io/clippy.yml?label=ci" />
5+
<img alt="GitHub Workflow Status (with event)" src="https://img.shields.io/github/actions/workflow/status/RustLangES/RustLangES.github.io/gh-pages.yml?label=deploy" />
6+
</p>
7+
8+
## Desarrollo
29
> [!NOTE]
310
> You need run `git submodule update --init --recursive` to get external assets for development generation
411
Now you can run:
512
```sh
613
trunk serve
714
```
815

9-
# Leptos Starter Template
10-
11-
This is a template demonstrating how to integrate [TailwindCSS](https://tailwindcss.com/) with the [Leptos](https://github.com/leptos-rs/leptos) web framework and the [trunk](https://github.com/thedodd/trunk) tool.
12-
13-
14-
Install Tailwind and build the CSS:
15-
16-
`Trunk.toml` is configured to build the CSS automatically.
17-
18-
Install trunk to client side render this bundle.
19-
20-
`cargo install trunk`
21-
Then the site can be served with `trunk serve --open`
22-
23-
The browser will automatically open [http://127.0.0.1:8080//](http://127.0.0.1:8080//)
24-
25-
You can begin editing your app at `src/app.rs`.
26-
27-
## Installing Tailwind
28-
29-
You can install Tailwind using `npm`:
30-
31-
```bash
32-
npm install -D tailwindcss
33-
```
34-
35-
If you'd rather not use `npm`, you can install the Tailwind binary [here](https://github.com/tailwindlabs/tailwindcss/releases).
16+
## Requisitos
17+
- [Rust](https://rust-lang.org/tools/install)
18+
- [NodeJs](https://nodejs.org)
19+
```bash
20+
npm install -D tailwindcss
21+
```
22+
- [Trunk](https://trunk.dev)
3623

37-
## Setting up with VS Code and Additional Tools
38-
39-
If you're using VS Code, add the following to your `settings.json`
24+
## Configura tu VSCode
25+
Agrega esto en tu `settings.json`
4026

4127
```json
4228
"emmet.includeLanguages": {
@@ -57,23 +43,3 @@ If you're using VS Code, add the following to your `settings.json`
5743
},
5844
"css.validate": false,
5945
```
60-
61-
Install [Tailwind CSS Intellisense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss).
62-
63-
Install [VS Browser](https://marketplace.visualstudio.com/items?itemName=Phu1237.vs-browser) extension (allows you to open a browser at the right window.
64-
65-
Allow vscode Ports forward: 3000, 3001.
66-
67-
## Notes about Tooling
68-
69-
By default, `cargo-leptos` uses `nightly` Rust, `cargo-generate`, and `sass`. If you run into any trouble, you may need to install one or more of these tools.
70-
71-
1. `rustup toolchain install nightly --allow-downgrade` - make sure you have Rust nightly
72-
2. `rustup default nightly` - setup nightly as default, or you can use rust-toolchain file later on
73-
3. `rustup target add wasm32-unknown-unknown` - add the ability to compile Rust to WebAssembly
74-
4. `cargo install cargo-generate` - install `cargo-generate` binary (should be installed automatically in future)
75-
5. `npm install -g sass` - install `dart-sass` (should be optional in future
76-
77-
78-
## Attribution
79-
This is based on the original Tailwind example (../examples/tailwind)

0 commit comments

Comments
 (0)