Skip to content

Commit

Permalink
Merge chirpy update (#2)
Browse files Browse the repository at this point in the history
* Add more option to script tool.

* Update the docs.

- Optimize the code style of markdown list
- Increase post contents (cotes2020#104, cotes2020#100)

* Improve the layout of list.

* Beautify the layout for posts heading and preview-image.

* Upgrade web-fonts source.

* Reduce the font size of inline code.

* Extend the image style to the layout `page` (cotes2020#113)

* Fix the exclusion regex rule of swatch (cotes2020#112)

* Add more details to the bug-issue template.

* Fix the path contains spaces lead to tool script failure (cotes2020#117)

* Enhance the script to remove the space between `categories`/`tags` and colon in YAML.

* Improve the deploy tool

* Pretty shell format.

* Fix condition in page creator script.

* Improve the image style.

* Improve the init tool & fix the deploy tool.

* Fix typo

change function name "deoply" -> "deploy" @ ln45, 64

* Fix the overlap of footnote in vertical direction. (cotes2020#123)

* Normalize the CSS rgb function (cotes2020#128)

* Fix the compatibility of fswatch under Linux. (cotes2020#112)

* Use yq to process YAML content (cotes2020#130)

Use yq to process YAML content.

* Improve the CD workflow and enhance the related tools.

* Update the docs for installing `yq`.

* Add `yq` installation on travis config.

* Install `yq` by APT on ubuntu of gh-actions.

`brew intall` on Ubuntu is too slow (about 1 min)

* Fix copy link function (cotes2020#133)

* Lazy load the feature image.

* Remove the tool that may confuse newbie.

* Update the docs & reduce the image size.

* Fix the bundle cache path for CD hook.

* Add styles to image caption (cotes2020#144)

* Specify the image width.

* Reduce image caption margin.

* Added caption sytle for hyperlinked images (cotes2020#144).

* Specify the image location gracefully.

* Drop the deprecating command `set-env` in actions workflow.

replace with environment files

* Add `docker` option to the tools.

* Add docker support instructions to the docs.

* Fix files r/w permissions under Linux Docker (cotes2020#145)

also improve the scripts

* Fix compatibility with Docker Desktop (for Mac)

on Docker Desktop CE (Mac) 2.4.0.0
- command `mv` will cause permission preserve error
- command `chown` will get I/O error

* Add more class to specify image position.

* Upgrade GA tag (analytics.js) to the latest tag (gtag.js)

* Remove comments from HTML.

* Add `--config` option to the build-tool.

* Add more details to the tutorial of `customize favicon`

* Optimize the hover effect of related-post card.

* Improve email javascript in sidebar (cotes2020#155)

This will appear in Firefox and Safari.

Remediates the issue describe here: https://stackoverflow.com/questions/21461589/javascript-mailto-using-window-open#32675594

* Simplify travis config.

* Fix typo (cotes2020#159)

* Fix the numeric sort of trending tags size.

* Add version tag on <head>.

* Add new tool to bump version.

* Fix the security of cross-origin destinations link.

* Replace heading elements of  panel with span.

Fix the heading levels audit.

* Improve web accessibility

- Add associated label to form elements.
- Add discernible name to links.

* Avoid GA snippet blocking HTML parsing.

* Improve the SCSS code style

* Upgrade jQuery & Bootstrap (js) to latest version.

Notes: Bootstrap CSS remains at 4.0.0

* Avoid PWA caching browser extensions.

such as: Chrome extension

* Update git-ignore list.

* Auto close the irregular issues

also fix the token key of issue-cleaner

* Using `jekyll-archives` to create category/tag pages.

* Add hook to generate the lastmod of posts

* Clean up the discarded shell scripts

* Update the docs for discarded tools

* Fix the test tool and CD hook

* Restore gem `tzinfo-data` for Windows & JRuby (cotes2020#176)

* Use `collections` to improve the tabs

* Limit Jekyll gem version

also to trigger new CI to bypass the bundle cache error in GH-Actions

* Fix bundle-install failed on gh-actions.

`--local` option of bundle-install:
  if an appropriate platform-specific gem exists on rubygems.org it will not be found.

see: <https://bundler.io/v2.1/man/bundle-install.1.html>

* Fix the relative links on sidebar tabs.

* Lock `html-proofer` in stable version (cotes2020#178)

* Update gitignore items

* Add editorconfig

Introduced by cotes2020#119

* Update issue template

* Move home breadcrumb to config.

* Generate sitemap by plugin

* Improve the bump version tool

* Improve docs

* Bump version to 2.6.0

* Fix tag <updated> and <summary> of feed.xml

* Bump version to 2.6.1

* Restore the runner tool

* Improve the issue/pr interceptor

* Fix the 404 title on mobile devices

* Bump version to 2.6.2

* Fix & rename CN version README

* Improve the interceptor action

Avoid secondary runs

* Fix yaml syntax of workflow

* Improve JS/CSS selector

Separate layout from tabs, and more friendly to tabs rename (cotes2020#187)

* Restore the archive-title that was deleted by mistake

* Change mode-toggle icon

* Regular improvement for liquid code

* Avoid mode switch button shifting

* Update runner tool

allow LAN access Jekyll

* Fix gh-actions cache not being hit issue (cotes2020#191)

* Simplify theme-mode config

* Improve travis config.

* Update the minimum version requirements of Jekyll

Jekyll allow custom sorting of collection documents from 4.x

* Simplify site config

* Add gitattributes

* Integrate with mermaid-js

* Introduce the mermaid in docs

* Update README & improve manual

* Improve the dark-mode color of the italics in code snippet

* Improve JS loading sequence

* Delay GA loading

* Fix detection of mermaid objects

* Fix underscores in the links of tags/categories (cotes2020#199)

* Update pwa cache list

* Add checkbox style to remove bogus rendered bullet (cotes2020#203)

* Improve image style (cotes2020#204)

* Improve the checkbox style (cotes2020#207)

Hotfix: the solution of cotes2020#203 will affect the layout `archives`

* Reduce the frequency of error reporting

The project maintainer determines whether it is a bug

* Add checkbox demo

* Create a more beautiful checkbox

The browser's default checkbox is too ugly, especially in dark mode

* Make table horizontal scroll (cotes2020#206)

* Revert "Improve image style (cotes2020#204)"

This reverts commit c1ef1f8.

* Improve image style (cotes2020#204)

* Always load browser default checkbox

* Beautify shape and color of checkbox

* Simplify checkbox with fontawesome icon

* Hire a new bot to deal with the issues

* Feature: Add reading time to posts

* Beautify the pin label on home page

* Optimize code snippet background color

* Feature: display the language of code snippets

* Improve code style

* Simplify the image custom class statement

* Improve CSS selector for image

* Bump version to 2.7.0

* Stop local HTML compression

* Fix the Jekyll minimum version requirement

Starting from Jekyll v4.1.0, the filter `number_of_words` accepts optional parameters to handle CKJ characters

* Simplify sidebar style

Avoid element shifting when rendering

* Optimize typography

- Set the table width to 100% on small screens
- Optimize list style
- Optimize image style
- Make checkbox color lighter (light mode)
- Reduce the space for inline code

* Jump to the anchor position smoothly

* Fix the position of the table scroll bar

* Update docs

-  Add description list sample
-  Improve doc content

* Bump version to 2.7.1

* Fix the compatibility of the smooth scrolling in Safari

Safari(at least on v14) does not support CSS property `scroll-behavior`

* Use liquid to determine whether to render ToC

* Improve GitHub stuff

- Add more events to the issue interceptor
- Reduce issue label

* Remove inline code extra content

* Fix the dir name for hosting posts

* Optimize the DOM of post link on homepage

* Update pages-deploy.yml.hook (cotes2020#229)

This change will make the baseurl configuration/testing work. Previous version failed. Posts should have /index.html as suffix in my experience.

* Improve the smooth scrolling

- Add smooth scrolling to the footnotes
- Add hash to URL

* Upgrade dependencies in Gemfile.lock

* Bump version to 2.7.2

* Add instructions to setup Page Views

This patch adds a new blog post to setup Page Views
using Google analytics superProxy.

Signed-off-by: Dinesh Prasanth M K <[email protected]>

* Fix nokogiri vulnerability

Upgrade nokogiri to 1.11.0.rc4  or later

* Add image CDN support & improve image lazy loading

* Remove the image files

* Add image CDN tutorial

* Prevent the URLs of code block from being clickable

* Fix typo in dark typography SCSS (cotes2020#249)

* Fix avatar url  when `site.baseurl` exists (cotes2020#253)

* Allow the PRs from dependabot

* Bump html-proofer from 3.18.3 to 3.18.5 (cotes2020#257)

Bumps [html-proofer](https://github.com/gjtorikian/html-proofer) from 3.18.3 to 3.18.5.
- [Release notes](https://github.com/gjtorikian/html-proofer/releases)
- [Commits](gjtorikian/html-proofer@v3.18.3...v3.18.5)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Fix baseUrl on rss-feed (cotes2020#259)

* Fix PV display when baseurl exists

* Optimize url filters

* Optimize image width of list on mobile screens

* Make code block 100% screen width on mobile

* Contact theme styles

* Fix a typo on css

* Process JS files with gulp

* Add gem-based settings

* Set default values for site variables

good for gem-based first run

* Improve the copyrights of the assets

* Optimize the embedded list style

* Update the usage instructions

* Bump version to 3.0.0

* Meaningless commit

RubyGems doesn't allow re-pushing the yanked version (3.0.0), so we have to bump a new patch version

* Bump version to 3.0.1

* Improve the gh-actions CD script

* Fix footer links

* Fix typo of docs

* Fix bump tool

* Bump version to 3.0.2

* Improve code style

- js/css
- markdown
- shell

* Fix the year of copyright

* Add new tool to build gem

* Fix toc of readme

* Bypass the jekyll build on source branch

* Merge gem-build & bump tool

Drop the yard doc

* Add more spec meta to gem

* Bump version to 3.0.3

* Add alt attribute to the post's preview image (cotes2020#271)

* Improve the docs

- Add missing url references in the tutorial
- Add gem version badge in README

* Fix post feature image style

* Exclude gem-spec from output

* Generate the breadcrumb by Liquid

also subtracted '/tabs/' from the tabs path

* Add lang option to the site config sample

* Fix gemfile

* Bump tzinfo-data from 1.2020.6 to 1.2021.1 (cotes2020#272)

Bumps [tzinfo-data](https://github.com/tzinfo/tzinfo-data) from 1.2020.6 to 1.2021.1.
- [Release notes](https://github.com/tzinfo/tzinfo-data/releases)
- [Commits](tzinfo/tzinfo-data@v1.2020.6...v1.2021.1)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Improve docs

* Reduce the font size of the Disqus prompt

* Restore the prompt in the page nav button in the latest/oldest articles

* Improved bump tool to fit the release branches

* Update travis settings for release-branches

- drop the deprecated flag `--deployment` of bundle (so we have to specify the bundler caching path)

* Bump version to 3.1.0

* Update dependencies in Gemfile.lock

* Give travis a new job: monitor the starter files

* Use regex in site exclusion list

* Hide empty categries/tags in search (cotes2020#273)

* Fix search results slow scrolling (cotes2020#273)

also:
- improve its responsive design
- fix the js path in gulp

* Add a modification to `Gemfile.lock` in bump tool

* Bump version to 3.1.1

* Improve the width of search results items (fix cotes2020#276)

* Fix typo in readme & quick-start tutorial

* Optimize the language badge position in code block

* Add branches notice to the Docs

* Improve the bump tool

* Bump version to 3.2.0

(cherry picked from commit bb6d5ea)

* Restore the copy link button in the post sharing option

Affected version >= 3.0.3, <= 3.2.0

* Bump version to 3.2.1

(cherry picked from commit 759579c)

* Fix image width in the list (when screen width is 768px)

* Migration from BMC to Ko-fi

* Update the condition of issues intercept

* Update the prompt of comments

* Restore the year of first publication in footer

* Update the sponsor buttons

* Improve the bump tool

* Bump html-proofer from 3.18.5 to 3.18.6

Bumps [html-proofer](https://github.com/gjtorikian/html-proofer) from 3.18.5 to 3.18.6.
- [Release notes](https://github.com/gjtorikian/html-proofer/releases)
- [Commits](gjtorikian/html-proofer@v3.18.5...v3.18.6)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Change the order of post meta & improve timeago

* Change the bundle cache path on gh-actions

ubuntu-latest changed from 18.04 TLS to 20.04 LTS causes a file path change to the `ffi` gem, invalidating the gh-actions cache file, and causes the build to fail.

See: <ffi/ffi#769>

* Fix the corners of the page navigation buttons of the latest/oldest post

* Bump version to 3.2.2

(cherry picked from commit 6b63336)

* Improve the pattern of issue bot

* Support TeX and LaTeX math delimiters (cotes2020#243)

* Update typing error

* Disable configuration option 'site.author'

* Revert "Restore the year of first publication in footer"

This reverts commit 28eb18a.

* Fix PWA error caused by service worker store the POST Request as cache key

fix cotes2020#297, fix cotes2020#301

* Fix the cache list on service worker

Adding '/index.html' to the cache storage

* Fix a code snippet of tutorial

* Update docs

- Remove ToC
- Remove JetBrains logo from readme
- Update funding options

* [Security] Bump kramdown from 2.3.0 to 2.3.1

Bumps [kramdown](https://github.com/gettalong/kramdown) from 2.3.0 to 2.3.1. **This update includes a security fix.**
- [Release notes](https://github.com/gettalong/kramdown/releases)
- [Changelog](https://github.com/gettalong/kramdown/blob/master/doc/news.page)
- [Commits](https://github.com/gettalong/kramdown/commits)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Update ruby setup actions (fix cotes2020#306)

No longer tracking Gemfile.lock

* Remove a stale variable from timeago.js

* Rename copyright file for JS

* Optimize the typo color

* Update the bump tool

* Bump version to 3.3.0

(cherry picked from commit d31b36c)

* Fix the MathJax config was lost in jekyll-compress-html

* Bump version to 3.3.1

(cherry picked from commit 8dbef1b)

* Remove default post

* Fix reverted post

Co-authored-by: Cotes Chung <[email protected]>
Co-authored-by: 김동주 <[email protected]>
Co-authored-by: Honnix <[email protected]>
Co-authored-by: Marnick Vandecauter <[email protected]>
Co-authored-by: Wei Wang <[email protected]>
Co-authored-by: Alexandra Zaharia <[email protected]>
Co-authored-by: Dinesh Prasanth M K <[email protected]>
Co-authored-by: Henk van Achterberg <[email protected]>
Co-authored-by: Dinesh Prasanth M K <[email protected]>
Co-authored-by: Ryan TG <[email protected]>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Bogdan Stoica <[email protected]>
Co-authored-by: DuchkPy <[email protected]>
  • Loading branch information
14 people authored Apr 3, 2021
1 parent 883ec14 commit a85d618
Show file tree
Hide file tree
Showing 162 changed files with 4,522 additions and 3,906 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
# 2 space indentation
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
16 changes: 16 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Set default behavior to automatically normalize line endings.
* text=auto

# Force bash scripts to always use LF line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf

# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.ico binary
73 changes: 73 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at `[email protected]`. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>

For answers to common questions about this code of conduct, see
<https://www.contributor-covenant.org/faq>

[homepage]: https://www.contributor-covenant.org
16 changes: 16 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# How to Contribute

I want to thank you for sparing a time to improve this project! Here are some guidelines for contributing:

To ensure that the blog design is not confused, this project does not accept suggestions for design changes, such as color scheme, fonts, typography, etc. If your request is about an enhancement, it is recommended to first submit a [`Feature Request`](https://github.com/cotes2020/jekyll-theme-chirpy/issues/new?labels=enhancement&template=feature_request.md) issue to discuss whether your idea fits the project.

Generally, contribute to the project by:

1. Fork this project on GitHub and clone it locally.
2. Create a new branch from `master` and give it a descriptive name (e.g., `my-new-feature`, `fix-a-bug`).
3. After completing the development, commit and push to remote.
4. Submit a new pull request.

---

:tada: Your volunteering will make the open source world more beautiful, thanks again! :tada:
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
custom:
- https://www.buymeacoffee.com/coteschung
- https://cotes.gitee.io/alipay-wechat-donation
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: Bug Report
about: Create a report to help us improve
---

<!-- NOTE: Please maintain all sections, otherwise the issue will be automatically closed :) -->

## Checklist
<!-- Please complete the following list of tasks, and then check it by change the "[ ]" to "[x]" -->
- [ ] I have read the [tutorials](https://chirpy.cotes.info/categories/tutorial/) and know the correct effect of the functional design.
- [ ] There are no similar reports on existing issues (including closed ones).
- [ ] I found the bug on the latest code of `master` branch.

## Describe the bug
<!-- A clear and concise description of what the bug is. -->

### To Reproduce

Steps to reproduce the behavior:
<!--
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->

### Expected behavior
<!-- A clear and concise description of what you expected to happen. -->

### Screenshots
<!-- If applicable, add screenshots to help explain your problem. -->

### Software
<!-- Please complete the following information -->
- Ruby version: <!-- by running: `ruby -v` -->
- Gem version: <!-- by running: `gem -v`-->
- Bundler version: <!-- by running: `bundle -v`-->
- Jekyll version: <!-- by running: `bundle list | grep " jekyll "` -->

### Desktop
<!-- If necessary, uncomment and fill in the following list:
- OS: [e.g. macOS 10.15.6]
- Browser: [e.g. Chrome 85.0.4183.83 (64-bit)]
-->

### Smartphone
<!-- If necessary, uncomment and fill in the following list:
- Device: [e.g. iPhone 6]
- OS: [e.g. iOS 13.6.1]
- Browser: [e.g. Chrome 22]
-->

### Additional context
<!-- Add any other context about the problem here. -->
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Feature Request
about: Suggest an idea for this project
labels: enhancement
---

<!-- NOTE: Please maintain all sections, otherwise the issue will be automatically closed :) -->

## Checklist
<!-- Please complete the following list of tasks, and then check it by change the "[ ]" to "[x]" -->
- [ ] I have read the [contributing guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/CONTRIBUTING.md).
- [ ] There are no similar request on existing issues (including closed ones).
- [ ] I have read the [project progress](https://github.com/cotes2020/jekyll-theme-chirpy/projects) and know the current progress of the project.
- [ ] I was in the `master` branch of the latest code.


## Is your feature request related to a problem? Please describe
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->


## Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->


## Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->


## Additional context
<!-- Add any other context or screenshots about the feature request here. -->
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Question
about: Ask what ever you want
labels: question
---

<!-- NOTE: Please maintain all sections, otherwise the issue will be automatically closed :) -->

## Checklist

<!-- Please complete the following list of tasks, and then check it by change the "[ ]" to "[x]" -->

- [ ] I have read the [tutorials](https://chirpy.cotes.info/categories/tutorial/) and know the correct effect of the functional design.
- [ ] There are no similar question on existing issues (including closed ones).
- [ ] I searched the Internet for related problems, but still couldn't solve it.
- [ ] My question is based on the latest code of `master` branch.

## Description
<!-- Please describe your question in detial. -->
44 changes: 44 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## Description

<!--
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
-->

e.g. Fixes #(issue)

## Type of change

<!--
Please select the desired item checkbox and change it to "[x]", then delete options that are not relevant.
-->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation update

## How has this been tested

<!--
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
-->

- [ ] I have run `bash ./tools/test.sh --build` (at the root of the project) locally and passed
- [ ] I have tested this feature in the browser

### Test Configuration

- Browerser type & version:
- Operating system:
- Bundler version:
- Ruby version:
- Jekyll version:

### Checklist
<!-- Select checkboxes by change the "[ ]" to "[x]" -->
- [ ] My code follows the [Google style guidelines](https://google.github.io/styleguide/)
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] Any dependent changes have been merged and published in downstream modules
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Clean up the stale issues

daysUntilStale: 30
daysUntilClose: 1

exemptLabels:
- in progress
- pending

staleLabel: stale

markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
closeComment: false
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: 'Continuous Integration'
on:
push:
branches-ignore:
- 'production'
tags-ignore:
- '*'
paths-ignore:
- '.github/**'
- '!.github/workflows/ci.yml'
- '.travis.yml'
- '.gitignore'
- 'docs/**'
- 'README.md'
- 'LICENSE'
pull_request:
paths:
- '**'

jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # for posts's lastmod

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true

- name: Build Site
env:
JEKYLL_ENV: production
run: |
bundle exec jekyll b
- name: Test Site
run: |
bash tools/test.sh
20 changes: 20 additions & 0 deletions .github/workflows/issue-pr-interceptor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Intercept bad issue/PRs"

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
autoclose:
runs-on: ubuntu-latest
steps:
- name: Auto close issues/pr that did not follow template
uses: roots/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-pattern: "(\\[x\\]|\\[X\\]) I have read"
issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template."
pr-pattern: "(\\[x\\]|\\[X\\]) (Bug fix|New feature|Breaking change|Documentation update)|@dependabot"
pr-close-message: ":wave: Hi @${pull_request.user.login},\n\nThis PR is being automatically closed because it does not follow the PR template."
Loading

0 comments on commit a85d618

Please sign in to comment.