Skip to content

Commit 8b7dba7

Browse files
committed
docs: update tutorial and readme
Change Dev Containers logo in README: Simple Icons has removed all Microsoft icons due to copyright restrictions, see <simple-icons/simple-icons#11236>
1 parent fc3d101 commit 8b7dba7

File tree

2 files changed

+42
-33
lines changed

2 files changed

+42
-33
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
A minimal, responsive, and feature-rich Jekyll theme for technical writing.
88

9-
[![Open in Dev Containers](https://img.shields.io/badge/Dev_Containers-Open-deepskyblue?logo=visualstudiocode)][open-container]&nbsp;
10-
[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?&logo=RubyGems&logoColor=ghostwhite&label=gem&color=tomato)][gem]&nbsp;
11-
[![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy)][license]&nbsp;
129
[![CI](https://img.shields.io/github/actions/workflow/status/cotes2020/jekyll-theme-chirpy/ci.yml?logo=github)][ci]&nbsp;
13-
[![Codacy Badge](https://img.shields.io/codacy/grade/4e556876a3c54d5e8f2d2857c4f43894?logo=codacy)][codacy]
10+
[![Codacy Badge](https://img.shields.io/codacy/grade/4e556876a3c54d5e8f2d2857c4f43894?logo=codacy)][codacy]&nbsp;
11+
[![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy?color=goldenrod)][license]&nbsp;
12+
[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?&logo=RubyGems&logoColor=ghostwhite&label=gem&color=orange)][gem]&nbsp;
13+
[![Open in Dev Containers](https://img.shields.io/badge/Dev_Containers-Open-deepskyblue?logo=linuxcontainers)][open-container]
1414

1515
[**Live Demo**][demo]
1616

Diff for: _posts/2019-08-09-getting-started.md

+38-29
Original file line numberDiff line numberDiff line change
@@ -11,61 +11,70 @@ pin: true
1111
media_subpath: '/posts/20180809'
1212
---
1313

14-
## Creating a site repository
14+
## Creating a Site Repository
1515

16-
There are two methods to create a site repository for **Chirpy**:
16+
When creating your site repository, you have two options depending on your needs:
1717

18-
- [**Using the starter**](#option-1-using-the-starter) — This approach simplifies upgrades and isolates unnecessary project files, enabling you to concentrate on your content. It's ideal for those who want a hassle-free setup focused primarily on writing.
19-
- [**Forking the theme**](#option-2-forking-the-theme) — This method allows for customization and development but presents challenges during upgrades. It is not recommended to use this approach unless you are familiar with Jekyll and plan to modify this project.
18+
### Option 1. Using the Starter (Recommended)
2019

21-
### Option 1: using the starter
20+
This approach simplifies upgrades, isolates unnecessary files, and is perfect for users who want to focus on writing with minimal configuration.
2221

2322
1. Sign in to GitHub and navigate to the [**starter**][starter].
2423
2. Click the <kbd>Use this template</kbd> button and then select <kbd>Create a new repository</kbd>.
24+
3. Name the new repository `<username>.github.io`, replacing `username` with your lowercase GitHub username.
2525

26-
### Option 2: forking the theme
26+
### Option 2. Forking the Theme
2727

28-
Sign in to GitHub and [fork the theme](https://github.com/cotes2020/jekyll-theme-chirpy/fork).
28+
This approach is convenient for modifying features or UI design, but presents challenges during upgrades. So don't try this unless you are familiar with Jekyll and plan to heavily modify this theme.
2929

30-
## Name your new repository
30+
1. Sign in to GitHub.
31+
2. [Fork the theme repository](https://github.com/cotes2020/jekyll-theme-chirpy/fork).
32+
3. Name the new repository `<username>.github.io`, replacing `username` with your lowercase GitHub username.
3133

32-
Rename your repository to `<username>.github.io`. The `username` represents your lowercase GitHub username.
34+
## Setting up the Environment
3335

34-
## Setting up the environment
36+
Once your repository is created, it's time to set up your development environment. There are two primary methods:
3537

36-
The easiest way to set up the runtime environment, especially on Windows, is by using [Dev Containers](#setting-up-in-dev-containers). This method installs all packages within a Docker container, isolating them from the host machine and ensuring no interference with existing settings.
38+
### Using Dev Containers (Recommended for Windows)
3739

38-
For Unix-like systems, besides using Dev Containers, you can also [natively set up](#setting-up-natively) the runtime environment to achieve optimal performance.
40+
Dev Containers offer an isolated environment using Docker, which prevents conflicts with your system and ensures all dependencies are managed within the container.
3941

40-
### Setting up in Dev Containers
42+
**Steps**:
4143

4244
1. Install Docker:
4345
- On Windows/macOS, install [Docker Desktop][docker-desktop].
4446
- On Linux, install [Docker Engine][docker-engine].
4547
2. Install [VS Code][vscode] and the [Dev Containers extension][dev-containers].
4648
3. Clone your repository:
4749
- For Docker Desktop: Start VS Code and [clone your repo in a container volume][dc-clone-in-vol].
48-
- For Docker Engine: Clone your repo to the local disk, then launch VS Code and [open your repo in the container][dc-open-in-container].
49-
4. Wait a few minutes for Dev Containers to finish installing.
50+
- For Docker Engine: Clone your repo locally, then [open it in a container][dc-open-in-container] via VS Code.
51+
4. Wait for the Dev Containers setup to complete.
5052

51-
### Setting up natively
53+
### Setting up Natively (Recommended for Unix-like OS)
5254

53-
1. Follow the instructions in the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of the basic environment. Ensure that [Git](https://git-scm.com/) is also installed.
54-
2. Clone your repository to a local disk.
55-
3. If your site is created by forking the theme, install [Node.js][nodejs] and run `bash tools/init.sh` in the root directory. This will initialize the repository files and create a commit to save the changes.
56-
4. Install the dependencies by running `bundle`.
55+
For Unix-like systems, you can set up the environment natively for optimal performance, though you can also use Dev Containers as an alternative.
5756

58-
### Start the local server
57+
**Steps**:
58+
59+
1. Follow the [Jekyll installation guide](https://jekyllrb.com/docs/installation/) to install Jekyll and ensure [Git](https://git-scm.com/) is installed.
60+
2. Clone your repository to your local machine.
61+
3. If you forked the theme, install [Node.js][nodejs] and run `bash tools/init.sh` in the root directory to initialize the repository.
62+
4. Run command `bundle` in the root of your repository to install the dependencies.
63+
64+
## Usage
65+
66+
### Start the Jekyll Server
5967

6068
To run the site locally, use the following command:
6169

62-
```console
70+
```terminal
6371
$ bundle exec jekyll s
6472
```
6573

66-
After a few seconds, the local server will be available at <http://127.0.0.1:4000>.
74+
> If you are using Dev Containers, you must run that command in the **VS Code** Terminal.
75+
{: .prompt-info }
6776

68-
## Usage
77+
After a few seconds, the local server will be available at <http://127.0.0.1:4000>.
6978

7079
### Configuration
7180

@@ -76,17 +85,17 @@ Update the variables in `_config.yml`{: .filepath} as needed. Some typical optio
7685
- `timezone`
7786
- `lang`
7887

79-
### Social contact options
88+
### Social Contact Options
8089

8190
Social contact options are displayed at the bottom of the sidebar. You can enable or disable specific contacts in the `_data/contact.yml`{: .filepath} file.
8291

83-
### Customizing the stylesheet
92+
### Customizing the Stylesheet
8493

8594
To customize the stylesheet, copy the theme's `assets/css/jekyll-theme-chirpy.scss`{: .filepath} file to the same path in your Jekyll site, and add your custom styles at the end of the file.
8695

8796
Starting with version `6.2.0`, if you want to overwrite the SASS variables defined in `_sass/addon/variables.scss`{: .filepath}, copy the main SASS file `_sass/main.scss`{: .filepath} to the `_sass`{: .filepath} directory in your site's source, then create a new file `_sass/variables-hook.scss`{: .filepath} and assign your new values there.
8897

89-
### Customizing static assets
98+
### Customizing Static Assets
9099

91100
Static assets configuration was introduced in version `5.1.0`. The CDN of the static assets is defined in `_data/origin/cors.yml`{: .filepath }. You can replace some of them based on the network conditions in the region where your website is published.
92101

@@ -98,7 +107,7 @@ Before deploying, check the `_config.yml`{: .filepath} file and ensure the `url`
98107

99108
Now you can choose _ONE_ of the following methods to deploy your Jekyll site.
100109

101-
### Deploy using GitHub Actions
110+
### Deploy Using Github Actions
102111

103112
Prepare the following:
104113

@@ -119,7 +128,7 @@ Next, configure the _Pages_ service:
119128

120129
You can now visit the URL provided by GitHub to access your site.
121130

122-
### Manual build and deployment
131+
### Manual Build and Deployment
123132

124133
For self-hosted servers, you will need to build the site on your local machine and then upload the site files to the server.
125134

0 commit comments

Comments
 (0)