From 53551589fc9223fc4e0eaffd590ff15c85f8b8ec Mon Sep 17 00:00:00 2001 From: mikigo Date: Tue, 9 Jan 2024 11:42:20 +0800 Subject: [PATCH] fix: update docs Description: Log: --- README.md | 2 +- docs/comments.md | 6 ++++++ docs/常见问题.md | 30 ++++++++++++++++++++++-------- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 556481d..e643beb 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/youqu?color=%23F79431) ![Static Badge](https://img.shields.io/badge/UOS%2FDeepin/Ubuntu/Debian-Platform?style=flat&label=OS&color=%23F79431) ![Static Badge](https://img.shields.io/badge/Linux-Platform?style=flat&label=Platform&color=%23F79431) -![Website](https://img.shields.io/website?url=https%3A%2F%2Flinuxdeepin.github.io%2Fdeepin-autotest-framework%2F&up_color=%23F79431) +[![Built with Material for MkDocs](https://img.shields.io/badge/Material_for_MkDocs-526CFE?style=flat&logo=MaterialForMkDocs&logoColor=white&color=%23F79431)](https://squidfunk.github.io/mkdocs-material/) [![Downloads](https://static.pepy.tech/badge/youqu/week)](https://pepy.tech/project/youqu) [![Downloads](https://static.pepy.tech/badge/youqu/month)](https://pepy.tech/project/youqu) diff --git a/docs/comments.md b/docs/comments.md index 7c56161..aeb2744 100644 --- a/docs/comments.md +++ b/docs/comments.md @@ -12,3 +12,9 @@ comments: true # 留言 + +
+ + 英雄不问出处,留言不管字数。 + +
\ No newline at end of file diff --git a/docs/常见问题.md b/docs/常见问题.md index c23ca49..458dae8 100644 --- a/docs/常见问题.md +++ b/docs/常见问题.md @@ -3,7 +3,7 @@ hide: - navigation --- -## 提交代码时提示邮箱或者名称不对 +## 1. 提交代码时提示邮箱或者名称不对 重新配置邮箱或者名称,然后重置生效: @@ -11,7 +11,9 @@ hide: git commit --amend --reset-author ``` -## 怎么回滚到之前的版本 +--------------- + +## 2. 怎么回滚到之前的版本 (1)查询历史提交记录 @@ -35,13 +37,17 @@ git reset --soft ${hash} git reset --hard ${hash} ``` -## 解决 git status 中文显示的问题 +--------------------------- + +## 3. 解决 git status 中文显示的问题 ```shell git config --global core.quotePath false ``` -## `apps` 目录下颜色有些是黄色的 +--------------------- + +## 4. `apps` 目录下颜色有些是黄色的 在 `Pycharm` 中 `apps` 目录下应用库文件是黄色的,编辑器识别不到代码新增和修改; @@ -51,9 +57,11 @@ git config --global core.quotePath false 如此就可以了。 -专业版 `Pycharm` 不存在这个问题。 +专业版 `Pycharm` 一般不存在这个问题。 -执行 `env.sh` 报错 `$'\r':未找到命令`】 +------------------------------ + +## 5. 执行 `env.sh` 报错 `$'\r':未找到命令` 出现这个问题你应该是在 windows 上打开或编辑过 `env.sh` 脚本,windows下的换行是回车符+换行符,也就是`\r\n`,而 `Linxu` 下是换行符 `\n`,`Linux` 下不识别 `\r`,因此报错。 @@ -64,7 +72,9 @@ git config --global core.quotePath false sudo sed -i 's/\r//' env.sh ``` -## 怎样为单独某一条用例配置执行超时时间 +--------------------------- + +## 6. 怎样为单独某一条用例配置执行超时时间 在用例脚本中添加装饰器,如下: @@ -74,7 +84,9 @@ def test_xxx_001(): pass ``` -## 如何修复子仓库 master 分支游离头(detached head) +----------------------- + +## 7. 如何修复子仓库 master 分支游离头(detached head) 修复所有子仓库默认master 分支游离头 @@ -82,3 +94,5 @@ def test_xxx_001(): cd youqu git submodule foreach -q --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)' ``` + +-------------------------