Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
whatyn
MyNotes
提交
5efaa9f7
M
MyNotes
项目概览
whatyn
/
MyNotes
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MyNotes
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5efaa9f7
编写于
1月 07, 2022
作者:
whatyn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
c0f48230
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
113 addition
and
30 deletion
+113
-30
gitlab、github、gitee布署mkdocs主题仓库.md
gitlab、github、gitee布署mkdocs主题仓库.md
+22
-5
git平台docsify布署markdown文件.md
git平台docsify布署markdown文件.md
+38
-8
note.md
note.md
+53
-17
未找到文件。
gitlab、github、gitee布署mkdocs主题仓库.md
浏览文件 @
5efaa9f7
...
...
@@ -25,7 +25,9 @@ mkdocs安装 pip install mkdocs
```
gitlab mkdocs主题仓库 (推送文件自动布署)
创建方法:
创建 mkdocs.yml、.gitlab-ci.yml文件。创建docs目录,markdown文件放在此处。推送到仓库。
1、创建 mkdocs.yml、.gitlab-ci.yml文件。
2、创建docs目录,markdown文件放在此处。
3、推送到仓库。
可fork此仓库 https://gitlab.com/xuyq123/plain-mkdocs https://xuyq123.gitlab.io/plain-mkdocs
注意:若部署失败,可在 CI/CD --> Jobs查看原因,修改 .gitlab-ci.yml 文件。
...
...
@@ -45,8 +47,9 @@ gitlab mkdocs主题仓库 (推送文件自动布署)
https://blog.csdn.net/qq_32332433/article/details/106148965
------
```
```
主题安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mkdocs-Bootswatch 安装多个主题
...
...
@@ -93,6 +96,8 @@ github mkdocs主题仓库 (mkdocs gh-deploy 一键布署)
2、本地调试 mkdocs serve 访问:http://127.0.0.1:8000/ 。 推送上述三个文件。
3、一键布署 mkdocs gh-deploy (自动生成 gh-pages分支,发布GithubPages )
可fork此仓库 https://github.com/scott180/plain-mkdocs https://scott180.github.io/plain-mkdocs/
后期更新文件,只需执行 mkdocs gh-deploy 。
本地调试:
安装 python 及 mkdocs
...
...
@@ -128,4 +133,17 @@ gitee mkdocs主题仓库 (GiteePages服务布署目录)
```
---
\ No newline at end of file
---
### 5、示例
| 仓库 | 地址 | 备注 |
| ----- | ------------------------------------------------------------- | ----------------------------------- |
| gitlab |
[
plain-mkdocs
](
https://gitlab.com/xuyq123/plain-mkdocs
)
 
[
**网页**
](
https://xuyq123.gitlab.io/plain-mkdocs
)
<br/>
[
plain-pip-mkdocs
](
https://gitlab.com/xuyq123/plain-pip-mkdocs
)
 
[
网页
](
https://xuyq123.gitlab.io/plain-pip-mkdocs
)
<br/>
[
plain-mkdocs-gitbook
](
https://gitlab.com/xuyq123/plain-mkdocs-gitbook
)
 
[
网页
](
https://xuyq123.gitlab.io/plain-mkdocs-gitbook
)
| gitlab布署mkdocs:配置文件.gitlab-ci.yml。 |
| github |
[
plain-mkdocs
](
https://github.com/scott180/plain-mkdocs
)
 
[
网页
](
https://scott180.github.io/plain-mkdocs/
)
<br/>
[
plain-pip-mkdocs
](
https://github.com/scott180/plain-pip-mkdocs
)
 
[
网页
](
https://scott180.github.io/plain-pip-mkdocs
)
<br/>
[
plain-mkdocs-serve
](
https://github.com/scott180/plain-mkdocs-serve
)
 
[
网页
](
https://scott180.github.io/plain-mkdocs-serve
)
| github布署mkdocs:命令mkdocs gh-deploy 。 |
| gitee |
[
plain-mkdocs
](
https://gitee.com/xy180/plain-mkdocs
)
 
[
网页1
](
http://xy180.gitee.io/plain-mkdocs/1/site/
)
 
[
网页2
](
http://xy180.gitee.io/plain-mkdocs/2/site/
)
 
[
网页3
](
http://xy180.gitee.io/plain-mkdocs/3/site/
)
| gitee布署mkdocs:mkdocs build 布署目录。 |
| note-mkdocs | gitlab
[
note-mkdocs
](
https://gitlab.com/xuyq123/note-mkdocs
)
 
[
**网页1**
](
https://xuyq123.gitlab.io/note-mkdocs/
)
 
[
网页2
](
https://xuyq123.gitlab.io/note-pip-mkdocs/
)
<br/>
github
[
note-mkdocs
](
https://github.com/scott180/note-mkdocs
)
 
[
网页
](
https://scott180.github.io/note-mkdocs/
)
<br/>
gitee
[
plain-mkdocs
](
https://gitee.com/xy180/plain-mkdocs/tree/master/note
)
 
[
网页
](
http://xy180.gitee.io/plain-mkdocs/note/site/
)
| 个人笔记,含书法练习及java笔记。 |
| myblog-mkdocs | gitlab
[
myblog-mkdocs
](
https://gitlab.com/xuyq123/myblog-mkdocs
)
 
[
网页
](
https://xuyq123.gitlab.io/myblog-mkdocs/
)
<br/>
github
[
myblog-mkdocs
](
https://github.com/scott180/myblog-mkdocs
)
 
[
网页
](
https://scott180.github.io/myblog-mkdocs/
)
<br/>
gitee
[
myblog-mkdocs
](
https://gitee.com/xy180/myblog-mkdocs
)
| 我的博客 |
---
git平台docsify布署markdown文件.md
浏览文件 @
5efaa9f7
...
...
@@ -4,9 +4,10 @@
### 本地安装
```
安装node参考
https://gitlab.com/xuyq123/mynotes/-/blob/master/%E5%85%B6%E4%BB%96/nodejs%20&%20vue.md
docsify 可以快速帮你生成文档网站。不同于GitBook、Hexo的地方是它不会生成静态的 .html 文件,所有转换工作都是在运行时。
// 首先安装node
https://gitlab.com/xuyq123/mynotes/-/blob/master/%E5%85%B6%E4%BB%96/nodejs%20&%20vue.md
// 安装docsify
npm i docsify-cli -g
...
...
@@ -68,11 +69,17 @@ window.$docsify = {
### gitlab布署docsify
```
创建 .gitlab-ci.yml
创建docs目录,将markdown文件放在此处,推送文件。
1、创建 .gitlab-ci.yml
2、创建docs目录,将markdown文件放在此处。推送文件。
3、推送文件。
可参考此项目 https://gitlab.com/xuyq123/plain-docsify https://xuyq123.gitlab.io/plain-docsify
多级页面可参考 https://gitlab.com/xuyq123/myblog-docsify https://xuyq123.gitlab.io/myblog-docsify
可参考此项目
https://gitlab.com/xuyq123/plain-docsify
https://xuyq123.gitlab.io/plain-docsify
多级页面可参考
https://gitlab.com/xuyq123/myblog-docsify
https://xuyq123.gitlab.io/myblog-docsify
```
...
...
@@ -105,12 +112,25 @@ pages:
### github布署docsify
```
本地生成 docsify项目
1、本地生成 docsify项目
// 初始化docsify项目
docsify init ./test
// 运行
docsify serve docs
2、推送文件。
开启github pages
3、
开启github pages
位置:Setting - GitHub Pages - Save
选择对应目录。
后期更新文件,只需推送即可。
可参考此项目
https://github.com/scott180/myblog-docsify/
https://scott180.github.io/myblog-docsify/
```
...
...
@@ -122,3 +142,13 @@ pages:
在对应的 Gitee 仓库服务中选择 Gitee Pages,选择您要部署的分支,填写您要部署的分支上的目录,
例如docs,填写完成之后点击启动即可。
```
---
### 示例
| 名称 | 仓库 | 备注 |
| --------- | ------------------------------------------------------------- | ---------- |
| plain-docsify | gitlab
[
plain-docsify
](
https://gitlab.com/xuyq123/plain-docsify
)
 
[
**网页**
](
https://xuyq123.gitlab.io/plain-docsify/
)
<br/>
github
[
plain-docsify
](
https://github.com/scott180/plain-docsify
)
 
[
网页
](
https://scott180.github.io/plain-docsify/
)
| 笔记docsify |
| myblog-docsify | gitlab
[
myblog-docsify
](
https://gitlab.com/xuyq123/myblog-docsify
)
 
[
**网页**
](
https://xuyq123.gitlab.io/myblog-docsify/
)
<br/>
github
[
myblog-docsify
](
https://github.com/scott180/myblog-docsify
)
 
[
网页
](
https://scott180.github.io/myblog-docsify/
)
| 笔记与博客docsify |
note.md
浏览文件 @
5efaa9f7
...
...
@@ -506,6 +506,38 @@ Optional.ofNullable(type).orElse(0).intValue();
public
static
final
int
cpuNum
=
Runtime
.
getRuntime
().
availableProcessors
();
```
```
java
/*** list对象分组求和 */
List
<
WarehouseLogisticsDAO
>
basketList
=
warehouseLogisticsDOMapper
.
queryWarehouselogisticsBasket
(
warehouselogisticsOrderGoodQuery
);
List
<
WarehouseLogisticsDAO
>
list
=
new
ArrayList
<>();
//(同一商家的数量相加)
// 分组求和1
basketList
.
stream
().
collect
(
Collectors
.
groupingBy
(
item
->
item
.
getAddrTele
()
+
"_"
+
item
.
getAddrAddress
())).
forEach
((
key
,
groupList
)
->
{
WarehouseLogisticsDAO
dao
=
new
WarehouseLogisticsDAO
();
dao
.
setAmount
(
groupList
.
stream
().
mapToInt
(
WarehouseLogisticsDAO:
:
getAmount
).
sum
());
dao
.
setAddrAddress
(
key
);
list
.
add
(
dao
);
});
// 分组求和2
basketList
.
parallelStream
().
collect
(
Collectors
.
groupingBy
(
item
->
item
.
getAddrTele
()
+
"_"
+
item
.
getAddrAddress
(),
Collectors
.
toList
()))
.
forEach
((
key
,
groupList
)
->
{
groupList
.
stream
().
reduce
((
a
,
b
)
->
{
WarehouseLogisticsDAO
dao
=
new
WarehouseLogisticsDAO
();
dao
.
setAddrAddress
(
key
);
dao
.
setAmount
(
a
.
getAmount
()
+
b
.
getAmount
());
return
dao
;
}).
ifPresent
(
list:
:
add
);
}
);
```
#### 3.1.2、Map遍历
...
...
@@ -515,7 +547,7 @@ public static final int cpuNum = Runtime.getRuntime().availableProcessors();
java中Map遍历的四种方式
https:
//www.cnblogs.com/damoblog/p/9124937.html
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"熊大"
,
"棕色"
);
map
.
put
(
"熊二"
,
"黄色"
);
...
...
@@ -526,6 +558,10 @@ for(Map.Entry<String, String> entry : map.entrySet()){
System
.
out
.
println
(
mapKey
+
":"
+
mapValue
);
}
map
.
entrySet
().
forEach
(
en
->{
en
.
getKey
();
en
.
getValue
();
});
//key
for
(
String
key
:
map
.
keySet
()){
...
...
@@ -977,21 +1013,22 @@ maven常用打包命令
| 8 |
[
博客园
](
https://www.cnblogs.com/scott123/p/14729493.html
)
 
[
ReadMe
](
https://www.cnblogs.com/scott123/p/14972979.html
)
| 开发者知识分享社区。 |
| 9 |
[
语雀
](
https://www.yuque.com/longguang123/ccgbto/cbq9u0
)
 
[
ReadMe
](
https://www.yuque.com/longguang123/ccgbto/oby4hq
)
| 文档与知识管理工具,无删减。阿里巴巴产品。 |
| 10 |
[
飞书
](
https://nal4j8dwi0.feishu.cn/docs/doccntwAAd1yjADzHGQT0ueBkN7
)
 
[
ReadMe
](
https://nal4j8dwi0.feishu.cn/docs/doccnpf5pWihfu3aW4psk5vO7ue
)
| 办公平台。字节跳动产品。|
| 11 |
[
我来
](
https://www.wolai.com/rDqeCwfv87RLPPmuu2fvyi
)
 
[
ReadMe
](
https://www.wolai.com/npaRuQ7wj44TYHqup5xg2w
)
| 不仅仅是未来的云端协作平台与个人笔记。 |
| - |
**云盘**
| |
| 1
1
|
[
坚果云
](
https://www.jianguoyun.com/p/DTnLeQEQxP-NBhjNrfED
)
 
[
markdown
](
https://www.jianguoyun.com/p/DfYHsfUQxP-NBhjOrfED
)
| 文件分享。 |
| 1
2
|
[
百度网盘
](
https://pan.baidu.com/s/1dOJMgeZAyCYolEflsKIOPQ
)
| 提取码: zpxu 。pdf文件分享,需要登录。 |
| 1
3
|
[
阿里云盘
](
https://www.aliyundrive.com/s/dKE1SMhqdwn
)
| pdf文件分享,需要登录。 |
| 1
4
|
[
天翼云
](
https://cloud.189.cn/t/RRBbumb2MB7b
)
| pdf文件分享,需要登录。中国电信网盘。 |
| 1
5
|
[
和彩云
](
https://caiyun.139.com/m/i?125CmrCy7hU1y
)
| 提取码:WAmq 。pdf文件分享,需要登录。中国移动网盘。 |
| 1
6
|
[
wps云盘
](
https://www.kdocs.cn/l/cpUDGjX6765H
)
| pdf文件分享,需要登录。 |
| 1
7
|
[
微云
](
https://share.weiyun.com/JKZ4ANJ5
)
 
[
腾讯文档
](
https://docs.qq.com/pdf/DVmxKTG5YZHZBUGlx
)
| pdf文件分享。 |
| 1
8
|
[
有道云
](
http://note.youdao.com/s/V7b1jHjB
)
| 笔记分享,无删减。 |
|
19
|
[
google云盘
](
https://drive.google.com/file/d/1Ubx-Rz3Xwhn48PEXMx-BmWrJGyIAzNfn/view?usp=sharing
)
| 文件分享,无删减。 |
| 1
2
|
[
坚果云
](
https://www.jianguoyun.com/p/DTnLeQEQxP-NBhjNrfED
)
 
[
markdown
](
https://www.jianguoyun.com/p/DfYHsfUQxP-NBhjOrfED
)
| 文件分享。 |
| 1
3
|
[
百度网盘
](
https://pan.baidu.com/s/1dOJMgeZAyCYolEflsKIOPQ
)
| 提取码: zpxu 。pdf文件分享,需要登录。 |
| 1
4
|
[
阿里云盘
](
https://www.aliyundrive.com/s/dKE1SMhqdwn
)
| pdf文件分享,需要登录。 |
| 1
5
|
[
天翼云
](
https://cloud.189.cn/t/RRBbumb2MB7b
)
| pdf文件分享,需要登录。中国电信网盘。 |
| 1
6
|
[
和彩云
](
https://caiyun.139.com/m/i?125CmrCy7hU1y
)
| 提取码:WAmq 。pdf文件分享,需要登录。中国移动网盘。 |
| 1
7
|
[
wps云盘
](
https://www.kdocs.cn/l/cpUDGjX6765H
)
| pdf文件分享,需要登录。 |
| 1
8
|
[
微云
](
https://share.weiyun.com/JKZ4ANJ5
)
 
[
腾讯文档
](
https://docs.qq.com/pdf/DVmxKTG5YZHZBUGlx
)
| pdf文件分享。 |
| 1
9
|
[
有道云
](
http://note.youdao.com/s/V7b1jHjB
)
| 笔记分享,无删减。 |
|
20
|
[
google云盘
](
https://drive.google.com/file/d/1Ubx-Rz3Xwhn48PEXMx-BmWrJGyIAzNfn/view?usp=sharing
)
| 文件分享,无删减。 |
| - |
**网页**
| |
| 2
0
|
[
作业部落
](
https://www.zybuluo.com/scott180/note/1793757
)
 
[
ReadMe
](
https://www.zybuluo.com/scott180/note/892814
)
| markdown编辑器,文件分享。 |
| 2
1 |
[
gitee_pages
](
http://xy180.gitee.io/imgs/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html
)
 
[
ReadMe
](
http://xy180.gitee.io/img
s/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9ReadMe.html
)
| gitee静态网页,markdown转html。 |
| 2
2
|
[
github_pages
](
https://scott180.github.io/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89
)
 
[
ReadMe
](
https://scott180.github.io/calligraphy
)
| github静态网页,有时打不开。
[
主题1
](
https://scott180.github.io/calligraphy1/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89
)
 
[
主题2
](
https://scott180.github.io/calligraphy2/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89
)
|
| 2
3
|
[
**gitlab_pages**
](
https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html
)
 
[
ReadMe
](
https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9ReadMe.html
)
| gitlab静态网页,markdown转html。 |
| 2
1
|
[
作业部落
](
https://www.zybuluo.com/scott180/note/1793757
)
 
[
ReadMe
](
https://www.zybuluo.com/scott180/note/892814
)
| markdown编辑器,文件分享。 |
| 2
2 |
[
gitee_pages
](
http://xy180.gitee.io/plain-mkdocs/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html
)
 
[
ReadMe
](
http://xy180.gitee.io/plain-mkdoc
s/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9ReadMe.html
)
| gitee静态网页,markdown转html。 |
| 2
3
|
[
github_pages
](
https://scott180.github.io/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89
)
 
[
ReadMe
](
https://scott180.github.io/calligraphy
)
| github静态网页,有时打不开。
[
主题1
](
https://scott180.github.io/calligraphy1/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89
)
 
[
主题2
](
https://scott180.github.io/calligraphy2/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89
)
|
| 2
4
|
[
**gitlab_pages**
](
https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html
)
 
[
ReadMe
](
https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9ReadMe.html
)
| gitlab静态网页,markdown转html。 |
...
...
@@ -1029,11 +1066,10 @@ git平台:gitlab、github、gitee、csdn_code、coding、bitbucket
> 注册了微信公众号及今日头条号:**无为徐生**,以后会将书法练习轨迹、程序员笔记以及一些随笔感想更新在此。若有兴趣,可扫码关注。
| 无为徐生 |
今日头条号 |
 
| 微信公众
号 |
| 无为徐生 |
微信公众号 |
 
| 今日头条
号 |
| --------- | ------------------------------------------------------------- | - | ---------- |
| 二维码 | !
[
t
](
https://codechina.csdn.net/xu180/document/-/raw/master/imgs/toutiao/无为徐生.png
)
|
<br/>
| !
[
w
](
https://codechina.csdn.net/xu180/document/-/raw/master/imgs/weixin/无为徐生.png
)
|
| 二维码 | !
[
w
](
https://codechina.csdn.net/xu180/document/-/raw/master/imgs/weixin/无为徐生.png
)
|
<br/>
| !
[
t
](
https://codechina.csdn.net/xu180/document/-/raw/master/imgs/toutiao/无为徐生.png
)
|
***
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录