You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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
39
37
```
40
38
41
39
If the commands above were run successfully, the web content will be accessible: http://127.0.0.1:8000/
42
40
43
41
## Manual Configurations
44
42
45
-
### 1. Replace the `mkdocs.yml`
43
+
### 1. Configure the `mkdocs.yml` Parameters
46
44
47
45
Replace all variables under `>>> REPLACE THE VALUE` in the [./mkdocs.yml](./mkdocs.yml) with values based on your repo.
48
46
49
-
### 2. Configure the GitHub Action permissions
47
+
### 2. Configure the GitHub Action Permissions
50
48
51
49
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.
52
50
@@ -60,7 +58,7 @@ The [.github/workflows/deploy-contents-to-github-pages.yml](.github/workflows/de
60
58
61
59
### 3. Enable GitHub Pages Feature
62
60
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.
0 commit comments