Using an AI assistant?

Give it this page as Markdown: https://flowershow.app/docs/guides/publish-csv-files.md. For all of Flowershow, point it at https://flowershow.app/llms.txt.

Publish a .csv or .tsv file and Flowershow gives it a page on your site. cities.csv gets the page /cities, with your site's navbar, sidebar and footer, and the file itself is still at /cities.csv. This works the same way as PDF pages.

What you'll build

A page with the file's name as its title, a line such as CSV · 12.4 KB, a Download button, and the rows in a table you can scroll, sort by clicking a column header, and filter.

You'll need: a Flowershow site and a CSV or TSV file. Time: about 2 minutes.

Step 1: Publish the file

Publish it the same way as any other file: the fl CLI (fl cities.csv, see Publish from the terminal), the dashboard's file import, drag-and-drop publish, GitHub repo sync or AI publishing through MCP.

Step 2: Open the page

cities.csv gets the page /cities. A file in a folder keeps its folder: data/Cities.csv becomes /data/Cities. The title is the file name: city_populations-2024.csv becomes "city populations 2024".

The page description, used in search results and link previews, lists the first row's column names: Table with columns: city, country, population. The first row is taken as the column names.

You should see the page with the title, the Download button and the table below.

  • /cities links to the page.
  • [cities](cities.csv) and ![[cities.csv]] reach the file, as they always have: links open or download the file and the embed shows it as a table inside your page.

Large files

The table shows the rows in the first 5 MB of the file. A larger file still gets a page, with a note: "Showing the rows in the first 5 MB. Download the file for all of them." The Download button always gives the whole file.

Which file gets the address

Only one file can have a page at an address. Markdown and Word pages win over a PDF, a PDF over a CSV, and a CSV over a TSV, and a folder with the same name wins over all of them. The file that loses stays available at its own URL, with no warning.

Files that were on your site before CSV pages existed stay plain files until you publish them again. Publishing skips unchanged files, so edit or re-save the file first.

What is not included

  • CSV pages appear in the sidebar, sitemap and search, but not in listing pages or the RSS feed. Search finds the title and column names, not the rows.
  • There is no frontmatter, so you can't set the title or description.
  • There is no table of contents, comments or "copy as Markdown", and CSV pages are not listed in llms.txt.

Troubleshooting

  • My file only downloads, with no page → it was on your site before CSV pages existed (edit it and publish again), or a page, PDF or folder has the same name: see Which file gets the address.
  • The columns are wrong in a TSV → the file must have the extension .tsv; a tab-separated file named .csv is read with commas.

Next steps

Built with LogoFlowershow