Skip to content

Commit 2c55a47

Browse files
authored
Merge branch 'develop' into feat-cover-lifecycle
2 parents e796604 + 72b21d1 commit 2c55a47

File tree

156 files changed

+19451
-9213
lines changed

Some content is hidden

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

156 files changed

+19451
-9213
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Bug Report
2+
description: Submit a bug report.
3+
labels: ['bug', 'Triage']
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report! **Please write in English**.
10+
Before creating an issue please make sure you are using the latest version of Docsify.
11+
12+
- type: textarea
13+
attributes:
14+
label: Description
15+
description: A clear and concise description of what the bug is, and why you consider it to be a bug.
16+
validations:
17+
required: true
18+
19+
- type: textarea
20+
attributes:
21+
label: Expected behavior
22+
description: A description of what you expected to happen.
23+
validations:
24+
required: true
25+
- type: textarea
26+
attributes:
27+
label: Actual behavior
28+
description: A description of what is actually happening.
29+
validations:
30+
required: true
31+
- type: textarea
32+
attributes:
33+
label: Steps to reproduce
34+
description: |
35+
A description with steps to reproduce the issue.
36+
Provide a link to a public repository or create a reproducible [sandbox](https://codesandbox.io/s/307qqv236):
37+
placeholder: |
38+
1. Step 1
39+
2. Step 2
40+
validations:
41+
required: true
42+
43+
- type: textarea
44+
attributes:
45+
label: Environment
46+
description: |
47+
Please provide the following information if relevant to the issue:
48+
```markdown
49+
- Your OS:
50+
- Node.js version:
51+
- npm/yarn version:
52+
- Browser version:
53+
- Docsify version:
54+
- Docsify plugins (if the bug happens when plugins enabled, please try to isolate the issue):
55+
```
56+
57+
- type: checkboxes
58+
attributes:
59+
label: Additional Information
60+
options:
61+
- label: Bug still occurs when all/other plugins are disabled?

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Feature Request
2+
description: Propose a new feature or improvement for this project.
3+
labels: ['feature request', 'Triage']
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thank you for suggesting a feature! Please provide as much detail as possible to help us understand your idea. **Write in English.**
10+
11+
- type: textarea
12+
attributes:
13+
label: Problem or Desire
14+
description: What problem or need will this feature address? Why is it important?
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
attributes:
20+
label: Proposal
21+
description: What is your proposed solution? How should this feature work?
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
attributes:
27+
label: Implementation Details
28+
description: If you have any ideas about how this feature could be implemented, please share them here.
29+
30+
- type: textarea
31+
attributes:
32+
label: Additional Context
33+
description: Add any other context, screenshots, or references that might help us understand your request.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,35 @@
1-
<!--
2-
Please write in English.
3-
Please follow the template, all sections are required.
4-
Consider opening a feature request first to get your change idea approved.
5-
-->
6-
71
## Summary
82

9-
<!--
10-
Describe what the change does and why it should be merged.
11-
Provide **before/after** screenshots for any UI changes.
12-
-->
3+
<!-- Describe what the change does and why it should be merged. Provide **before/after** screenshots for any UI changes. -->
134

145
## Related issue, if any:
156

167
<!-- Paste issue's link or number hashtag here. -->
178

189
## What kind of change does this PR introduce?
1910

20-
<!--
21-
Copy/paste any of the relevant following options:
22-
23-
Bugfix
24-
Feature
25-
Code style update
26-
Refactor
27-
Docs
28-
Build-related changes
29-
Repo settings
30-
Other
11+
<!-- (Change "[ ]" to "[x]" to check a box.) -->
3112

32-
If you choose Other, describe it.
33-
-->
13+
- [ ] Bugfix
14+
- [ ] Feature
15+
- [ ] Code style update (formatting, renaming)
16+
- [ ] Refactoring (no functional changes, no api changes)
17+
- [ ] Build related changes
18+
- [ ] Documentation content changes
19+
- [ ] Other (please describe):
3420

3521
## For any code change,
3622

37-
<!-- (Change "[ ]" to "[x]" to check a box.) -->
38-
3923
- [ ] Related documentation has been updated, if needed
4024
- [ ] Related tests have been added or updated, if needed
4125

4226
## Does this PR introduce a breaking change?
4327

44-
<!-- (pick one) -->
45-
46-
Yes
47-
No
48-
4928
<!-- If yes, describe the impact and migration path for existing applications. -->
5029

30+
- [ ] Yes
31+
- [ ] No
32+
5133
## Tested in the following browsers:
5234

5335
- [ ] Chrome

.github/workflows/crowdin.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ on:
55
push:
66
paths:
77
- 'docs/**.md'
8-
branches: [develop, master]
8+
branches: [develop, main]
99

1010
jobs:
1111
crowdin:
12+
if: github.repository == 'docsifyjs/docsify'
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout
15-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1617

1718
- name: Crowdin push
1819
uses: crowdin/github-action@v2

.github/workflows/emoji.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Sync Emoji
2+
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync-emoji:
10+
if: github.repository == 'docsifyjs/docsify'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- uses: actions/setup-node@v6
16+
with:
17+
node-version: latest
18+
cache: 'npm'
19+
20+
- name: Install dependencies
21+
run: npm ci --ignore-scripts
22+
23+
- name: Run script to sync emoji data
24+
run: npm run build:emoji
25+
26+
- name: Commit
27+
id: auto-commit-action
28+
uses: stefanzweifel/git-auto-commit-action@v7
29+
with:
30+
commit_message: 'chore: Sync emoji data with GitHub emoji API'
31+
branch: sync-emoji
32+
create_branch: true
33+
file_pattern: 'src/core/render/emoji-data.js docs/emoji.md'
34+
push_options: '--force'
35+
36+
- name: Create Pull Request
37+
if: ${{ steps.auto-commit-action.outputs.changes_detected == 'true' }}
38+
run: |
39+
gh pr create --title 'chore: Sync emoji data with GitHub emoji API' --body 'Found updated github emojis need to sync.' --base develop --reviewer docsifyjs/reviewers
40+
continue-on-error: true
41+
env:
42+
GH_TOKEN: ${{ secrets.READ_TEAM_TOKEN }}

.github/workflows/test.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build & Test
22

33
on:
44
push:
5-
branches: [master, main, develop]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [master, main, develop]
7+
branches: [main, develop]
88
workflow_dispatch:
99

1010
jobs:
@@ -14,9 +14,9 @@ jobs:
1414
matrix:
1515
node-version: ['lts/*']
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818
- name: Setup Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v3
19+
uses: actions/setup-node@v6
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222
cache: 'npm'
@@ -35,9 +35,9 @@ jobs:
3535
node-version: ['lts/*']
3636
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
3939
- name: Setup Node.js ${{ matrix.node-version }}
40-
uses: actions/setup-node@v3
40+
uses: actions/setup-node@v6
4141
with:
4242
node-version: ${{ matrix.node-version }}
4343
cache: 'npm'
@@ -49,16 +49,18 @@ jobs:
4949
run: npm run test:unit -- --ci --runInBand
5050
- name: Integration Tests
5151
run: npm run test:integration -- --ci --runInBand
52+
- name: Consumption Tests
53+
run: npm run test:consume-types
5254

5355
test-playwright:
5456
runs-on: ubuntu-latest
5557
strategy:
5658
matrix:
5759
node-version: ['lts/*']
5860
steps:
59-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v6
6062
- name: Setup Node.js ${{ matrix.node-version }}
61-
uses: actions/setup-node@v3
63+
uses: actions/setup-node@v6
6264
with:
6365
node-version: ${{ matrix.node-version }}
6466
cache: 'npm'
@@ -71,7 +73,7 @@ jobs:
7173
- name: E2E Tests (Playwright)
7274
run: npm run test:e2e
7375
- name: Store artifacts
74-
uses: actions/upload-artifact@v4
76+
uses: actions/upload-artifact@v5
7577
if: failure()
7678
with:
7779
name: ${{ matrix.os }}-${{ matrix.node-version }}-artifacts

0 commit comments

Comments
 (0)