-void html_open(struct str *buf, const char *title, const char *interface,
- const int want_graph_js)
+#include <assert.h>
+
+static const char *relpaths[] = {
+ ".",
+ "..",
+ "../.."
+};
+
+void html_open(struct str *buf, const char *title,
+ const unsigned int path_depth, const int want_graph_js)