Skip to content

Add a .github action to sync the docs backward to the repo's README.md. #2112

@beastoin

Description

@beastoin

We (OMI) are a small team. That's why we need to reduce the friction of every single task. Docs update is one of these things.

My mate, Nik, looks sad when removing the readme.md content at https://github.com/BasedHardware/omi/tree/main/sdks/react-native to centralize the docs at https://docs.omi.me/docs/developer/sdk/ReactNative (mintlify that reflected at https://github.com/BasedHardware/omi/blob/main/docs/docs/docs/developer/sdk/ReactNative.mdx).

So, I have an idea. Let's sync the docs .mdx file to the README.md backward:

  1. Use GitHub Action, trigger on changes at https://github.com/BasedHardware/omi/blob/main/docs/docs/
  2. Then, create a .md file and put it back to https://github.com/BasedHardware/omi/tree/main/sdks/react-native/README.md. Of course, we should have a note like: this file is generated by ..., do not edit manually, and remove the meta (title, description).
  3. Of course, we will have a map of docs .mdx file -> readme.md file, just put it(the mapping) directly into the GitHub Action's code.

Feel free to tell me what you think.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions