hlxsites / prisma-cloud-docs-website

blocks and gdoc authored content for https://docs.prismacloud.io
Apache License 2.0
3 stars 2 forks source link

[Sidekick] Cannot preview/publish non Google doc types #202

Closed iansk closed 10 months ago

iansk commented 10 months ago

Using Sidekick, we tried previewing and publishing json, txt, and csv files in our Google Drive folder. We want to be able to link to these files from pages in our doc site so customers can download them.

Here are screenshots of the errors that Sidekick returns:

JSON file:

franklin-uat-pub-json-file

TXT file:

franklin-uat-pub-txt-file

CSV file:

franklin-uat-pub-csv-file
Pubs-MV commented 10 months ago

What other content formats are supported?

Also from the assets folder:

maxakuru commented 10 months ago

@iansk Those file types can't be authored in Google Drive, but they can be uploaded to Github and managed with code. Code files will be live when committed and pushed to the main branch.

as for the questions below, @Pubs-MV:

  1. sitemap entries, and for specific docs you can use the GET /status Admin API for more details
  2. if a document is published and you delete/rename it, you'll have the option to unpublish from the sidekick. You can see an example on this page if you open the sidekick: https://main--prisma-cloud-docs-website--hlxsites.hlx.page/drafts/maxed/i-deleted-this-document. Also possible via DEL /live Admin API
  3. I think any suggestions would depend on the goals/use-case.. maybe you can bring this to the Slack channel and we can chat there

note those are general answers, not for the file types mentioned in this issue that aren't supported in gdrive

iansk commented 10 months ago

@maxakuru We'll store flat text files (json, txt, csv, etc) in the repo for now, as you suggested.

We'll come back and revisit what options we've got post-launch.