diff --git a/_data/stable.yml b/_data/stable.yml index 2e28a01..a263ad6 100644 --- a/_data/stable.yml +++ b/_data/stable.yml @@ -1,10 +1,16 @@ - title: Guide path: "" guides: + - init - server - client - upgrading +- title: Init + path: "/init" + guides: + - setup + - title: Server path: "/server" guides: diff --git a/_stable/client/index.md b/_stable/client/index.md index bd6b487..9ecb50c 100644 --- a/_stable/client/index.md +++ b/_stable/client/index.md @@ -1,6 +1,7 @@ --- title: Client Guides -permalink: /1/client/ +layout: guide +permalink: /guides/1/client/ --- This is just placeholder page. It should probably become a table of diff --git a/_stable/init/setup.md b/_stable/init/setup.md new file mode 100644 index 0000000..609d49a --- /dev/null +++ b/_stable/init/setup.md @@ -0,0 +1,28 @@ +--- +title: Initial Setup +layout: guide +permalink: /guides/1/init/setup/ +--- + +This will help get your initial setup ready to be able to try out the +lessons in the guides. + +## Dependencies + +To make things simple, you can add the follow crates to your +`Cargo.toml`: + +```toml +[dependencies] +hyper = { version = "1", features = ["full"] } +tokio = { version = "1", features = ["full"] } +http-body-util = "0.1" +hyper-util = { version = "0.1", features = ["full"] } +``` + +And with that, you're good to go! Depending on what you want to +accomplish, you can move on to either the [client][] or [server][] +guides. + +[client]: ../../client +[server]: ../../server diff --git a/_stable/server/index.md b/_stable/server/index.md index 8c61af2..27531c5 100644 --- a/_stable/server/index.md +++ b/_stable/server/index.md @@ -1,6 +1,7 @@ --- title: Server Guides -permalink: /1/server/ +layout: guide +permalink: /guides/1/server/ --- This is just placeholder page. It should probably become a table of