🎉 init

This commit is contained in:
zztkm 2022-07-23 02:12:02 +09:00
commit c90f133543
9 changed files with 75 additions and 0 deletions

9
.editorconfig Normal file
View file

@ -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

4
.gitattributes vendored Normal file
View file

@ -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

9
.gitignore vendored Normal file
View file

@ -0,0 +1,9 @@
# Binaries for programs and plugins
main
vss
*.exe
*.exe~
*.so
*.dylib
*.dll
vls.log

17
README.md Normal file
View file

@ -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

5
docs/Design.md Normal file
View file

@ -0,0 +1,5 @@
# Design of vss
Example of file structure to be built
```

0
docs/aaa.md Normal file
View file

0
docs/bbb.md Normal file
View file

7
v.mod Normal file
View file

@ -0,0 +1,7 @@
Module {
name: 'vss'
description: 'static site generator'
version: '0.0.0'
license: 'MIT'
dependencies: [markdown]
}

24
vss.v Normal file
View file

@ -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) // <h1>Markdown Rocks!</h1>
}
// work の検証をやる
https://modules.vlang.io/os.html#walk