Skip to content

Commit 93023a3

Browse files
committed
this is the first commit
1 parent a4cd842 commit 93023a3

File tree

3,127 files changed

+207041
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,127 files changed

+207041
-23
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: "\U0001F6D1 Report a bug in the DaoCloud Enterprise Documents"
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
12+
A clear and concise description of what the bug is.
13+
14+
**To Reproduce**
15+
16+
Steps to reproduce the behavior:
17+
1. Go to '...'
18+
2. Click on '...'
19+
3. Scroll down to '...'
20+
4. See error
21+
22+
**Expected behavior**
23+
24+
A clear and concise description of what you expected to happen.
25+
26+
**Screenshots**
27+
28+
If applicable, add screenshots to help explain your problem.
29+
30+
**Desktop (please complete the following information):**
31+
32+
- OS: [e.g. iOS]
33+
- Browser [e.g. chrome, safari]
34+
- Version [e.g. 22]
35+
36+
**Smartphone (please complete the following information):**
37+
38+
- Device: [e.g. iPhone6]
39+
- OS: [e.g. iOS8.1]
40+
- Browser [e.g. stock browser, safari]
41+
- Version [e.g. 22]
42+
43+
**Additional context**
44+
45+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/bug_report.yml

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
name: Bug Report
2+
description: Create a report to identify and fix a bug
3+
title: "Bug: "
4+
labels: ["bug", "gitauto"]
5+
# assignees: [""]
6+
7+
body:
8+
- type: textarea
9+
id: bug_behavior
10+
attributes:
11+
label: Bug Behavior
12+
description: What is the bug? What is currently happening?
13+
placeholder: "Example: 'When I try to upload a file (over 100MB), the process fails with a timeout error. This disrupts my workflow and causes delays in my project.'"
14+
validations:
15+
required: true
16+
17+
- type: textarea
18+
id: logs
19+
attributes:
20+
label: Logs
21+
description: Include any logs such as error objects, stack traces, or console logs.
22+
placeholder: "Example: 'Error: TimeoutError: The request timed out after 30 seconds'"
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: screenshots
28+
attributes:
29+
label: Screenshots
30+
description: Add any screenshots such as error messages or unexpected behavior.
31+
placeholder: "Attach it here"
32+
validations:
33+
required: false
34+
35+
- type: input
36+
id: when_it_occurred
37+
attributes:
38+
label: When It Occurred
39+
description: When did the issue last occur?
40+
placeholder: "Example: 'Jul 10, 2024 12:08:00 AM UTC'"
41+
validations:
42+
required: true
43+
44+
- type: textarea
45+
id: steps_to_reproduce
46+
attributes:
47+
label: Steps to Reproduce
48+
description: How can we reproduce the bug?
49+
placeholder: |
50+
Example:
51+
1. Go to "Upload"
52+
2. Click on "Select File"
53+
3. Choose a large file (over 100MB)
54+
4. Click "Upload"
55+
5. See error
56+
value: |
57+
1.
58+
validations:
59+
required: true
60+
61+
- type: textarea
62+
id: expected_behavior
63+
attributes:
64+
label: Expected Behavior
65+
description: What do you expect to happen?
66+
placeholder: "Example: 'The file should upload successfully without any errors even if it's over 100MB.'"
67+
validations:
68+
required: true
69+
70+
- type: textarea
71+
id: possible_cause
72+
attributes:
73+
label: Possible Cause
74+
description: If you have any idea what might be causing the issue, describe it.
75+
placeholder: "Example: 'The issue may be related to the new file upload library introduced in version 1.2.3.'"
76+
validations:
77+
required: false
78+
79+
- type: input
80+
id: device
81+
attributes:
82+
label: Device
83+
description: Describe your device or server.
84+
placeholder: "MacBook Pro, 14-inch, 2023 (Check in 'About This Mac')"
85+
validations:
86+
required: true
87+
88+
- type: input
89+
id: os
90+
attributes:
91+
label: OS
92+
description: |
93+
Describe your operating system.
94+
- For Mac, check in "About This Mac".
95+
- For Windows, check in "Settings" > "System" > "About".
96+
- For iOS, check in "Settings" > "General" > "About" > "iOS Version".
97+
- For Linux, run `uname -a` in the terminal.
98+
- For your server, specify the provider such as AWS EC2, AWS Lambda, or etc.
99+
placeholder: "Sonoma 14.5"
100+
validations:
101+
required: true
102+
103+
- type: input
104+
id: browser
105+
attributes:
106+
label: Browser
107+
description: |
108+
Describe your browser.
109+
- For Chrome, "Chrome, Version 126.0.6478.127 (Official Build) (arm64)". Check in "3 dots" on the top right > "Help" > "About Google Chrome".
110+
- For Safari, "Safari, Version 17.5 (19618.2.12.11.6)". Check in "Safari" on the top left > "About Safari".
111+
- For non-browser issues, type "Server-side" or "Mobile App".
112+
placeholder: "Chrome, Version 126.0.6478.127 (Official Build) (arm64)"
113+
validations:
114+
required: true
115+
116+
- type: textarea
117+
id: additional_information
118+
attributes:
119+
label: Additional Information
120+
description: Include any other context or information.
121+
placeholder: "Describe it here"
122+
validations:
123+
required: false

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: ✅ Connect US when your having questions.
4+
url: https://www.daocloud.io
5+
about: If you have questions about DaoCloud product or need support building applicaion, please ask us
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: "\U0001F7E1 Request a feature in the DaoCloud Enterprise Documents"
3+
about: If you have feature idea for DaoCloud Enterprise Documents
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Additional context**
23+
24+
Add any other context or screenshots about the feature request here.
+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Feature Request
2+
description: Share your problem and suggest a new feature
3+
title: "Feature Request: "
4+
labels: ["enhancement", "gitauto"]
5+
# assignees: [""]
6+
7+
body:
8+
- type: textarea
9+
id: problem
10+
attributes:
11+
label: Problem
12+
description: What issue are you facing?
13+
placeholder: "Example: 'When I try to upload large files (over 100MB), the process succeeds but takes more than 10 minutes. This disrupts my workflow and causes delays in my project.'"
14+
validations:
15+
required: true
16+
17+
- type: textarea
18+
id: current_solution
19+
attributes:
20+
label: Current Solution
21+
description: How are you currently solving this problem?
22+
placeholder: "Example: 'To work around this, I'm splitting the files into smaller parts (less than 50MB each) and uploading them individually. This is time-consuming and mistake-prone.'"
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: proposed_solution
28+
attributes:
29+
label: Proposed Solution
30+
description: What do you want to happen?
31+
placeholder: "Example: 'I would like a feature that supports seamless uploading of large files, more than 100MB, without any timeouts or delays. This will help me save time and improve my productivity.'"
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: attachments
37+
attributes:
38+
label: Screenshots or Diagrams
39+
description: Add any screenshots or diagrams that can help us understand the feature request.
40+
placeholder: "Attach it here"
41+
validations:
42+
required: false
43+
44+
- type: textarea
45+
id: additional_information
46+
attributes:
47+
label: Additional Information
48+
description: Include any other information or screenshots.
49+
placeholder: "Describe it here"
50+
validations:
51+
required: false

