about summary refs log tree commit diff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index f47bd36..dfcedfa 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -93,6 +93,10 @@ pub const Context = struct {
     }
 };
 
+// TODO: make index smarter, it should know which files reference each other.
+// with this information, we could make better decisions whether to generate
+// output.
+//
 fn index(ctx: *Context) !void {
     // avoid reindexing
     if ((ctx.pages.items.len != 0) and (ctx.markdown.items.len != 0)) return;
@@ -126,6 +130,8 @@ fn index(ctx: *Context) !void {
                     std.log.debug("Indexing {s}", .{e.path});
                     try ctx.markdown.append(ctx.allocator(), try ctx.allocator().dupe(u8, e.path));
                 }
+
+                // XXX: scan for refs here?
             },
             else => {},
         }