To publish the markdown docs in this repository to ReadMe.io at https://docs.sensible.so/docs, commit to main. This triggers GitHub Actions that perform actions conditionally, such as syncing the API reference, syncing the guide docs, checking links, and styling images.
See https://github.com/flowcommerce/readme-sync.
In the Images dir:
- Save all screenshots to /screenshots
- If you edit the screenshot with callouts/arrows/etc, then save an unedited version of the image to source/
- the doc build process automatically applies styling such as drop shadows to images in screenshots/ and saves to final/
You can author the docs in GitHub-flavored Markdown, with the following minor restrictions and caveats:
-
links - The preferred linking method is to use Readme's syntax like this:
[some title](doc:some-doc-slug)
. or[Some title](ref:some-api-endpoint-slug)
. (Not recommended: you can also use relative links, but then you have to leave out the .md extension. Like this:[syntax for relative link to a doc](./readme-sync/v0/some-file-name-no-textension)
. (Future improvement: should be easy to modify readme-sync code to strip out .md extensions if we want working relative links in the markdown stored in github) -
images - You can't use relative links,
[like this syntax](./images/some-image)
. We'll use hyperlinks instead to images stored on the master branch like this:![](https://raw.githubusercontent.com/sensible-hq/sensible-docs/main/readme-sync/assets/images/v0/some_image.png)
. -
be careful with heading markup - ReadMe gets confused if you use a code block snippet that indicates the language IN CONJUNCTION with headings that use hashtags (#). In this instance it erratically interprets #code comments as heading markdown syntax.
So avoid headings like this:
# Heading 1
and only use this style syntax:
Heading 1
_____
-
no authoring in dash.readme - the bottom line is: edit in GitHub or use readme's Suggested Edits mechanism! don't make direct edits in dash.readme
- Why? If someone doesn't know better, they could edit the docs in dash.readme... but those edits will be overwritten the next time someone runs the readme-sync. There's no mechanism in dash.readme to warn them not to edit. Likewise, any suggested edits in ReadMe need to be manually merged to the GitHub docs rather than merged using ReadMe's mechanism.