seamapi / docs

Welcome to the Seam Docs.
https://docs.seam.co
4 stars 10 forks source link

Gitbook + GitHub Open Questions #3

Closed sybohy closed 2 months ago

sybohy commented 1 year ago

Editing docs inside of Gitbook's web editor is tedious and error-prone. We're exploring making use of Gitbook's sync feature.

A few questions that I'll check off once we have sufficiently good answers:

sybohy commented 1 year ago

Structuring content is easy. You just create a SUMMARY.md file and follow its structure. More or less like docsaurus

‌# Summary​

## Getting Started

- [Get API Key](quickstart/get-api-key.md)
- [Installation](quickstart/installation.md)
- [Authentication](quickstart/authentication.md)

## Core Concepts
sybohy commented 1 year ago

Creating multiple code block with tabs also pretty straight forward but a bit messy. I think this will be a solid first candidate for some sort of post-processing where the markdown does not include the actually code. Example below

current

Screen Shot 2022-12-16 at 1 48 05 PM

Proposed Approach With Post Processor

Basically drop in a post processing tag with a reference to some code elsewhere in the code base. Can do a quick prototype later.

## hello world
{% code_sample_with_tabs_xyz %}
sybohy commented 1 year ago

OpenAPI spec works like a charm:

# API

{% swagger src="https://connect.getseam.com/openapi.json" path="/index" method="get" %}
[https://connect.getseam.com/openapi.json](https://connect.getseam.com/openapi.json)
{% endswagger %}

{% swagger src="https://connect.getseam.com/openapi.json" path="/access_codes/get" method="get" %}
[https://connect.getseam.com/openapi.json](https://connect.getseam.com/openapi.json)
{% endswagger %}

{% swagger src="https://connect.getseam.com/openapi.json" path="/access_codes/update" method="put" %}
[https://connect.getseam.com/openapi.json](https://connect.getseam.com/openapi.json)
{% endswagger %}

{% swagger src="https://connect.getseam.com/openapi.json" path="/action_attempts/get" method="get" %}
[https://connect.getseam.com/openapi.json](https://connect.getseam.com/openapi.json)
{% endswagger %}
sybohy commented 1 year ago

Linking between pages and sections seems pretty straight-forward.

Between two pages in the same section

go back to the previous page in this section on getting your [API Key](get-api-key.md) .
make sure to read our guide on getting your [API Key](../quickstart/get-api-key.md) in this other section.
sybohy commented 1 year ago

Images are so-so.

So basically, anything you upload on Gitbook will be added under .gitbook/assets. Unfortunately, anything you add manually under .gitbook/assets doesn't show up an option on Gitbook ui, but it definitely renders if you ref it in your markdown. 🤷