commit c90f1335430b2d9833856bc7ece69fc2ecf0f823 Author: zztkm Date: Sat Jul 23 02:12:02 2022 +0900 🎉 init diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..517d63e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.v] +indent_style = tab +indent_size = 4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..97038df --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +*.v linguist-language=V text=auto eol=lf +*.vv linguist-language=V text=auto eol=lf +*.vsh linguist-language=V text=auto eol=lf +**/v.mod linguist-language=V text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a093d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Binaries for programs and plugins +main +vss +*.exe +*.exe~ +*.so +*.dylib +*.dll +vls.log diff --git a/README.md b/README.md new file mode 100644 index 0000000..e7ddb36 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# vss + +A static site generator + +## Caution + +vss is still under development and the API is not stable. +Be aware that destructive changes will be made if you use it! + +## Use + +Build your site +``` +vss +``` + +Output \ No newline at end of file diff --git a/docs/Design.md b/docs/Design.md new file mode 100644 index 0000000..04ead0a --- /dev/null +++ b/docs/Design.md @@ -0,0 +1,5 @@ +# Design of vss + +Example of file structure to be built + +``` \ No newline at end of file diff --git a/docs/aaa.md b/docs/aaa.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/bbb.md b/docs/bbb.md new file mode 100644 index 0000000..e69de29 diff --git a/v.mod b/v.mod new file mode 100644 index 0000000..d179f26 --- /dev/null +++ b/v.mod @@ -0,0 +1,7 @@ +Module { + name: 'vss' + description: 'static site generator' + version: '0.0.0' + license: 'MIT' + dependencies: [markdown] +} diff --git a/vss.v b/vss.v new file mode 100644 index 0000000..8132a3c --- /dev/null +++ b/vss.v @@ -0,0 +1,24 @@ +module main + +import os +import cli + +import markdown + +fn main() { + mut app := cli.Command { + name: "vss" + version: "0.0.0" + description: "static site generator" + execute: fn (cmd cli.Command) ? { + return + } + } + + text := '# Markdown Rocks!' + output := markdown.to_html(text) + println(output) //

Markdown Rocks!

+} + +// work の検証をやる +https://modules.vlang.io/os.html#walk \ No newline at end of file