Skip to content

Commit 970a940

Browse files
committed
update
1 parent 6a6e561 commit 970a940

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,22 @@ Project directory structure pattern:
2929
└── requirements.txt # Python requirements file to install MkDocs and MkDocs Plugins
3030
```
3131

32-
MkDocs provides local hot reload transpiling of Markdown files feature. There is a [Makefile](/Makefile) with this shortcut:
32+
MkDocs provides local hot reload static files build. There is a [Makefile](/Makefile) with this shortcut:
3333

3434
```bash
35-
$ git clone https://github.com/augustoliks/template-gh-pages-mkdocs
36-
$ cd template-gh-pages-mkdocs
3735
$ make setup # create python3 virtualenv and install requirements (MkDocs and MkDocs plugins)
38-
$ make serve # run local web server with hot reload feature
36+
$ make run # run local web server with hot reload feature
3937
```
4038

4139
If the commands above were run successfully, the web content will be accessible: http://127.0.0.1:8000/
4240

4341
## Manual Configurations
4442

45-
### 1. Replace the `mkdocs.yml`
43+
### 1. Configure the `mkdocs.yml` Parameters
4644

4745
Replace all variables under `>>> REPLACE THE VALUE` in the [./mkdocs.yml](./mkdocs.yml) with values based on your repo.
4846

49-
### 2. Configure the GitHub Action permissions
47+
### 2. Configure the GitHub Action Permissions
5048

5149
The [.github/workflows/deploy-contents-to-github-pages.yml](.github/workflows/deploy-contents-to-github-pages.yml) pipeline need the `${{ secrets.GITHUB_TOKEN }}` variable to allow the static files push in `gh-pages` branch. For this, it is necessary to configure the _Read Write_ permission for GitHub action. Check the following image to configure it.
5250

@@ -60,7 +58,7 @@ The [.github/workflows/deploy-contents-to-github-pages.yml](.github/workflows/de
6058

6159
### 3. Enable GitHub Pages Feature
6260

63-
Now, it is necessary to configure GitHub Pages. The GitHub Action [.github/workflows/deploy-contents-to-github-pages.yml](.github/workflows/deploy-contents-to-github-pages.yml) creates a `gh-pages` branch with the static files transpiled by Mkdocs. Thus, you need to configure GitHub Pages to use the `gh-pages` branch as a source to render the web files.
61+
Now, it is necessary to configure GitHub Pages. The GitHub Action [.github/workflows/deploy-contents-to-github-pages.yml](.github/workflows/deploy-contents-to-github-pages.yml) pipeline creates a `gh-pages` branch with the static files transpiled by MkDocs. Thus, you need to configure GitHub Pages to use the `gh-pages` branch as a source to render the web files.
6462

6563
![](./.img/how-to-configure-git-pages.png)
6664

0 commit comments

Comments
 (0)