|
| 1 | +import React from 'react'; |
| 2 | +import DocsSideBar from '../../views/docs/DocsSideBar'; |
| 3 | +import MainAppBar from '../../views/MainAppBar'; |
| 4 | +import Footer from '../../components/Footer'; |
| 5 | +import Markdown from 'react-markdown'; |
| 6 | +import remarkGfm from "remark-gfm"; |
| 7 | + |
| 8 | +const BitbucketInstallation: React.FC = () => { |
| 9 | + const installationMD = ` |
| 10 | +## Sign in to Bitbucket |
| 11 | +First, you need to sign in to your Bitbucket account. If you don't have an account, you can create one by visiting https://bitbucket.org/account/signup/. |
| 12 | +
|
| 13 | +## Grant Vibinex access to your repositories |
| 14 | +After signing in, you need to grant Vibinex access to your repositories. Click on the "Authorize Bitbucket OAuth Consumer" button on the Vibinex website. This will redirect you to Bitbucket's authorization page. |
| 15 | +
|
| 16 | +On the authorization page, you will be asked to grant Vibinex access to your repositories. Review the permissions and click "Grant access" to proceed. |
| 17 | +
|
| 18 | +## Select repositories |
| 19 | +After granting access, you will be redirected back to the Vibinex website. Here, you can select the repositories you want to set up with Vibinex. |
| 20 | +
|
| 21 | +You can either select individual repositories or select all repositories in your Bitbucket account. Once you have made your selection, click "Continue" to proceed. |
| 22 | +
|
| 23 | +## Configure Vibinex |
| 24 | +In this step, you will configure Vibinex for your selected repositories. You can choose between self-hosting or cloud-hosting options. |
| 25 | +
|
| 26 | +If you choose self-hosting, you will need to set up a Docker container on your own infrastructure. Detailed instructions for self-hosting will be provided. |
| 27 | +
|
| 28 | +If you choose cloud-hosting, Vibinex will handle the hosting for you. You will need to provide some information about your cloud provider and Vibinex will set up the necessary infrastructure. |
| 29 | +
|
| 30 | +## Install browser extension |
| 31 | +To get the most out of Vibinex, you should install the Vibinex browser extension. This extension will highlight relevant code changes and provide additional information directly in your Bitbucket pull requests. |
| 32 | +
|
| 33 | +You can install the extension by visiting https://chromewebstore.google.com/detail/vibinex-code-review/jafgelpkkkopeaefadkdjcmnicgpcncc?pli=1. |
| 34 | +
|
| 35 | +## Verify your setup |
| 36 | +After completing the installation steps, you can verify that Vibinex is working correctly by checking your Bitbucket repositories. |
| 37 | +
|
| 38 | +You should see the Vibinex logo next to the repositories that are set up with Vibinex. When you view pull requests, relevant code changes should be highlighted in yellow. |
| 39 | +
|
| 40 | +If you encounter any issues or have questions, please refer to the troubleshooting section or contact our support team. |
| 41 | +` |
| 42 | + |
| 43 | + const RenderMarkdown = (props: { markdownText: string }) => { |
| 44 | + const { markdownText } = props; |
| 45 | + return (<span className='rich-text'> |
| 46 | + {markdownText.split("\n").map((line: string, index: number) => { |
| 47 | + return ( |
| 48 | + <Markdown remarkPlugins={[remarkGfm]} key={index}> |
| 49 | + {line} |
| 50 | + </Markdown> |
| 51 | + ) |
| 52 | + })} |
| 53 | + </span>) |
| 54 | + } |
| 55 | + |
| 56 | + return ( |
| 57 | + <div> |
| 58 | + <MainAppBar /> |
| 59 | + <div className="flex"> |
| 60 | + <DocsSideBar className='w-full sm:w-80' /> |
| 61 | + |
| 62 | + {/* Center content */} |
| 63 | + <div className='sm:w-2/3 mx-auto mt-8 px-2 py-2'> |
| 64 | + <RenderMarkdown markdownText={installationMD} /> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + <Footer /> |
| 68 | + </div> |
| 69 | + ); |
| 70 | +}; |
| 71 | + |
| 72 | +export default BitbucketInstallation; |
0 commit comments