Jaymin Shah
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Contribute to Handbook This article explains the steps to contribute to Incubyte Handbook. We use Github to manage the version control of the handbook. Changes to the handbook go through a 2-week review process during which the team can review changes and provide feedback, before finally being merged. Thus, always create a pull request for the team to review! Get started by downloading a script that automates some of the steps, or manually follows along with the steps provided. Makes sure not to skip any step as all of them build on top of each other. ## Manual Steps ### 1. Download Obsidian: Obsidian is a note-taking app that stores data in markdown files. Markdown files are pretty flexible, in that any text editor could be used to work with them. We chose Obsidian because of its ease of use and custom plugins which makes working with version control systems (Git) easy. [Download Obsidian](https://obsidian.md/download) - Windows - Download the `64-bit installer` and it should download the installer. - Open the file and follow the onscreen instructions. - Linux - Download the `AppImage` file (recommended). - Once finished, open the AppImage file, and Obsidian should open directly. - Mac ### 2. Install Git Git is a version control system (VCS) that allows collaborative software development. It is a vital aspect of contributing to the handbook. It allows for setting up pull requests which could then be reviewed by the team. > Before proceeding, check if Git is already installed on your system. Open command prompt or terminal and type the following command: > `git --version` > If you see an output describing Git version, proceed to step 3. - Windows - Go to https://git-scm.com/download/win ![image](https://i.imgur.com/Dc5oxpv.png) - Click on the first link (underlined in the above picture). - Follow the onscreen instructions and git should be installed. - Open command prompt (type cmd in the windows search) ![image](https://i.imgur.com/Uqdievp.png) - Type `git` - If a list of commands is shown, then congratulations, git is installed! ![image](https://i.imgur.com/HLUVM4S.png) - Linux - Open terminal - Type `apt-get install git` - Type `git`. If a list of commands is shown, then congratulations, git is installed! - Mac ### 3. Clone the handbook repo The handbook repository is hosted on Github and acts as a single source of truth for the handbook. To make changes, we first need to make a copy of the repository inside our local machines. This process is called cloning. - Open command prompt *(follow the steps mentioned above)* and change your directory to the desired folder. - Type `git clone https://github.com/incubyte/handbook-frontend.git` - Open the same folder using file explorer. If a folder called `handbook` has been created then congratulations, you have successfully cloned the repo! - The `handbook` folder should look like this: - Windows ![image](https://i.imgur.com/GHpR421.png) - Linux ![image alt](https://i.imgur.com/cuchzJg.png) ### 4. Opening the handbook folder in Command Prompt / Terminal After successfully cloning the repo, we need to open it inside our terminal to start working with it. This step is required because we will be creating a custom branch in step 5. - Windows - Open the cloned `handbook` folder. - In the address bar at the top, write `cmd` and press `Enter` ![image](https://i.imgur.com/xXWiFEu.png) - Alternately, right-click and select the `Open in Terminal` option ![image](https://i.imgur.com/nJAFW1P.png) - The command prompt should open inside this directory now. - - Linux - Open the cloned `handbook folder`. - Once inside, right-click and click on `Open in Terminal`. - TODO: add a screenshot - You should have the terminal open: ### 5. Working with branches A branch is a Git concept which means a "separate workspace". Each repository has a main/master branch that holds the current state of handbook. We don't add changes directly to main/master branch, but instead, create a separate branch and create a request to add those changes to main/master branch. This allows different people to work on different things parallelly. - Creating a new branch - In the terminal/command prompt, type `git branch <branch_name>`. - The `<branch_name>` should be named as follows: - For a page titled "Incubyte Insurance", the `<branch_name>` should be `page/incubyte-insurance`. Thus, the above command would become `git branch page/incubyte-insurance` - Type `git branch`. A list of available local branches should be shown, with the branch you just create inside. - Then type `git checkout <branch_name>` - Type `git branch` once more. The list of local branches should be visible again with the selected branch being the branch you just created. - After this, to publish the branch, type `git push`. A fatal error with a new command starting with `git push --set-upstream` should appear. - Select and copy the entire command using mouse and paste it into a new line and press `Enter`. - The branch should be published. You can check it out by going to the Github repository and clicking on the dropdown for branches. - Checking out an already existing branch - In the terminal/command prompt, type `git checkout -b <local_branch_name> origin/<existing_remote_branch_name>` - For example, for a remote branch named `pages/incubyte-insurance`, the above command would be - `git checkout -b pages/incubyte-insurance origin/pages/incubyte-insurance` ### 6. Open the handbook inside Obsidian As mentioned in step 1, Obsidian is chosen due to the ease of working with Git. We need to open the repository inside Obsidian to get started. - Once the above steps are completed and Obsidian is also downloaded, open the Obsidian app. If this is your first time, Obsidian will ask you to create a new vault to work with. ![](https://i.imgur.com/2Vu9iPc.png) - Select the `Open folder as vault` option and in the popup that appears, navigate to the location where you cloned the handbook repo. Select the folder (usually titled `handbook`). A new vault should be created and opened in obsidian. ![](https://i.imgur.com/qXo8bL0.png) - To switch to a branch inside Obsidian, click on `Settings` (the gear icon on the bottom left of the window ⚙️). - When the Settings popup appears, on the left-hand panel, select the`Obsidian Git` menu. The git settings should now be visible. ![](https://i.imgur.com/UiCpNUm.png) - Scroll down and a setting `Current Branch` should become visible. Click on the dropdown beside it, all the local branches should be visible there. Select the desired branch and Obsidian will switch to that branch. ![](https://i.imgur.com/Za5BOSY.png) - Close the Settings popup, you should be now able to make your edits in your local branch. ### 7. Making Changes, Committing and Pushing them This step involves making changes inside your desired branch, committing those changes, and finally pushing them to Github. It might seem a lot but once you understand the flow, it's a cakewalk (believe us!). - Once you have switched to your desired branch, select the file you want to edit from the left-hand file explorer panel. If you want to create a new file/folder, there are icons on the top of the panel for performing those actions. - After the edits are done, save your changes. Now, on the right-hand side of the window, in the source control panel, you will find all the updated files under the `Changes` section. - Review your changes and once you are happy with them, click on the `+` icon to `stage` them, the file should now move from the `Changes` section to the `Staged Changes` section. - After this is done, write your commit message and click on the `commit` button (✅ icon) to commit your changes. - After committing, click on the `Push` button and all your changes will be pushed to your branch. ![](https://i.imgur.com/skZyvLs.png) ### 8. Raising a Pull Request (PR) In this step, we'll be raising a pull request on Github. Think of pull requests as a way of letting everyone in the team review and discuss the changes you have made before they are added to the handbook. As mentioned, this step will take place on Github website. - Head over to the handbook repository on Github: https://github.com/incubyte/handbook - Make sure you are logged in to your Github account. - Click on Pull requests ![](https://i.imgur.com/pNfsor7.png) - Here, you would be able to see a list of all open PRs which are waiting for review. Click on New Pull Request button to create your pull request. ![](https://i.imgur.com/x2Y6ifF.png) - Click on the base dropdown and select it as **main**. This means we want to add changes to the main branch. Click on the compare dropdown and select the branch to which you made changes. In doing so, you'd get a list of commits that would be merged to the main branch. Scroll down the page to see a more in-depth view of changes that will be added through this pull request. ![](https://i.imgur.com/4QC62Ma.png) - When satisfied with the changes, click on **Create pull request** button. - Pull requests are created in a pre-defined format. This ensures that reviewers get a proper context of what a particular PR tries to achieve. Make sure to add the whats, the whys, and the hows of the changes which you want to add. Be as clear as possible! Once done, click on **create pull request** button to finally create your PR! ![](https://i.imgur.com/QU567oI.png) - The pull request will be created with **Open** status as follow: ![](https://i.imgur.com/wPsNRmP.png) - That's it! The PR has been created and it's open for reviewers. Make sure to spread the word to the team. Hang tight while they go through the changes and give feedback. In case you need to make further changes, just repeat step #7. You don't need to create a PR again! ## Automated Script The automated script takes care of steps 1 through step 3 of the manual steps - downloading obsidian, installing Git, and cloning the handbook repository. Download and execute the script as per your operating system. Then, head over to step 4 of the manual steps to continue further. ### Linux [Automated Script - Linux](https://incubytein-my.sharepoint.com/:u:/g/personal/jaymin_incubyte_co/EddS5jPGekRJuYznCt_jN_gBf6AJoSB1gKGhC8NyESSkkg?e=IdvKEW)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully