Files - Documentation.AI

Files

Reference for linking PDFs, documents, spreadsheets, audio, archives, and other downloadable files using the File slash command and Markdown links.

Overview

Use files to give readers something to download or open: a PDF datasheet, a sample CSV, a ZIP of SDK examples, an audio clip, or a font. Documentation.AI hosts the file in your media library and serves it from a CDN at a stable URL.

Unlike images and videos, files have no embeddable form. They are inserted as a link whose text is the file's description or name. PDFs open in the browser's built-in viewer. Most other kinds download.

You can add files in two ways:

For images see Images. For video see Videos and iframes.

Supported file types

Kind Formats
Documents PDF, DOCX, DOC, XLSX, XLS, PPTX, PPT, ODT, ODS, ODP
Data CSV, TSV, JSON, YAML, XML, TXT, LOG, MD, MDX
Archives ZIP, GZ, TGZ, TAR
Audio MP3, WAV, OGG, M4A, AAC
Fonts WOFF, WOFF2, TTF, OTF

Executables, installers, scripts, macro-enabled Office files, and HTML pages are refused on every plan. Package them in a ZIP if readers need them.

Per-file size limits depend on your plan: 10 MB on Starter, 20 MB on Standard, and 30 MB on Professional and Enterprise. Audio is metered as video (20, 30, and 50 MB respectively). See Limits and supported file types.

Using with Web Editor

Insert a file

  1. Place your cursor where the link should go.
  2. Type / and select File.
  3. In the Select file dialog, either:
    • Click the Upload tile, choose a file, confirm or edit its name, and click Upload, or

    • Search and select a file that is already in the library.

  4. Click Insert file.

The Select file picker shows file names under each tile.

Choosing a file to upload lets you rename it first. The extension stays fixed.

The editor inserts a link at the cursor. The link text is the file's Description if one is set in the media library, otherwise the file name without its extension.

An inserted file appears as a link named after the file.

Prefer writing in code?

You can switch to MDX view inside the Web Editor to write or edit the link using the same syntax as the Code Editor.

Other ways to insert

Change the link text

The link text comes from the file's description at the moment you insert it.

Update or replace the file

Using with Code Editor

In MDX a file is a plain Markdown link to its CDN URL. Upload the file through the media library first, then copy its URL.

Basic usage

[Download the API reference (PDF)](https://file-cdn.documentation.ai/org-.../doc-.../1757300000000-abc123-api-reference.pdf)

Guidelines:

Link inside other components

A file link is ordinary Markdown, so it works anywhere inline text does:

<Callout kind="tip">

Want to follow along? [Download the sample dataset (CSV)](https://file-cdn.documentation.ai/org-.../doc-.../1757300000000-abc123-sample-data.csv) and import it into your workspace.

</Callout>

Use a Card with href set to the file URL when you want a larger, clickable download target.

Audio

Audio files are also inserted as links. Readers open or download the file rather than playing it inline.

[Listen to the pronunciation guide (MP3)](https://file-cdn.documentation.ai/org-.../doc-.../1757300000000-abc123-pronunciation.mp3)

Advanced options

Security and delivery

Specifications