From c9a9f948bec9bbf32785994d0b944b93bbb82ee2 Mon Sep 17 00:00:00 2001 From: StunxFS <56417208+StunxFS@users.noreply.github.com> Date: Thu, 4 Mar 2021 09:24:07 -0400 Subject: [PATCH] tutorials: move vweb tutorial inside its own folder (#8930) --- .github/workflows/ci.yml | 3 +-- CHANGELOG.md | 2 +- README.md | 2 +- .../README.md} | 0 .../code/blog/.gitignore | 0 .../code/blog/article.v | 0 .../code/blog/blog.sqlite | 0 .../code/blog/blog.v | 0 .../code/blog/index.html | 0 .../code/blog/new.html | 0 .../img/articles1.png | Bin .../img/articles_json.png | Bin .../img/hello.png | Bin .../img/hello_html.png | Bin .../img/time.png | Bin 15 files changed, 3 insertions(+), 4 deletions(-) rename tutorials/{building-a-simple-web-blog-with-vweb.md => building_a_simple_web_blog_with_vweb/README.md} (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/code/blog/.gitignore (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/code/blog/article.v (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/code/blog/blog.sqlite (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/code/blog/blog.v (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/code/blog/index.html (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/code/blog/new.html (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/img/articles1.png (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/img/articles_json.png (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/img/hello.png (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/img/hello_html.png (100%) rename tutorials/{ => building_a_simple_web_blog_with_vweb}/img/time.png (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4bacbcfec3..1c68319bb0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -126,8 +126,7 @@ jobs: run: ./v build-vbinaries - name: Test v tutorials run: | - cd tutorials/code/blog - ../../../v . + ./v tutorials/building_a_simple_web_blog_with_vweb/code/blog # Alpine docker pre-built container alpine-docker-musl-gcc: diff --git a/CHANGELOG.md b/CHANGELOG.md index eea27fdd08..60cde59afb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -156,7 +156,7 @@ files with compilation errors. - os: `is_link()`, `is_dir()`, `exists()`. - Ranging through fixed size arrays. - Lots of fixes in ORM and vweb. -- The first tutorial: [building a simple web application with vweb](https://github.com/vlang/v/blob/master/tutorials/building-a-simple-web-blog-with-vweb.md) +- The first tutorial: [building a simple web application with vweb](https://github.com/vlang/v/blob/master/tutorials/building_a_simple_web_blog_with_vweb/README.md) - Match expressions now must be exhaustive. - freestanding: `malloc()`/`free()`. - `++` is now required instead of `+= 1` for consistency. diff --git a/README.md b/README.md index 0f3a1c5783..853031867f 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,7 @@ With V's `vab` tool, building V UI and graphical apps for Android can become as ## Developing web applications -Check out the [Building a simple web blog](https://github.com/vlang/v/blob/master/tutorials/building-a-simple-web-blog-with-vweb.md) +Check out the [Building a simple web blog](https://github.com/vlang/v/blob/master/tutorials/building_a_simple_web_blog_with_vweb/README.md) tutorial and Gitly, a light and fast alternative to GitHub/GitLab: https://github.com/vlang/gitly diff --git a/tutorials/building-a-simple-web-blog-with-vweb.md b/tutorials/building_a_simple_web_blog_with_vweb/README.md similarity index 100% rename from tutorials/building-a-simple-web-blog-with-vweb.md rename to tutorials/building_a_simple_web_blog_with_vweb/README.md diff --git a/tutorials/code/blog/.gitignore b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/.gitignore similarity index 100% rename from tutorials/code/blog/.gitignore rename to tutorials/building_a_simple_web_blog_with_vweb/code/blog/.gitignore diff --git a/tutorials/code/blog/article.v b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/article.v similarity index 100% rename from tutorials/code/blog/article.v rename to tutorials/building_a_simple_web_blog_with_vweb/code/blog/article.v diff --git a/tutorials/code/blog/blog.sqlite b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.sqlite similarity index 100% rename from tutorials/code/blog/blog.sqlite rename to tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.sqlite diff --git a/tutorials/code/blog/blog.v b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v similarity index 100% rename from tutorials/code/blog/blog.v rename to tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v diff --git a/tutorials/code/blog/index.html b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/index.html similarity index 100% rename from tutorials/code/blog/index.html rename to tutorials/building_a_simple_web_blog_with_vweb/code/blog/index.html diff --git a/tutorials/code/blog/new.html b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/new.html similarity index 100% rename from tutorials/code/blog/new.html rename to tutorials/building_a_simple_web_blog_with_vweb/code/blog/new.html diff --git a/tutorials/img/articles1.png b/tutorials/building_a_simple_web_blog_with_vweb/img/articles1.png similarity index 100% rename from tutorials/img/articles1.png rename to tutorials/building_a_simple_web_blog_with_vweb/img/articles1.png diff --git a/tutorials/img/articles_json.png b/tutorials/building_a_simple_web_blog_with_vweb/img/articles_json.png similarity index 100% rename from tutorials/img/articles_json.png rename to tutorials/building_a_simple_web_blog_with_vweb/img/articles_json.png diff --git a/tutorials/img/hello.png b/tutorials/building_a_simple_web_blog_with_vweb/img/hello.png similarity index 100% rename from tutorials/img/hello.png rename to tutorials/building_a_simple_web_blog_with_vweb/img/hello.png diff --git a/tutorials/img/hello_html.png b/tutorials/building_a_simple_web_blog_with_vweb/img/hello_html.png similarity index 100% rename from tutorials/img/hello_html.png rename to tutorials/building_a_simple_web_blog_with_vweb/img/hello_html.png diff --git a/tutorials/img/time.png b/tutorials/building_a_simple_web_blog_with_vweb/img/time.png similarity index 100% rename from tutorials/img/time.png rename to tutorials/building_a_simple_web_blog_with_vweb/img/time.png