Skip to content

Commit

Permalink
docs: adding docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shivan-s committed Oct 11, 2024
1 parent 25b1194 commit 3974e4e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 19 deletions.
7 changes: 7 additions & 0 deletions .cz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_type = "semver"
version = "0.0.1"
update_changelog_on_bump = true
major_version_zero = true
34 changes: 34 additions & 0 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Bump version

on:
push:
branches:
- main

jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v4
with:
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
changelog_increment_filename: body.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "body.md"
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 2 additions & 19 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
# Hugo Starter Theme
# Optom Code Theme (WIP)

Dead-simple Hugo theme with everything you need to get started. Intended to be a starter for creating your own theme without including useless bloat like most Hugo themes.

## Getting started

Inside your project folder, copy the theme to your `themes` folder. Since you're just using it as a starter for your theme, remove the git history.

```bash
git clone https://github.com/ericmurphyxyz/hugo-starter-theme themes/your-theme-name
rm -rf themes/your-theme-name/.git
```

If you'd like some example content and an example config file to get started, you can copy the `exampleSite` directory into your root Hugo directory.

```bash
cp -r themes/your-theme-name/exampleSite/* ./
```

To learn more about building themes in Hugo, refer to Hugo's [templating documentation](https://gohugo.io/templates/).
Credit: https://github.com/ericmurphyxyz/hugo-starter-theme for starting template

0 comments on commit 3974e4e

Please sign in to comment.