Skip to content

Commit

Permalink
🎉 initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrede88 committed Nov 24, 2023
0 parents commit 406160e
Show file tree
Hide file tree
Showing 104 changed files with 6,333 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/bugs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: 🐛 Bugs
description: Report an issue while using the theme
labels: [bug]
body:
- type: markdown
attributes:
value: |
Please check that a similar issue has not already been opened. [View open issues](https://github.com/Chrede88/qubt/issues)
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Describe your issue and how to reproduce it, including what you expected to happen.
validations:
required: true
- type: input
id: theme-version
attributes:
label: Theme version
description: What version of the theme are you using?
placeholder: v1.0
validations:
required: true
- type: input
id: hugo-version
attributes:
label: Hugo version
description: What version of Hugo are you using?
placeholder: v0.119.0
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: Which browser are you using?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- type: textarea
id: logs
attributes:
label: Relevant Hugo log output
description: Please copy and paste any relevant Hugo log output.
render: shell
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: ⚡ Feature Request
url: https://github.com/Chrede88/qubt/discussions
about: Please use GitHub Discussions for feature requests
- name: 🙋 Question
url: https://github.com/Chrede88/qubt/discussions
about: Please use GitHub Discussions for questions about the theme
12 changes: 12 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
area/exampleSite:
- "exampleSite/**/*"
area/github:
- ".github/**/*"
area/css:
- "assets/css/**/*"
area/html:
- "layouts/**/*"
area/lighthouse:
- "lighthouse/**/*"
area/static:
- "static/**/*"
32 changes: 32 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Semantic Type
- name: type/digest
color: "FFEC19"
- name: type/patch
color: "FFEC19"
- name: type/minor
color: "FF9800"
- name: type/major
color: "F6412D"
# Area
- name: area/exampleSite
color: "72ccf3"
description: "Changes made in the exampleSite directory"
- name: area/github
color: "72ccf3"
description: "Changes made in the github directory"
- name: area/css
color: "72ccf3"
description: "Changes made in the css directory"
- name: area/html
color: "72ccf3"
description: "Changes made in the layout directory"
- name: area/lighthouse
color: "72ccf3"
description: "Changes made in the lighthouse directory"
- name: area/static
color: "72ccf3"
description: "Changes made in the static directory"
# Others
- name: bug
color: "d73a4a"
description: "Something isn't working"
43 changes: 43 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"dependencyDashboardTitle": "Renovate Dashboard 🤖",
"commitMessagePrefix": "🤖",
"reviewers": ["chrede88"],
"timezone": "Europe/Zurich",
"schedule": [
"after 6pm and before 6am every weekday",
"every weekend"
],
"customManagers": [
{
"description": "Update Hugo/Go version in Github actions",
"customType": "regex",
"fileMatch": ["^.github/(?:workflows|actions)/.+\\.ya?ml$"],
"matchStrings": ["datasource=(?<datasource>.*?) depName=(?<depName>.*?)\n.*?'(?<currentValue>.*)'\n"],
"versioningTemplate": "semver-coerced",
"extractVersionTemplate": "^(v|go)?(?<version>.*)$"
}
],
"packageRules": [
{
"matchManagers": ["gomod"],
"matchDepTypes": ["indirect"],
"enabled": true
},
{
"matchUpdateTypes": ["major"],
"labels": ["type/major"]
},
{
"matchUpdateTypes": ["minor"],
"labels": ["type/minor"]
},
{
"matchUpdateTypes": ["patch"],
"labels": ["type/patch"]
}
]
}
72 changes: 72 additions & 0 deletions .github/workflows/buildDeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy site to Pages

on:
release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
id-token: write
pages: write
pull-requests: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v4
with:
# renovate: datasource=github-tags depName=golang/go
go-version: '1.21.4'

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
# renovate: datasource=github-releases depName=gohugoio/hugo
hugo-version: '0.120.4'
extended: true

- name: Build
working-directory: ./exampleSite
run: hugo --minify --themesDir ../.. --baseURL https://chrede88.github.io/qubt/

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./exampleSite/public

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
20 changes: 20 additions & 0 deletions .github/workflows/label_maker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Labeler"

on:
workflow_dispatch:
pull_request:
branches: ["main"]

permissions:
contents: read
pull-requests: write

jobs:
labeler:
name: Labeler
runs-on: ubuntu-latest
steps:
- name: Labeler
uses: actions/labeler@v4
with:
configuration-path: .github/labeler.yaml
32 changes: 32 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
This issue is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.
If you are still experiencing this issue, please review the issue history and add a reply with any requested and/or additional information in order to keep the issue open.
This issue will automatically close in 10 days if no further activity occurs. Thank you for your contributions.
stale-pr-message: |
This PR is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.
If you feel that the PR is still relevant in the latest release, consider making the PR easier to review and finding developers to help review the PR.
Please be _mindful_ that although we encourage PRs, we cannot expand the scope of the project in every possible direction. There will be requests that don't make the roadmap.
This PR will automatically close in 10 dasys if no further activity occurs. Thank you for your contributions.
days-before-stale: 30
days-before-close: 10
stale-issue-label: stale
stale-pr-label: stale
exempt-issue-labels: 'keep'
exempt-pr-labels: 'keep'
24 changes: 24 additions & 0 deletions .github/workflows/sync_labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Sync labels
on:
push:
paths: [".github/labels.yaml"]
workflow_dispatch:

permissions:
contents: read
issues: write

jobs:
labels:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4

- name:
uses: EndBug/label-sync@v2
with:
config-file: .github/labels.yaml
delete-other-labels: true
token: ${{ secrets.GITHUB_TOKEN }}
37 changes: 37 additions & 0 deletions .github/workflows/testBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Main Branch Build

on:
push:
branches:
- main
pull_request:

jobs:
build-deploy:
name: Test Build exampleSite
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v4
with:
# renovate: datasource=github-tags depName=golang/go
go-version: '1.21.4'

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
# renovate: datasource=github-releases depName=gohugoio/hugo
hugo-version: '0.120.4'
extended: true

- name: Build
working-directory: ./exampleSite
run: hugo --minify --themesDir ../.. --baseURL https://chrede88.github.io/qubt/
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Tailwind directories
node_modules/

# Hugo stuff
.hugo_build.lock
**/public/
**/resources/_gen/

# Apple stuff
.DS_Store

# lighthouse pwa badge
lighthouse/lighthouse_pwa.svg
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"tabWidth": 2,
"trailingComma": "es5",
"semi": false
}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [Unreleased]

[unreleased]: https://github.com/Chrede88/qubt/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/Chrede88/qubt/releases/tag/v1.0.0
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Christian Olsen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 406160e

Please sign in to comment.