mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
update: correct links and action to 'main' branch (#2547)
This commit is contained in:
parent
41fd8f624e
commit
5d9ea4f664
2
.github/workflows/crowdin.yml
vendored
2
.github/workflows/crowdin.yml
vendored
@ -5,7 +5,7 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- 'docs/**.md'
|
||||
branches: [develop, master]
|
||||
branches: [develop, main]
|
||||
|
||||
jobs:
|
||||
crowdin:
|
||||
|
||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -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:
|
||||
|
||||
@ -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).
|
||||
|
||||
|
||||
@ -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',
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user