update: correct links and action to 'main' branch (#2547)

This commit is contained in:
Luffy 2025-05-06 17:19:25 +08:00 committed by GitHub
parent 41fd8f624e
commit 5d9ea4f664
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ on:
push:
paths:
- 'docs/**.md'
branches: [develop, master]
branches: [develop, main]
jobs:
crowdin:

View File

@ -2,9 +2,9 @@ name: Build & Test
on:
push:
branches: [master, main, develop]
branches: [main, develop]
pull_request:
branches: [master, main, develop]
branches: [main, develop]
workflow_dispatch:
jobs:

View File

@ -25,7 +25,7 @@ docs/zh-cn/guide.md => http://domain.com/#/zh-cn/guide
## Sidebar
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):
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):
First, you need to set `loadSidebar` to **true**. Details are available in the [configuration paragraph](configuration.md#loadsidebar).

View File

@ -43,7 +43,7 @@ window.$docsify = {
'/foo/(.*)': '/bar/$1', // supports regexp
'/zh-cn/changelog': '/changelog',
'/changelog':
'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG',
'https://raw.githubusercontent.com/docsifyjs/docsify/main/CHANGELOG',
// You may need this if you use routerMode:'history'.
'/.*/_sidebar.md': '/_sidebar.md', // See #301
@ -284,7 +284,7 @@ window.$docsify = {
// Or use the readme in your repo
homepage:
'https://raw.githubusercontent.com/docsifyjs/docsify/master/README.md',
'https://raw.githubusercontent.com/docsifyjs/docsify/main/README.md',
};
```

View File

@ -100,7 +100,7 @@
'.*?/awesome':
'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md',
'.*?/changelog':
'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md',
'https://raw.githubusercontent.com/docsifyjs/docsify/main/CHANGELOG.md',
'/.*/_navbar.md': '/_navbar.md',
'/zh-cn/(.*)':
'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1',

View File

@ -230,7 +230,7 @@ window.$docsify = {
hook.beforeEach(html => {
const url =
'https://github.com/docsifyjs/docsify/blob/master/docs/' +
'https://github.com/docsifyjs/docsify/blob/main/docs/' +
vm.route.file;
const editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n';