RocketChat / EmbeddedChat

An easy to use full-stack component (ReactJS) embedding Rocket.Chat into your webapp
https://rocketchat.github.io/EmbeddedChat/docs
113 stars 222 forks source link

[FEAT]: Deploy monorepos #612

Closed Spiral-Memory closed 2 weeks ago

Spiral-Memory commented 1 month ago

As an EmbeddedChat developer:

We need to: Deploy the monorepos docs, ui-elements, react, and layout-editor.

So that: Users can test them live.

Acceptance Criteria:

References:

Deployment can be tested on your own forked repo before raising the PR.

Spiral-Memory commented 1 month ago

This issue is open for everyone to work on. Feel free to raise a PR.

smritidoneria commented 1 month ago

Hey, I was trying to setup the deployment for docs ,

Screenshot 2024-07-25 at 1 45 03 PM

While the gh-pages branch is correctly populated with my documentation files, the GitHub Pages URL is not visible, and I cannot access the documentation through the expected URL.

Any help would be really appreciated

Spiral-Memory commented 1 month ago

Hey,

I suggest focusing on deploying both the react and ui-elements monorepo together first.

Regarding documentation and the layout editor, we will expand on these once my layout editor pull request is merged. After that, the documentation will be located in a packages directory.

For now, you should work on hosting both the react and ui-elements monorepos correctly on the same GitHub Pages site.

One potential issue with the documentation not displaying correctly might be due to incorrect build configuration or deployment.

GitHub Pages deploys either from a dedicated branch or a specified directory. For example, in my deploy pull request i mentioned in issue description, the path is set to storybook-static. Once the build process completes, an index.html file is generated in GitHub's temporary storage under the storybook-static directory, which is then used for display.

When dealing with multiple monorepos, ensure that GitHub builds each project and outputs everything into a single directory. For instance, the build should output to build/index.html for the react monorepo and build/ui-elements/index.html for the ui-elements monorepo, and so on.

smritidoneria commented 1 month ago

Okay, thanks