forked from jeffreytse/jekyll-theme-yat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from yat-robot/develop
Added first draft of project's planning
- Loading branch information
Showing
93 changed files
with
3,344 additions
and
3,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
name: Github Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master # Here source code branch is `master`, it could be other branch | ||
push: | ||
branches: | ||
- master # Here source code branch is `master`, it could be other branch | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Use GitHub Actions' cache to cache dependencies on servers | ||
- uses: actions/cache@v1 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
# Use GitHub Actions' cache to cache dependencies on servers | ||
- uses: actions/cache@v1 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
# Use GitHub Deploy Action to build and deploy to Github | ||
- uses: jeffreytse/jekyll-deploy-action@master | ||
with: | ||
provider: 'github' | ||
token: ${{ secrets.GITHUB_TOKEN }} # It's your Personal Access Token(PAT) | ||
repository: '' # Default is current repository | ||
branch: 'gh-pages' # Default is gh-pages for github provider | ||
jekyll_src: './' # Default is root directory | ||
jekyll_cfg: '_config.yml' # Default is _config.yml | ||
jekyll_baseurl: '/jekyll-theme-yat' # Default is empty | ||
cname: '' # Default is to not use a cname | ||
actor: '' # Default is the GITHUB_ACTOR | ||
# Use GitHub Deploy Action to build and deploy to Github | ||
- uses: jeffreytse/jekyll-deploy-action@master | ||
with: | ||
provider: "github" | ||
token: ${{ secrets.GITHUB_TOKEN }} # It's your Personal Access Token(PAT) | ||
repository: "" # Default is current repository | ||
branch: "gh-pages" # Default is gh-pages for github provider | ||
jekyll_src: "./" # Default is root directory | ||
jekyll_cfg: "_config.yml" # Default is _config.yml | ||
jekyll_baseurl: "/jekyll-theme-yat" # Default is empty | ||
cname: "" # Default is to not use a cname | ||
actor: "" # Default is the GITHUB_ACTOR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: pre-commit action | ||
|
||
on: | ||
pull_request: | ||
branches: [main, develop] | ||
push: | ||
branches: [main, develop] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# Jekyll | ||
*.gem | ||
.bundle | ||
.sass-cache | ||
_site | ||
Gemfile.lock | ||
|
||
# Node | ||
node_modules/ | ||
package-lock.json | ||
package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-merge-conflict | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.1.0 | ||
hooks: | ||
- id: prettier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
assets/css/main.scss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# .prettierrc or .prettierrc.yaml | ||
trailingComma: "es5" | ||
tabWidth: 4 | ||
semi: false | ||
singleQuote: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
|
||
source "https://rubygems.org" | ||
gemspec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
home: | ||
heading: "Yet Another TurtleBot" | ||
subheading: "Two-wheeled mobile robot based on SoC Zynq 7000" | ||
banner: "Your image url" | ||
heading: "Yet Another TurtleBot" | ||
subheading: "Two-wheeled mobile robot based on SoC Zynq 7000" | ||
banner: "Your image url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{% comment %} | ||
Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons: | ||
|
||
1. Head over to https://realfavicongenerator.net/ to add your own favicons. | ||
2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet. | ||
{% endcomment %} | ||
{% comment %} Placeholder to allow defining custom head, in principle, you can | ||
add anything here, e.g. favicons: 1. Head over to | ||
https://realfavicongenerator.net/ to add your own favicons. 2. Customize default | ||
_includes/custom-head.html in your source directory and insert the given code | ||
snippet. {% endcomment %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<div id="click-to-top" class="click-to-top"> | ||
<i class="fa fa-arrow-up"></i> | ||
<i class="fa fa-arrow-up"></i> | ||
</div> | ||
<script> | ||
(function () { | ||
const clickToTop = document.getElementById('click-to-top'); | ||
window.addEventListener('scroll', () => { | ||
if (window.scrollY > 100) { | ||
clickToTop.classList.add('show') | ||
}else { | ||
clickToTop.classList.remove('show') | ||
} | ||
}); | ||
clickToTop.addEventListener('click', () => { | ||
window.smoothScrollTo(0); | ||
}); | ||
})(); | ||
;(function () { | ||
const clickToTop = document.getElementById("click-to-top") | ||
window.addEventListener("scroll", () => { | ||
if (window.scrollY > 100) { | ||
clickToTop.classList.add("show") | ||
} else { | ||
clickToTop.classList.remove("show") | ||
} | ||
}) | ||
clickToTop.addEventListener("click", () => { | ||
window.smoothScrollTo(0) | ||
}) | ||
})() | ||
</script> |
Oops, something went wrong.