diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 262bb9af4..a82088165 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -5,7 +5,7 @@ on: push: paths: - 'docs/**.md' - branches: [develop, master] + branches: [develop, main] jobs: crowdin: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 814cabef0..67c6c0f00 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/docs/adding-pages.md b/docs/adding-pages.md index 9ce19f9d7..9a5b2454b 100644 --- a/docs/adding-pages.md +++ b/docs/adding-pages.md @@ -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). diff --git a/docs/configuration.md b/docs/configuration.md index c2fa6d897..a11f89806 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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', }; ``` diff --git a/docs/index.html b/docs/index.html index 62e36f6ea..4da308171 100644 --- a/docs/index.html +++ b/docs/index.html @@ -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', diff --git a/docs/write-a-plugin.md b/docs/write-a-plugin.md index a27b599a0..6e3462c92 100644 --- a/docs/write-a-plugin.md +++ b/docs/write-a-plugin.md @@ -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';