forked from doocs/source-code-hunter
-
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.
- Loading branch information
Showing
4 changed files
with
68 additions
and
35 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
name: Compress | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "**.jpg" | ||
- "**.jpeg" | ||
- "**.png" | ||
- "**.webp" | ||
|
||
jobs: | ||
compress: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'doocs/source-code-hunter' | ||
steps: | ||
- name: Checkout Branch | ||
uses: actions/checkout@v2 | ||
|
||
- name: Compress Images | ||
uses: calibreapp/image-actions@master | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
compressOnly: true | ||
|
||
- name: Commit Files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -m "[Automated] Optimize images" -a | ||
- name: Push Changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -10,9 +10,14 @@ | |
<meta name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" /> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" /> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-[email protected]/dist/style.css" /> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png" /> | ||
<style> | ||
.markdown-section code { | ||
font-weight: 400; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
@@ -50,10 +55,20 @@ | |
maxLevel: 3, | ||
auto2top: true, | ||
search: ["/"], | ||
darkMode: { | ||
light: { | ||
toggleBtnBg: "#42b983", | ||
darklightTheme: { | ||
defaultTheme: 'light', | ||
siteFont: 'Source Sans Pro,Helvetica Neue,Arial,sans-serif', | ||
codeFontFamily: 'Roboto Mono, Monaco, courier, monospace', | ||
bodyFontSize: '15px', | ||
dark: { | ||
background: '#191919', | ||
highlightColor: '#e96900', | ||
codeBackgroundColor: '#202020', | ||
codeTextColor: '#b4b4b4', | ||
}, | ||
light: { | ||
highlightColor: '#e96900', | ||
} | ||
}, | ||
plugins: [ | ||
function (hook) { | ||
|
@@ -78,11 +93,11 @@ | |
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-json.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-java.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-python.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify-[email protected]/dist/index.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code@2.1.1/dist/docsify-copy-code.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js"></script> | ||
</body> | ||
|
||
</html> |