docs: function treeToDoc(tree) {
    if (tree.length === 0) return '';
  
    return tree.map((it) => {
      if (typeof it === 'object') {
        return `${'#'.repeat(it.level)} ${it.title}\n${treeToDoc(it.children)}`;
      }
      return it;
    }).join('\n');
  }