-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
129 changed files
with
40,931 additions
and
11,753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"sandboxes": ["2d17z"], | ||
"packages": [".", "packages/docsify-server-renderer"] | ||
"packages": [".", "packages/docsify-server-renderer"], | ||
"node": "16" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
.git | ||
packages/docsify-server-renderer/build.js | ||
node_modules | ||
**/*.md | ||
build | ||
server.js | ||
docs | ||
lib | ||
node_modules | ||
packages/docsify-server-renderer/build.js | ||
server.js | ||
themes | ||
build | ||
docs/ | ||
**/*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,65 @@ | ||
<!-- Please use English language --> | ||
<!-- Please don't delete this template --> | ||
<!-- | ||
PULL REQUEST TEMPLATE | ||
--- | ||
Please use English language | ||
Please don't delete this template | ||
--- | ||
Update "[ ]" to "[x]" to check a box in any list below. | ||
--- | ||
To avoid wasting your time, it's best to open a **feature request issue** first and wait for approval before working on it. | ||
--> | ||
|
||
<!-- PULL REQUEST TEMPLATE --> | ||
<!-- (Update "[ ]" to "[x]" to check a box) --> | ||
## **Summary** | ||
|
||
**Summary** | ||
<!-- | ||
THIS IS REQUIRED! Please describe what the change does and why it should be merged. | ||
--> | ||
|
||
**What kind of change does this PR introduce?** (check at least one) | ||
<!-- | ||
If changing the UI in any way, please provide the a **before/after** screenshot: | ||
--> | ||
|
||
- [ ] Bugfix | ||
- [ ] Feature | ||
- [ ] Code style update | ||
- [ ] Refactor | ||
- [ ] Docs | ||
- [ ] Build-related changes | ||
- [ ] Repo settings | ||
- [ ] Other, please describe: | ||
## **What kind of change does this PR introduce?** | ||
|
||
If changing the UI of default theme, please provide the **before/after** screenshot: | ||
<!-- | ||
Copy/paste one of the following options: | ||
--> | ||
|
||
**Does this PR introduce a breaking change?** (check one) | ||
<!-- | ||
Bugfix | ||
Feature | ||
Code style update | ||
Refactor | ||
Docs | ||
Build-related changes | ||
Repo settings | ||
Other | ||
--> | ||
|
||
<!-- | ||
If you chose Other, please describe. | ||
--> | ||
|
||
## **For any code change,** | ||
|
||
- [ ] Related documentation has been updated if needed | ||
- [ ] Related tests have been updated or tests have been added | ||
|
||
## **Does this PR introduce a breaking change?** (check one) | ||
|
||
- [ ] Yes | ||
- [ ] No | ||
|
||
If yes, please describe the impact and migration path for existing applications: | ||
|
||
**The PR fulfills these requirements:** | ||
## **Related issue, if any:** | ||
|
||
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number) | ||
<!-- Paste issue's link or number hashtag here. --> | ||
|
||
You have tested in the following browsers: (Providing a detailed version will be better.) | ||
## **Tested in the following browsers:** | ||
|
||
- [ ] Chrome | ||
- [ ] Firefox | ||
- [ ] Safari | ||
- [ ] Edge | ||
- [ ] IE | ||
|
||
If adding a **new feature**, the PR's description includes: | ||
|
||
- [ ] A convincing reason for adding this feature | ||
- [ ] Related documents have been updated | ||
- [ ] Related tests have been updated | ||
|
||
To avoid wasting your time, it's best to open a **feature request issue** first and wait for approval before working on it. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,41 +2,78 @@ name: Build & Test | |
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
branches: [master, develop] | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
branches: [master, develop] | ||
|
||
jobs: | ||
build: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: ['lts/*'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Build | ||
run: npm run build | ||
- name: Lint | ||
run: npm run lint | ||
|
||
test-jest: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [12.x, 14.x] | ||
node-version: ['lts/*'] | ||
os: ['macos-latest', 'ubuntu-latest', 'windows-latest'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Build | ||
run: npm run build | ||
- name: Unit Tests | ||
run: npm run test:unit -- --ci --runInBand | ||
- name: Integration Tests | ||
run: npm run test:integration -- --ci --runInBand | ||
|
||
test-playwright: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: ['lts/*'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: bootstrap | ||
run: npm run bootstrap | ||
- name: unit tests | ||
run: npm run test:unit -- -ci --runInBand | ||
- name: integration tests | ||
run: npm run test:integration -- -ci --runInBand | ||
- uses: microsoft/playwright[email protected] | ||
- name: e2e tests | ||
run: npm run test:e2e -- --ci --runInBand | ||
- name: Upload artifacts (diff output) | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
- name: Build | ||
run: npm run build | ||
- name: Install Playwright | ||
run: npx playwright install --with-deps | ||
- name: E2E Tests (Playwright) | ||
run: npm run test:e2e | ||
- name: Store artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: ${{ matrix.os }}-${{ matrix.node-version }}-diff-output | ||
path: ${{ github.workspace }}/test/**/__diff_output__/* | ||
name: ${{ matrix.os }}-${{ matrix.node-version }}-artifacts | ||
path: | | ||
_playwright-results/ | ||
_playwright-report/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
*.log | ||
.DS_Store | ||
.idea | ||
__diff_output__ | ||
lib/ | ||
node_modules | ||
themes/ | ||
*.log | ||
/_playwright-report | ||
/_playwright-results | ||
/lib | ||
/node_modules | ||
/themes | ||
|
||
# exceptions | ||
!.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.eslintignore | ||
.eslintrc | ||
.github/ | ||
.github | ||
.gitignore | ||
.travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
arrowParens: 'avoid', | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"cSpell.words": ["coverpage"] | ||
} |
Oops, something went wrong.