Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thevahidal authored Jan 5, 2024
1 parent 2017992 commit 271cadf
Showing 1 changed file with 33 additions and 22 deletions.
55 changes: 33 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Jake is a tool that allows you to effortlessly create your one-link website and

## Usage

### Create a Repository
### 1. Create a Repository

To get started, follow these steps to create a new repository using this template:

1. Click [here](https://github.com/new?template_name=jake&template_owner=thevahidal) to create a new repository.
2. Choose a name for your repository. If you want your website to be deployed at `<yourusername>.github.io`, name your repository `<yourusername>.github.io`. Alternatively, you can choose any other name, such as `that-other-name`, which will result in your website being deployed at `<yourusername>.github.io/that-other-name/`.

### Enable GitHub Pages
### 2. Enable GitHub Pages

After creating the repository, you need to enable GitHub Pages. Follow these steps:

Expand All @@ -22,15 +22,17 @@ After creating the repository, you need to enable GitHub Pages. Follow these ste
3. Choose `GitHub Actions` as the source for your GitHub Pages.
4. Click `Save` to apply the changes.

### Add your data
### 3. Add your data

To customize your website, follow these steps:

1. Open your repository in your preferred text editor.
2. Locate the `data.toml` file and update it with your information.
3. Modify the following settings according to your preferences:

<details>
<summary>Click to <b>Learn</b> all the available settings here</summary>

**General Information:**
#### General Information

- `name`: Your name (e.g., "Vahid Al")
- `description`: A brief bio about yourself (e.g., "Software Developer and passionate about creating things")
Expand All @@ -41,41 +43,38 @@ To customize your website, follow these steps:
- `text_align`: Specify the text alignment for your website: "right", "left" or "center" (e.g., "center")
- `gtag_id`: Your Google Analytics tracking ID (e.g., "G-33WB8LVHR6")

**Sections:**
You can add multiple sections based on your requirements. For example, you may want a section for your projects, another for your social media links, and another for your merchandise products. Each section is defined using `[[sections]]`.
#### Sections

Each section has the following components:
You can add multiple sections based on your requirements.
For example, you may want a section for your projects, another for your social media links, and another for your merchandise products.

Each section is defined using `[[sections]]` and has the following components:

- `title`: The title of the section (e.g., "Projects")
- `description`: A brief description of the section (e.g., "Here are some of my projects")
- `direction`: The direction of the section: "row" or "column" (e.g., "row")
- `item_style`: The style of the items in the section: "outline" or "filled" (e.g., "outline")
- `items`: The items associated with the section. Each item is defined using `[[sections.items]]`.
- `items`: The items associated with the section.

#### Items

Each item within a section has the following components:
Each item is defined using `[[sections.items]]` and has the following components:

- `title`: The title of the item (e.g., "Soul")
- `description`: A brief description of the item (e.g., "An SQLite REST and Real-time server")
- `url`: The URL associated with the item (e.g., "https://github.com/thevahidal/soul")

Make the necessary modifications to the `data.toml` file based on the above instructions to customize your website with your own information and sections.
</details>

### Voila!
### 4. Voila!

That's all you need to do. Now, you can sit back and relax while your website gets deployed. You can monitor the progress in the `Actions` tab of your repository. Once the deployment is complete, you can access your brand new one-link website at `<yourusername>.github.io` (If you chose `<yourusername>.github.io` as your repository name) or `<yourusername>.github.io/repo-name/`.

> Note: You may need to manually trigger the GitHub Action to deploy your website. Here's how you can do it:
> 1. In your repository, navigate to the "Actions" tab.
> 2. Look for the workflow named "Deploy Jake Website to GitHub Pages" in the list of workflows.
> 3. If you see an alert stating "This workflow has a workflow_dispatch event trigger," it means you can manually trigger the workflow.
> 4. Click on the "Run Workflow" button. A new window will appear.
> 5. Within the new window, click on the green "Run Workflow" button.
> 6. GitHub Actions will initiate the deployment process for your static content to GitHub Pages.
### FAQ

Sure! Here's an improved version:
<details>
<summary>1. How to configure my own <b>Custom Domain</b>?</summary>

### Configuring Custom Domain
If you want to use your custom domain for your website hosted on GitHub Pages, it's a straightforward process. Just follow these steps:

1. Go to the **Settings** tab of your GitHub repository.
Expand All @@ -86,6 +85,18 @@ If you want to use your custom domain for your website hosted on GitHub Pages, i
That's it! Your GitHub Pages site will now be accessible using your custom domain.

For more detailed instructions and information on using a custom domain with GitHub Pages, you can refer to the [official GitHub Docs](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site).
</details>

<details>
<summary>2. How to <b>manually</b> trigger the GitHub Action to deploy my website?</summary>

1. In your repository, navigate to the "Actions" tab.
2. Look for the workflow named "Deploy Jake Website to GitHub Pages" in the list of workflows.
3. If you see an alert stating "This workflow has a workflow_dispatch event trigger," it means you can manually trigger the workflow.
4. Click on the "Run Workflow" button. A new window will appear.
5. Within the new window, click on the green "Run Workflow" button.
6. GitHub Actions will initiate the deployment process for your static content to GitHub Pages.
</details>

## Contributing

Expand Down

0 comments on commit 271cadf

Please sign in to comment.