forked from spring-projects/spring-framework
-
Notifications
You must be signed in to change notification settings - Fork 9
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
430 changed files
with
20,908 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
name: Deploy GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- analysis | ||
jobs: | ||
deploy-gh-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# https://github.com/actions/checkout | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: analysis | ||
persist-credentials: false | ||
|
||
# https://github.com/actions/setup-java | ||
- name: Set up JDK ☕️ | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
# https://github.com/actions/setup-node | ||
- name: Setup Node.js 🕸 | ||
uses: actions/setup-node@v4 | ||
with: | ||
# https://github.com/nvm-sh/nvm#long-term-support | ||
node-version: 'lts/*' | ||
|
||
- name: Install Graphviz 🐰 | ||
run: | | ||
sudo apt update -y -m | ||
sudo apt install -y python3-pip | ||
# https://graphviz.org/ | ||
sudo apt install -y graphviz | ||
# https://blockdiag.com/en/seqdiag/index.html | ||
pip3 install seqdiag | ||
# https://blockdiag.com/en/blockdiag/index.html | ||
pip3 install blockdiag | ||
# https://blockdiag.com/en/actdiag/index.html | ||
pip3 install actdiag | ||
# https://blockdiag.com/en/nwdiag/index.html | ||
pip3 install nwdiag | ||
# https://github.com/Deep-Symmetry/bytefield-svg | ||
npm install -g bytefield-svg | ||
# https://github.com/gtudan/bpmn-js-cmd | ||
npm install -g bpmn-js-cmd | ||
- name: Install font 🎃 | ||
run: | | ||
mkdir $HOME/.fonts | ||
cd $HOME/.fonts | ||
wget https://github.com/diguage/open-fonts/releases/download/latest/SourceHanSerifSC-Regular.otf | ||
wget https://github.com/diguage/open-fonts/releases/download/latest/SourceHanSansSC-Regular.otf | ||
wget https://github.com/diguage/open-fonts/releases/download/latest/SourceCodePro-Regular.otf | ||
wget https://github.com/diguage/open-fonts/releases/download/latest/SourceCodePro-It.otf | ||
wget https://github.com/diguage/open-fonts/releases/download/latest/SourceCodePro-Bold.otf | ||
wget https://github.com/diguage/open-fonts/releases/download/latest/SourceCodePro-BoldIt.otf | ||
echo -e "[seqdiag]\nfontpath = $HOME/.fonts/SourceHanSerifSC-Regular.otf" > $HOME/.blockdiagrc | ||
echo -e "\n[blockdiag]\nfontpath = $HOME/.fonts/SourceHanSerifSC-Regular.otf" >> $HOME/.blockdiagrc | ||
echo -e "\n[actdiag]\nfontpath = $HOME/.fonts/SourceHanSerifSC-Regular.otf" >> $HOME/.blockdiagrc | ||
echo -e "\n[nwdiag]\nfontpath = $HOME/.fonts/SourceHanSerifSC-Regular.otf" >> $HOME/.blockdiagrc | ||
# Check result | ||
ls -lh $HOME/.fonts | ||
cat $HOME/.blockdiagrc | ||
- name: Build 🔧 | ||
continue-on-error: true | ||
run: ./gradlew :truman:asciidoctor --no-build-cache | ||
|
||
- name: Custom Code Style 🐦 | ||
run: | | ||
sudo apt install -y sed | ||
sed -i 's/<\/head>/<style>p>code{color: #d14 !important;background-color: #f5f5f5 !important;border: 1px solid #e1e1e8;white-space: nowrap;border-radius: 3px;}<\/style>\n<\/head>/' truman/build/docs/html5/index.html | ||
- name: Compress Style 🍭 | ||
run: | | ||
npm install cssnano-cli --global | ||
cd truman/build/docs/html5/css | ||
for f in `ls *.css`; | ||
do | ||
fn="${f%.*}.min.css"; | ||
cssnano $f $fn; | ||
rm -rf $f; | ||
mv $fn $f | ||
done | ||
- name: Compress HTML 🦄 | ||
run: | | ||
npm install html-minifier --global | ||
cd truman/build/docs/html5 | ||
echo '{"caseSensitive":true, | ||
"collapseBooleanAttributes":true, | ||
"keepClosingSlash":true, | ||
"processConditionalComments":true, | ||
"removeComments":true, | ||
"removeEmptyAttributes":true, | ||
"removeRedundantAttributes":true, | ||
"removeScriptTypeAttributes":true, | ||
"removeStyleLinkTypeAttributes":true, | ||
"sortAttributes":true, | ||
"sortClassName":true, | ||
"useShortDoctype":true}' >> html-minifier.config.json | ||
html-minifier -c html-minifier.config.json index.html -o index.min.htm | ||
rm -rf *.html .asciidoctor | ||
mv index.min.htm index.html | ||
# https://github.com/JamesIves/github-pages-deploy-action | ||
- name: Deploy 🚀 | ||
continue-on-error: true | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: dgh-pages # The branch the action should deploy to. | ||
folder: truman/build/docs/html5 # The folder the action should deploy. | ||
single-commit: true |
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,39 @@ | ||
on: | ||
schedule: | ||
- cron: '0 4 * * *' | ||
# scheduled at 04:00 everyday | ||
|
||
workflow_dispatch: # click the button on Github repo! | ||
|
||
|
||
jobs: | ||
sync-with-upstream: | ||
runs-on: ubuntu-latest | ||
name: Sync main with upstream latest | ||
|
||
steps: | ||
# Step 1: run a standard checkout action, provided by github | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
with: | ||
ref: main | ||
|
||
# Step 2: run this sync action - specify the upstream repo, | ||
# upstream branch to sync with, and target sync branch | ||
- name: Fork Sync With Upstream 😘 | ||
id: sync | ||
uses: aormsby/[email protected] | ||
with: | ||
upstream_repository: spring-projects/spring-framework | ||
upstream_branch: main | ||
target_branch: main | ||
git_pull_args: --ff-only # optional arg use, defaults to simple 'pull' | ||
|
||
# Step 3: Display a message if 'sync' step had new commits (simple test) | ||
- name: Check for new commits 🎉 | ||
if: steps.sync.outputs.has_new_commits | ||
run: echo "There were new commits." | ||
|
||
# Step 4: Print a helpful timestamp for your records (not required, just nice) | ||
- name: Timestamp ✌️ | ||
run: date |
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,33 @@ | ||
= Spring 源码分析^Alpha^ | ||
:image_attr: align="center",width=100% | ||
|
||
|
||
本文档是 D瓜哥 阅读 Spring 源码以及相关文档时的笔记。对学习内容做一些总结和提炼,分享出来也方便大家一起学习,共同进步。 | ||
|
||
== 友情支持 | ||
|
||
如果您觉得这个笔记对您有所帮助,看在D瓜哥码字的辛苦上,请友情支持一下,D瓜哥感激不尽,😜 | ||
|
||
[cols="2*^",frame=none] | ||
|=== | ||
| image:truman/src/docs/asciidoc/images/alipay.png[title="支付宝", alt="支付宝", width="95%"] | ||
| image:truman/src/docs/asciidoc/images/wxpay.jpg[title="微信", alt="微信", width="95%"] | ||
|=== | ||
|
||
有些打赏的朋友希望可以加个好友,欢迎关注D瓜哥的微信公众号,这样就可以通过公众号的回复直接给我发信息。 | ||
|
||
image::truman/src/docs/asciidoc/images/wx-jikerizhi.png[{image_attr}] | ||
|
||
TIP: **公众号的微信号是: jikerizhi (“极客日志”全拼)**。__因为众所周知的原因,有时图片加载不出来。如果图片加载不出来可以直接通过搜索微信号来查找我的公众号。__ | ||
|
||
== 官网及版本库 | ||
|
||
本文档的版本库托管在 Github 上,另外单独发布。 | ||
|
||
“地瓜哥”博客网:: https://www.diguage.com/[^] 。D瓜哥的个人博客。欢迎光临,不过,内容很杂乱,请见谅。不见谅,你来打我啊,😂😂 | ||
本文档官网:: https://diguage.github.io/spring-framework/[^] 。为了方便阅读,这里展示了处理好的文档。阅读请点击这个网址。 | ||
本文档版本库:: https://github.com/diguage/spring-framework[^] 。由于组织方式的特殊性,坦白讲,不建议大家发 PR。有问题,欢迎发 Issue 讨论。 | ||
|
||
== 欢迎搞基 | ||
|
||
大家有任何问题,可以通过发 Issue 或 在 Discussions 中发帖讨论,我已经开通了 Issues 和 Discussions。 |
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
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
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
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
Oops, something went wrong.