Skip to content

Commit

Permalink
重制主题 v3发布
Browse files Browse the repository at this point in the history
  • Loading branch information
RavelloH committed Aug 19, 2023
1 parent f19d4fe commit afb3131
Show file tree
Hide file tree
Showing 101 changed files with 12,678 additions and 2,467 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.html linguist-detectable=false
*.html linguist-detectable=false
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: 'RTheme Build'
on:
push:
paths:
- '**'
workflow_dispatch:

permissions:
contents: write
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'Setup Git'
run: |
git init
git pull
git config --local user.email "[email protected]"
git config --local user.name "Ravello-H"
- name: 'Setup nodejs'
uses: actions/setup-node@v3
with:
node-version: 'latest'
- name: 'Install requirements'
run: |
npm install
- name: 'RPageSearch'
continue-on-error: True
run: |
cd program
node search.js
git add -A
git commit -m "[RPageSearch]`date '+%Y-%m-%d %H:%M:%S'`" || exit
- name: 'local-feed-generation'
continue-on-error: True
run: |
cd program
node feed.js
git add -A
git commit -m "[local-feed-generation]`date '+%Y-%m-%d %H:%M:%S'`" || exit
- name: 'local-sitemap-generation'
continue-on-error: True
run: |
cd program
node fileList.js
npx sitemap < ../assets/data/urlList.txt > ../sitemap.xml
git add -A
git commit -m "[local-sitemap-generation]`date '+%Y-%m-%d %H:%M:%S'`" || exit
- name: 'Commit files'
continue-on-error: True
run: |
git diff
git status
git push -f || exit
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: deploy
on: [push]
jobs:
gitee:
runs-on: ubuntu-latest
steps:
- uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_PRIVATE_KEY }}
with:
source-repo: '[email protected]:RavelloH/ravelloh.github.io.git'
destination-repo: '[email protected]:ravelloh/ravelloh.git'
reload-pages:
needs: gitee
runs-on: ubuntu-latest
steps:
- name: reload
uses: mizuka-wu/[email protected]
with:
repository: RavelloH/ravelloh
cookie: ${{ secrets.GITEE_COOKIE }}
branch: master
https: true
21 changes: 21 additions & 0 deletions .github/workflows/tree.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push]

jobs:
tree:
runs-on: ubuntu-latest
name: readme-tree
steps:
- uses: actions/checkout@v3
- name: Tree
uses: RavelloH/readme-tree@latest
- name: commit
continue-on-error: True
run: |
git init
git pull
git config --local user.email "[email protected]"
git config --local user.name "Ravello-H"
git add .
git commit -m "[Readme-Tree]`date '+%Y-%m-%d %H:%M:%S'`" || exit
git status
git push -f
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.inside
*.bak
.vscode
**/node_modules
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
assets/js/lib/**
*.json
assets/data/**
*.min.js
assets/js/pjax.js
*.html
*.htm
assets/css/iconfont.css
assets/css/hybrid.min.css
README.md
20 changes: 20 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
printWidth: 100,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
jsxBracketSameLine: true,
arrowParens: 'always',
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'ignore',
vueIndentScriptAndStyle: false,
endOfLine: 'lf',
embeddedLanguageFormatting: 'auto',
};
Loading

0 comments on commit afb3131

Please sign in to comment.