Skip to content

Commit 2f040aa

Browse files
committed
Documentation hosting on Github Pages (#11)
Before this PR, the only way to access the documentation was by browsing through the repository's markdown files. Using the mkdocs framework, an alternative way was created to view documentation as a website. This patch contains: - Mkdocs config file `mkdocs.yml`. - Small corrections in .md files for more correct rendering on the website. - Custom hooks before site build to ensure .md file links remain accurate in both the website and repository versions of the docs. - CI workflow to deploy the documentation site to GitHub Pages. To check how the site looks locally, you need to: ``` make doc ``` Open documentation on http://localhost:8000/ Important: - In the repository settings, set the Github Actions source for Github Pages. Settings -> Pages -> Build and deployment: "GitHub Actions" - The documentation is deployed in the `github-pages` environment. You can set up rules for each environment (for example, a timer for deferred deployment) Settings -> Environment -> [env-name] Co-authored-by: Vladimir Severov <hackallcode@users.noreply.github.com>
1 parent 897ffa0 commit 2f040aa

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@ jobs:
2727
- name: "Create semantic tag"
2828
id: "create-tag"
2929
run: |
30-
if [ "${{ github.ref_name == github.event.repository.default_branch }}" != "true" ]; then
31-
echo "Skipping tagging because it's not the default branch"
32-
exit 0
33-
fi
34-
35-
VERSION=$(echo "${{ github.event.head_commit.message }}" \
36-
| sed -nE 's/.*[Rr]elease ([0-9]+\.[0-9]+\.[0-9]+).*?/\1/p')
30+
VERSION=$(git log -1 --pretty=%B | sed -nE 's/.*[Rr]elease ([0-9]+\.[0-9]+\.[0-9]+).*?/\1/p')
3731
3832
if [ -z "${VERSION}" ]; then
3933
echo "No semantic version found in commit message"

0 commit comments

Comments
 (0)