Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 59029bb

Browse files
authored
Add edit url to hosted docsite (#57)
1 parent f79a230 commit 59029bb

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

docusaurus.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const config: Config = {
1616
// GitHub pages deployment config.
1717
// If you aren't using GitHub pages, you don't need these.
1818
organizationName: "wavetermdev", // Usually your GitHub org/user name.
19-
projectName: "waveterm-docs-new", // Usually your repo name.
19+
projectName: "waveterm-docs", // Usually your repo name.
2020
deploymentBranch: "main",
2121

2222
onBrokenLinks: "throw",
@@ -36,6 +36,9 @@ const config: Config = {
3636
{
3737
path: "docs",
3838
routeBasePath: "/",
39+
editUrl: !process.env.EMBEDDED
40+
? "https://github.com/wavetermdev/waveterm-docs/edit/main/docs/"
41+
: undefined,
3942
} as import("@docusaurus/plugin-content-docs").Options,
4043
],
4144
"ideal-image",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "waveterm-docs-new",
2+
"name": "waveterm-docs",
33
"version": "0.0.0",
44
"scripts": {
55
"docusaurus": "docusaurus",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13623,9 +13623,9 @@ __metadata:
1362313623
languageName: node
1362413624
linkType: hard
1362513625

13626-
"waveterm-docs-new@workspace:.":
13626+
"waveterm-docs@workspace:.":
1362713627
version: 0.0.0-use.local
13628-
resolution: "waveterm-docs-new@workspace:."
13628+
resolution: "waveterm-docs@workspace:."
1362913629
dependencies:
1363013630
"@docusaurus/core": "npm:3.5.2"
1363113631
"@docusaurus/module-type-aliases": "npm:3.5.2"

0 commit comments

Comments
 (0)