.github/workflows/auto-label-pr.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Auto Labels PR
2+
3+
# how usage: https://github.com/marketplace/actions/labeler
4+
5+
on:
6+
- pull_request_target
7+
8+
jobs:
9+
triage:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/labeler@v4
16+
with:
17+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
18+
configuration-path: .github/labeler.yml # update role in this file

.github/workflows/auto-size-pr.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Size labeler
2+
3+
on:
4+
- pull_request_target
5+
6+
jobs:
7+
size-labeler:
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
name: Label the PR size
13+
steps:
14+
- uses: codelytv/pr-size-labeler@v1
15+
with:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
xs_label: "size/xs"
18+
xs_max_size: "9"
19+
s_label: "size/s"
20+
s_max_size: "29"
21+
m_label: "size/m"
22+
m_max_size: "99"
23+
l_label: "size/l"
24+
l_max_size: "499"
25+
xl_label: "size/xl"
26+
xl_max_size: "999"
27+
xll_label: "size/xll"
28+
xll_max_size: "1999"
29+
fail_if_xll: "false"
30+
message_if_xll: >
31+
This PR exceeds the recommended size of 2000 lines.
32+
Please make sure you are NOT addressing multiple issues with one PR.
33+
Note this PR might be rejected due to its size.
+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: find corrupted hyperlink
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
workflow_dispatch:
9+
10+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+
jobs:
12+
# This workflow contains a single job called "build"
13+
build-test:
14+
# The type of runner that the job will run on
15+
runs-on: ubuntu-latest
16+
17+
# Steps represent a sequence of tasks that will be executed as part of the job
18+
steps:
19+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20+
- uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0 # Required for mkdocs to be able to display pages last update info
23+
- uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.x
26+
27+
# Runs a single command using the runners shell
28+
- run: pip install mkdocs-material \
29+
mkdocs-git-revision-date-plugin \
30+
mkdocs-mermaid2-plugin \
31+
mkdocs-rss-plugin \
32+
mkdocs-minify-plugin \
33+
mkdocs-macros-plugin \
34+
mkdocs-git-revision-date-localized-plugin \
35+
mkdocs-awesome-pages-plugin \
36+
mkdocs-redirects \
37+
mkdocs-print-site-plugin \
38+
mkdocs-swagger-ui-tag \
39+
pyyaml
40+
41+
# add custom plugin with pdf support
42+
- run: pip install git+https://github.com/SAMZONG/mkdocs-with-pdf-support-material-v8
43+
44+
# check corrupted hyperlink
45+
- run: pwd
46+
- run: mkdocs build -f docs/zh/mkdocs.yml -d ../../public/ >> zh_build.log
47+
- run: mkdocs build -f docs/en/mkdocs.yml -d ../../public/en/ >> en_build.log
48+
- run: ls -lha
49+
- run: echo "# zh_build.log" >> issue-body.txt
50+
- run: grep -e 'WARNING.*\.md.*contains a link to.*not found' zh_build.log >> issue-body.txt
51+
- run: echo "# en_build.log" >> issue-body.txt
52+
- run: grep -e 'WARNING.*\.md.*contains a link to.*not found' en_build.log >> issue-body.txt
53+
54+
# Create an issue if there are any warnings
55+
- name: Create issue
56+
uses: peter-evans/create-issue-from-file@v2
57+
with:
58+
title: 'Corrupted document hyperlink'
59+
body: |
60+
${{ steps.get_issue_body.outputs.body }}
61+
labels: |
62+
bug
63+
corrupted-hyperlink
64+
assignees: |
65+
windsonsea
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
ISSUE_BODY_PATH: ./issue-body.txt
69+
id: get_issue_body

0 commit comments

Comments
 (0)