Compare commits
No commits in common. "437fe17db07c74275f1706586bc5f46e8b9014cd" and "44cecf02e8f69e75a962eb5885f090c0d4ce05a4" have entirely different histories.
437fe17db0
...
44cecf02e8
@ -66,7 +66,6 @@ main :: proc() {
|
||||
|
||||
switch trimmed_filename {
|
||||
case "index":
|
||||
defer {
|
||||
buf: [1024]u8
|
||||
date := time.now()
|
||||
end := time.tick_since(start)
|
||||
@ -78,10 +77,14 @@ main :: proc() {
|
||||
)
|
||||
os.write_string(
|
||||
file,
|
||||
fmt.aprintf("in %v ", time.duration_round(end, time.Nanosecond), allocator = arena_alloc),
|
||||
fmt.aprintf(
|
||||
"in %v ",
|
||||
time.duration_round(end, time.Nanosecond),
|
||||
allocator = arena_alloc,
|
||||
),
|
||||
)
|
||||
os.write_string(file, "<font color=#ea76cb><3</font> </footer><br>")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
10
odinfmt.json
10
odinfmt.json
@ -1,10 +0,0 @@
|
||||
{
|
||||
"character_width": 120,
|
||||
"tabs": true,
|
||||
"tabs_width": 4,
|
||||
"sort_imports": true,
|
||||
"spaces_around_colons": false,
|
||||
"align_struct_fields": true,
|
||||
"align_struct_values": true,
|
||||
"space_single_line_blocks": true
|
||||
}
|
||||
13
parse.odin
13
parse.odin
@ -21,7 +21,10 @@ write_prefixs_to_html_file :: proc(file: ^os.File) {
|
||||
os.write_string(file, MASTODON_PREFIX)
|
||||
}
|
||||
|
||||
walk_tree_and_get_md_names :: proc(path: string, allocator := context.allocator) -> [dynamic]string {
|
||||
walk_tree_and_get_md_names :: proc(
|
||||
path: string,
|
||||
allocator := context.allocator,
|
||||
) -> [dynamic]string {
|
||||
|
||||
files := make([dynamic]string, allocator)
|
||||
|
||||
@ -79,7 +82,13 @@ walk_tree :: proc(path: string) -> []u8 {
|
||||
return nil
|
||||
}
|
||||
|
||||
parse_file_md_to_html :: proc(filename: string, allocator := context.allocator) -> (parsed: string, err: os.Error) {
|
||||
parse_file_md_to_html :: proc(
|
||||
filename: string,
|
||||
allocator := context.allocator,
|
||||
) -> (
|
||||
parsed: string,
|
||||
err: os.Error,
|
||||
) {
|
||||
str := os.read_entire_file_from_path(filename, allocator) or_return
|
||||
|
||||
root := cm.parse_document(raw_data(str), len(str), cm.DEFAULT_OPTIONS)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user