Skip to content

openelb/website

Repository files navigation

OpenELB Website

Welcome to the OpenELB website repository!

This repository contains web pages of the official OpenELB website, including documentation, blog articles, community information, and other contents of the OpenELB open-source project.

Whether you are a tech enthusiast, a language professional, or simply someone interested in the OpenELB project, you are always welcome to send your works to the OpenELB website and help localize the website!

Localize the OpenELB Website

We are currently looking for people to localize the website. If you have passion for localization, please send Pull Requests to this repository.

  • Before you start working, please read the OpenELB Chinese Documentation Style Guide.

  • All documents of the OpenELB website are stored in the /content directory.

  • If you need to insert an image in a document, save the image in a directory named after the document in the /static/images/zh directory and reference the image by using the following expression (change everything in <> to actual values):

    ![<image-name>](/images/zh/<doc-path>/<image-name>.png)

    Don't worry if the images are not correctly displayed in your editor. They will be correctly parsed by the website.

Send Pull Requests

If you have documents, blog articles, or localization works for the OpenELB project, please send pull requests to this repository.

Step 1: Create a GitHub account and set up a local OpenELB website repository.

  1. Create a GitHub account.

  2. In the OpenELB website repository, click in the upper-right corner to fork this repository to your own GitHub account.

  3. In your local command-line interface (CLI), run the following commands to clone the OpenELB website repository and go to the porter-website directory.

    git clone <Address of your own OpenELB website repository>
    cd website
  4. Run the following command to set the upstream address:

    git remote add upstream https://github.com/openelb/website.git

Step 2: Add your work and push it to GitHub.

  1. Run the following command to synchronize your local repository with the upstream:

    git pull --rebase upstream master
  2. Run the following command to create a branch and switch to the branch:

    git switch -c <Custom branch name>
  3. Use your favorite editor (such as Typora) to add contents to or edit existing contents in the /content directory.

Step 3: Preview your work in your local environment.

  1. Install Hugo in your local environment.

  2. Go to the porter-website directory and run the following command:

    hugo server -D
  3. Open a web browser and enter http://localhost:1313 in the address box to preview your work.

Step 4: Commit your changes and create a pull request.

  1. Run the following commands to commit your changes and push it to your own repository on GitHub:

    git add .
    git commit -s -m "<Desribe your changes briefly>"
    git push -u origin <Custom branch name>
  2. Visit the OpenELB website repository, click Pull requests, and click Compare & pull request.

  3. Add /assign @Patrick-LuoYu @FeynmanZhou @renyunkang in the text box to assign the three guys to review your work.

    assign

  4. Click Create pull request. After your work is reviewed, it will be merged into the repository and become available to users around the world.

  5. In your local CLI, run the following command to switch to the master branch. Repeat Step 2 to Step 4 each time you have something new for the OpenELB website.

    git switch master

Contact Us

Join us at the Slack #sig-docs channel!

vercel