Skip to content

Commit 5d9ea4f

Browse files
authored
update: correct links and action to 'main' branch (#2547)
1 parent 41fd8f6 commit 5d9ea4f

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/workflows/crowdin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
paths:
77
- 'docs/**.md'
8-
branches: [develop, master]
8+
branches: [develop, main]
99

1010
jobs:
1111
crowdin:

.github/workflows/test.yml

+2-2
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:

docs/adding-pages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ docs/zh-cn/guide.md => http://domain.com/#/zh-cn/guide
2525

2626
## Sidebar
2727

28-
In order to have a sidebar, you can create your own `_sidebar.md` (see [this documentation's sidebar](https://github.com/docsifyjs/docsify/blob/master/docs/_sidebar.md) for an example):
28+
In order to have a sidebar, you can create your own `_sidebar.md` (see [this documentation's sidebar](https://github.com/docsifyjs/docsify/blob/main/docs/_sidebar.md) for an example):
2929

3030
First, you need to set `loadSidebar` to **true**. Details are available in the [configuration paragraph](configuration.md#loadsidebar).
3131

docs/configuration.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ window.$docsify = {
4343
'/foo/(.*)': '/bar/$1', // supports regexp
4444
'/zh-cn/changelog': '/changelog',
4545
'/changelog':
46-
'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG',
46+
'https://raw.githubusercontent.com/docsifyjs/docsify/main/CHANGELOG',
4747

4848
// You may need this if you use routerMode:'history'.
4949
'/.*/_sidebar.md': '/_sidebar.md', // See #301
@@ -284,7 +284,7 @@ window.$docsify = {
284284

285285
// Or use the readme in your repo
286286
homepage:
287-
'https://raw.githubusercontent.com/docsifyjs/docsify/master/README.md',
287+
'https://raw.githubusercontent.com/docsifyjs/docsify/main/README.md',
288288
};
289289
```
290290

docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
'.*?/awesome':
101101
'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md',
102102
'.*?/changelog':
103-
'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md',
103+
'https://raw.githubusercontent.com/docsifyjs/docsify/main/CHANGELOG.md',
104104
'/.*/_navbar.md': '/_navbar.md',
105105
'/zh-cn/(.*)':
106106
'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1',

docs/write-a-plugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ window.$docsify = {
230230

231231
hook.beforeEach(html => {
232232
const url =
233-
'https://github.com/docsifyjs/docsify/blob/master/docs/' +
233+
'https://github.com/docsifyjs/docsify/blob/main/docs/' +
234234
vm.route.file;
235235
const editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n';
236236

0 commit comments

Comments
 (0)