diff --git a/extension/background.js b/extension/background.js index 2b20fc6..5eba68b 100644 --- a/extension/background.js +++ b/extension/background.js @@ -675,22 +675,26 @@ Routes["/runtime/routes.html"] = makeRouteWithContents(async () => { return null; // did not find } return ` + + +

This page is automatically generated from extension/background.js in the TabFS source code.

+

It documents each of the folders and files that TabFS serves up from your browser.

(work in progress)

- ` + Object.entries(Routes).map(([path, {usage, description, __isInfill}]) => { + ` + Object.entries(Routes).map(([path, {usage, description, __isInfill, readdir}]) => { if (__isInfill) { return ''; } let usages = usage ? (Array.isArray(usage) ? usage : [usage]) : []; usages = usages.map(u => u.replace('\$0', path.substring(1) /* drop leading / */)); const lineRange = findRouteLineRange(path); return ` -
${path.substring(1)}
+
${readdir ? '📁' : '📄'} ${path.substring(1)}
${description ? `
Description: ${description}
` : '
No description found!
'} ${usages.length > 0 ? `
Usage: