Skip to content

Commit

Permalink
feat: update blog
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Nov 15, 2023
1 parent f201be5 commit ec9660c
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 24 deletions.
6 changes: 6 additions & 0 deletions src/code/angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Angular 是 Google 官方在 2016 年 9 月出品的一款框架。

<!-- more -->

::: warning

2023 年 Angular 挺凉的了

:::

::: info Angular 的优点

1. 零配置 CLI,享受到 webpack 每次升级的好处,但是不用关心任何 webpack config
Expand Down
6 changes: 6 additions & 0 deletions src/code/back-end/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ category: 后端

## 后端入门

::: warning

2023 年后端还是 Java 比较多

:::

### PHP

PHP 是一种创建动态交互性站点的强有力的服务器端脚本语言,免费,并且使用非常广泛。PHP (全称 Hypertext Preprocessor,即超文本预处理器)是一种通用开源脚本语言。
Expand Down
5 changes: 2 additions & 3 deletions src/code/basic/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ order: 8
常用的构建工具如下,

- Jenkins
- Travis
- Codeship
- Strider
- GitHub Actions

Jenkins 和 Strider 是开源软件, Travis 和 Codeship 对于开源项目可以免费使用。它们都会将构建和测试,在一次运行中执行完成。
Jenkins 和 Strider 是开源软件,GitHub Actions 是常用的线上构建工具。它们都会将构建和测试,在一次运行中执行完成。

1. 测试 (第二轮)

Expand Down
4 changes: 2 additions & 2 deletions src/code/basic/open-source-and-free.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ Android 就是大众最熟知的一款开源操作系统,它除了用在手机

- 市场占有率最高的关系型数据库 mysql 已经被上市公司 Oracle 收购;

- linux 不但被 Microsoft、IBM、Intel、SAMSUNG 等巨头免费赞助,还接收它们贡献的源代码;
- Linux 不但被 Microsoft、IBM、Intel、SAMSUNG 等巨头免费赞助,还接收它们贡献的源代码;

- Python 目前属于 python.org 开源组织,它收到了 Facebook、Google、Amazon、Redhat、Microsoft 等商业公司的赞助。
- Python 目前属于 <python.org> 开源组织,它收到了 Facebook、Google、Amazon、Redhat、Microsoft 等商业公司的赞助。

## 开源软件的盈利模式

Expand Down
24 changes: 12 additions & 12 deletions src/code/github/actions/checkout.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,23 @@ tag:
- 获取所有标签与历史:

```yml
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
```
- 检出特定分支
```yml
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: my-branch
```
- 检出 `HEAD^`

```yml
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- run: git checkout HEAD^
Expand All @@ -130,12 +130,12 @@ tag:

```yml
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: main
- name: Checkout tools repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: my-org/my-tools
path: my-tools
Expand All @@ -145,10 +145,10 @@ tag:

```yml
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout tools repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: my-org/my-tools
path: my-tools
Expand All @@ -158,12 +158,12 @@ tag:

```yml
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: main
- name: Checkout private tools
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: my-org/my-private-tools
token: ${{ secrets.GitHub_PAT }} # `GitHub_PAT` is a secret that contains your PAT
Expand All @@ -183,7 +183,7 @@ tag:
- 检出 PR HEAD commit 而不是 merge commit

```yml
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
```
Expand All @@ -199,7 +199,7 @@ tag:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
```

- 使用内置 token 进行提交
Expand All @@ -210,7 +210,7 @@ tag:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
date > generated.txt
git config user.name github-actions
Expand Down
Binary file added src/code/github/assets/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/code/github/assets/fork.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/code/github/assets/mainPage.png
Binary file not shown.
Binary file added src/code/github/assets/personal-repo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/code/github/assets/personalRepo.png
Binary file not shown.
Binary file modified src/code/github/assets/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/code/github/assets/pull-request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/code/github/assets/repo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/code/github/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
# 第一步: 下载源码
- name: Checkout
# action 配置详见 https://github.com/actions/checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# 如果本项目包含了子模块 (git submodules),需要将此项设置为 true
# submodules: true
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
steps:
# 检出网站代码
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# 检出 gh-pages 分支
ref: gh-pages
Expand Down
12 changes: 7 additions & 5 deletions src/code/github/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ order: 1

## ~~Gayhub~~ GitHub 是世界上最大的 ~~同性交友~~ 代码托管网站

:yum:当然在上面交友也是极好的(这是重点,圈起来要考的:sunglasses:)。
:yum: 当然在上面交友也是极好的(这是重点,圈起来要考的:sunglasses:)。

## 基本概念

Expand Down Expand Up @@ -62,9 +62,9 @@ GitHub 的讨论区,和 Issue 区主要用于 Bug 和 Feature Request 的追

## 主页

![个人主页](./assets/mainPage.png)
![主页](./assets/dashboard.png)

[https://github.com](https://github.com)
<https://github.com>

主页,在您登陆后,屏幕的左侧会展示您和您加入团队的项目,以及您的团队详情。中部会显示您关注的项目、人的动态,右侧会根据算法展示一些您可能会感兴趣的 repo。

Expand All @@ -86,7 +86,7 @@ GitHub 的讨论区,和 Issue 区主要用于 Bug 和 Feature Request 的追

### Repositories

![个人仓库](./assets/personalRepo.png)
![个人仓库](./assets/personal-repo.png)

仓库列表,该面板会按照最后更新时间的倒序,展示该用户拥有的所有 repo,同时也会在面板上展示项目的 Description (描述)、Star 数、Fork 数、语言、协议、标签,以及过去一年内项目的 commit 分布数量。这些都能够帮助浏览者在不进入具体仓库页面的情况下大致了解每一个仓库的内容、欢迎程度与维护情况。

Expand All @@ -110,6 +110,8 @@ GitHub 的讨论区,和 Issue 区主要用于 Bug 和 Feature Request 的追

![仓库主页](./assets/repo.png)

仓库主页主要显示项目的信息。从左到右的面板依次是: Code(代码),Issues (问题)、Pull Requests (提交请求)、Actions (自动流程)、 Projects (项目)、 Wiki (项目介绍)、 Security (项目安全)、 Insights (项目数据统计) 与 Settings (项目设置)。
仓库主页主要显示项目的信息。从左到右的面板依次是: Code(代码),Issues (问题)、Pull Requests (提交请求)、Discussions (讨论)、Actions (自动流程)、 Projects (项目)、 Wiki (项目介绍)、 Security (项目安全)、 Insights (项目数据统计) 与 Settings (项目设置)。

> 仓库可以选择关闭 Issues、Discussions、Wiki 之类的面板。
在下方会展示代码文件以及项目说明 README.md 文件。

0 comments on commit ec9660c

Please sign in to comment.