diff --git a/site/src/pages/docs.js b/site/src/pages/docs.js index f5525e7086..0a6ed35d67 100644 --- a/site/src/pages/docs.js +++ b/site/src/pages/docs.js @@ -14,11 +14,10 @@ info.symbols.forEach(symbol => { if (!mod) { throw new Error(`No module for symbol ${symbol.name}`); } - const kind = symbol.kind; - if (!mod[kind]) { - mod[kind] = []; + if (!mod.symbols) { + mod.symbols = []; } - mod[kind].push(symbol); + mod.symbols.push(symbol); }); function getModuleName(longname) { @@ -41,7 +40,9 @@ class Docs extends Component {

{getModuleName(mod.name)}

Classes

- {mod.class.map(cls => this.renderClass(cls, mod))} + {mod.symbols + .filter(sym => sym.kind === 'class') + .map(cls => this.renderClass(cls, mod))}
); @@ -59,7 +60,7 @@ class Docs extends Component { render() { return ( -
{modules.filter(mod => !!mod.class).map(this.renderModule)}
+
{modules.filter(mod => !!mod.symbols).map(this.renderModule)}
); } }