Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd785dd

Browse files
authored
Fix docs links (#3351)
1 parentc1885da commitbd785dd

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

‎coder.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Unit]
22
Description="Coder - Self-hosted developer workspaces on your infra"
3-
Documentation=https://coder.com/docs/
3+
Documentation=https://coder.com/docs/coder-oss
44
Requires=network-online.target
55
After=network-online.target
66
ConditionFileNotEmpty=/etc/coder.d/coder.env

‎site/src/components/UserDropdownContent/UserDropdownContent.test.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,6 @@ describe("UserDropdownContent", () => {
2929
expect(screen.getByText(MockAdminRole.display_name)).toBeDefined()
3030
})
3131

32-
it("has the correct link for the documentation item",()=>{
33-
process.env.CODER_VERSION="v0.5.4"
34-
render(<UserDropdownContentuser={MockUser}onSignOut={jest.fn()}onPopoverClose={jest.fn()}/>)
35-
36-
constlink=screen.getByText(Language.docsLabel).closest("a")
37-
if(!link){
38-
thrownewError("Anchor tag not found for the documentation menu item")
39-
}
40-
41-
expect(link.getAttribute("href")).toBe(
42-
`https://github.com/coder/coder/tree/${process.env.CODER_VERSION}/docs`,
43-
)
44-
})
45-
4632
it("has the correct link for the account item",()=>{
4733
render(<UserDropdownContentuser={MockUser}onSignOut={jest.fn()}onPopoverClose={jest.fn()}/>)
4834

‎site/src/components/UserDropdownContent/UserDropdownContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const UserDropdownContent: FC<UserDropdownContentProps> = ({
6565
<Divider/>
6666

6767
<a
68-
href={`https://github.com/coder/coder/tree/${process.env.CODER_VERSION}/docs`}
68+
href="https://coder.com/docs/coder-oss"
6969
target="_blank"
7070
rel="noreferrer"
7171
className={styles.link}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp