Skip to content

saveDocumentation

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/cli/src/utils/screenshot-storage.helper.ts

Save documentation with storage helper

Signature

ts
async function saveDocumentation(documentation: {
    title: string;
    slug: string;
    content: string;
    categoryPath: string[];
    type: 'user-docs' | 'tutorial' | 'feature';
    metadata?: Record<string, unknown>;
  }, storage: StorageHelperService, aiModel: string): Promise<{ id: string; url: string }>

Parameters

NameType
documentation`{
title: string;
slug: string;
content: string;
categoryPath: string[];
type: 'user-docs' | 'tutorial' | 'feature';
metadata?: Record<string, unknown>;

}| |storage|StorageHelperService| |aiModel|string` |

Returns: Promise<{ id: string; url: string }>

Was this page helpful?

Download as PDF