Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
laolaolulu committed Oct 20, 2023
1 parent 55549ae commit 16cabd0
Show file tree
Hide file tree
Showing 47 changed files with 214 additions and 53 deletions.
2 changes: 1 addition & 1 deletion docs/404.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/about/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/archives/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/js/data/search.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions docs/assets/lib/.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
10 changes: 10 additions & 0 deletions docs/assets/lib/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
versioning-strategy: increase
groups:
npm:
dependency-type: "production"
schedule:
interval: "weekly"
8 changes: 8 additions & 0 deletions docs/assets/lib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# hidden files
.*
!.git*
!.editorconfig

# NPM
node_modules
package-lock.json
21 changes: 21 additions & 0 deletions docs/assets/lib/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2022 Cotes Chung

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.
78 changes: 78 additions & 0 deletions docs/assets/lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Static Assets for Chirpy Jekyll Theme

## Introduction

Static assets (libraries/plugins/web-fonts) required by the [_Chirpy_][chirpy] based website to run. It provides the opportunity to choose self-host assets in production or development mode.

## Usage

- If you want to use these assets only in local development:

Go to the root of your site and clone the assets as follows:

```console
$ git submodule init
$ git submodule update
```

And then set your site configuration options:

```yml
# _config.yml
assets:
self_host:
enabled: true
env: development
```

- If you expect the assets to be self-hosted when your website is published:

Keep the `_config.yml` options as follows:

```yml
# _config.yml
assets:
self_host:
enabled: true
```

And then update the GitHub Actions workflow in `.github/workflows/pages-deploy.yml`:

```diff
steps:
- name: Checkout
uses: actions/checkout@v2
with:
+ submodules: true
```

## Versions

| Dependency | Version |
| :------------------------------------------------------- | --------: |
| [Bootstrap][bootstrap] | `5.3.2` |
| [Clipboard][clipboard] | `2.0.11` |
| [Day.js][dayjs] | `1.11.10` |
| [Font Awesome Free][fontawesome] | `6.4.2` |
| [jQuery][jquery] | `3.7.1` |
| [Loading-attribute-polyfill][loading-attribute-polyfill] | `2.1.1` |
| [Magnific Popup][magnific-popup] | `1.1.0` |
| [Mermaid][mermaid] | `10.5.0` |
| [Simple-Jekyll-Search][simple-jekyll-search] | `1.10.0` |
| [Tocbot][tocbot] | `4.21.2` |

[assets]: https://github.com/cotes2020/chirpy-static-assets
[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy

<!-- deps -->

[bootstrap]: https://www.jsdelivr.com/package/npm/bootstrap
[clipboard]: https://www.jsdelivr.com/package/npm/clipboard
[dayjs]: https://www.jsdelivr.com/package/npm/dayjs
[fontawesome]: https://fontawesome.com/download
[jquery]: https://www.jsdelivr.com/package/npm/jquery
[loading-attribute-polyfill]: https://www.jsdelivr.com/package/npm/loading-attribute-polyfill
[magnific-popup]: https://www.jsdelivr.com/package/npm/magnific-popup
[mermaid]: https://www.jsdelivr.com/package/npm/mermaid
[simple-jekyll-search]: https://www.jsdelivr.com/package/npm/simple-jekyll-search
[tocbot]: https://www.jsdelivr.com/package/npm/tocbot
14 changes: 14 additions & 0 deletions docs/assets/lib/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.2",
"bootstrap": "^5.3.2",
"clipboard": "^2.0.11",
"dayjs": "^1.11.10",
"jquery": "^3.7.1",
"lazysizes": "^5.3.2",
"magnific-popup": "^1.1.0",
"mermaid": "^10.5.0",
"simple-jekyll-search": "^1.10.0",
"tocbot": "^4.21.2"
}
}
1 change: 1 addition & 0 deletions docs/baidu_verify_codeva-cklKzh2EOt.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24fbe74b97a1ee55de500d2509b22f7d
1 change: 1 addition & 0 deletions docs/bdunion.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18b84b95fadc3115521ffb81a9b40797
Loading

0 comments on commit 16cabd0

Please sign in to comment.