-
Open
Terminaland navigate to the folder where you want the local repository files to be stored. For examplecd Desktop/{folder name}. -
Clone the repository by executing
git clone git@github.com:segmentstream-com/segmentstream-com.github.io.gitin the terminal. -
Open your IDE, (for example Visual Studio Code) and open the folder that you've cloned in the previous step.
-
Press
Command + Shift + Pand select Create Branch in the list. The name of the branch should describe the changes that you want to make in the following formatfeature/{description}. For example:feature/fix-ecommerce-checkout-page-typosSeparate branches should be created for every unrelated change. For example, if you want to make changes in the page describing the product object, and in another page describing the user object, you should create two separate branched. -
All the files that you have to edit are inside the
_docsfolder. pic -
After editing a file switch to the Source Control tag, there you can see all the filed that you've edited in the current branch. pic
-
Here you have to type a detailed description of what was edited in your branch, click on the checkmark, and click yes in the dialog box. pic
-
To upload your changes to GitHub you have to click on the cloud icon and select origin tin the remote list. pic
-
Go to the GitHub page of the repository, where you should see the "Your recently pushed branches" list. Click on the "Compare & pull request" button. pic
-
You will be redirected to a page where you can write an additional comment to the changes you made, click on the "Reviewers" button on the right and select the users who you want the changes to be reviewed by, and finally click "Create pull request".
-
At this point the users whose review you have requested will receive an email notification. Once they review and approve the changes they can merge the changes to the master branch, which will automatically deploy the changes to the documentation website.
-
To create new changes you have to switch to the master branch by clicking the branch name in the lower left corner, and select master in the branch list - pic. Next you have to synchronize your master branch with the GitHub master branch by clicking on the circular arrows pic. Now you can create a new branch as described in step 4.
Execute the following command in the root documentation folder:
bundle exec jekyll server
The documentation is using the Markdown language, to get a preview of your changes press Command + Shift + V.
Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for
Syntax highlighted code block
# Header 1
## Header 2
### Header 3
- Bulleted
- List
1. Numbered
2. List
**Bold** and _Italic_ and `Code` text
[Link](url) and For more details see GitHub Flavored Markdown.
You can use the editor on GitHub to maintain and preview the content for your website in Markdown files.
Whenever you commit to this repository, GitHub Pages will run Jekyll to rebuild the pages in your site, from the content in your Markdown files.
Your Pages site will use the layout and styles from the Jekyll theme you have selected in your repository settings. The name of this theme is saved in the Jekyll _config.yml configuration file.
Having trouble with Pages? Check out our documentation or contact support and we’ll help you sort it out.