Skip to content

Commit adeb621

Browse files
update outdated links (#1946)
* update outdated links * self review
1 parent 3e06f72 commit adeb621

File tree

2 files changed

+14
-29
lines changed

2 files changed

+14
-29
lines changed

src/browser/modules/Sidebar/About.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const About = ({ serverVersion, serverEdition }: AboutProps) => (
9494
</p>
9595
)}
9696
<p>
97-
<DrawerExternalLink href="https://github.com/neo4j/neo4j-browser/wiki/changelog">
97+
<DrawerExternalLink href="https://github.com/neo4j/neo4j-browser/releases">
9898
Neo4j Browser Changelog
9999
</DrawerExternalLink>
100100
</p>

src/browser/modules/Sidebar/Documents.tsx

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ export const shouldLinkToNewRefs = (v: string): boolean => {
5050

5151
const getReferences = (version: string, v: string) => {
5252
const newRefs = [
53-
{
54-
name: 'Getting Started with Neo4j',
55-
url: `https://neo4j.com/docs/getting-started/${v}`
56-
},
5753
{
5854
name: 'Neo4j Browser Manual',
5955
url: 'https://neo4j.com/docs/browser-manual/current/'
@@ -64,10 +60,6 @@ const getReferences = (version: string, v: string) => {
6460
}
6561
]
6662
const oldRefs = [
67-
{
68-
name: 'Getting Started',
69-
url: `https://neo4j.com/docs/developer-manual/${v}/get-started/`
70-
},
7163
{
7264
name: 'Developer Manual',
7365
url: `https://neo4j.com/docs/developer-manual/${v}/`
@@ -77,42 +69,39 @@ const getReferences = (version: string, v: string) => {
7769
url: `https://neo4j.com/docs/developer-manual/${v}/cypher/`
7870
}
7971
]
80-
const common = [
72+
73+
const docs = [
74+
{
75+
name: 'Getting Started with Neo4j',
76+
url: 'https://neo4j.com/docs/getting-started/'
77+
},
78+
...(shouldLinkToNewRefs(version) ? newRefs : oldRefs),
8179
{
8280
name: 'Cypher Refcard',
8381
url: `https://neo4j.com/docs/cypher-refcard/${v}/`
8482
}
8583
]
8684

87-
const docs = [
88-
...(shouldLinkToNewRefs(version) ? newRefs : oldRefs),
89-
...common
90-
]
91-
9285
const graphAcademy = [
9386
{
9487
name: 'Neo4j Fundamentals',
95-
url: `https://graphacademy.neo4j.com/courses/neo4j-fundamentals/`
88+
url: 'https://graphacademy.neo4j.com/courses/neo4j-fundamentals/'
9689
},
9790
{
9891
name: 'Cypher Fundamentals',
99-
url: `https://graphacademy.neo4j.com/courses/cypher-fundamentals/`
92+
url: 'https://graphacademy.neo4j.com/courses/cypher-fundamentals/'
10093
},
10194
{
10295
name: 'Graph Data Modeling Fundamentals',
103-
url: `https://graphacademy.neo4j.com/courses/modeling-fundamentals/`
96+
url: 'https://graphacademy.neo4j.com/courses/modeling-fundamentals/'
10497
},
10598
{
10699
name: 'Importing CSV Data',
107-
url: `https://graphacademy.neo4j.com/courses/importing-data/`
100+
url: 'https://graphacademy.neo4j.com/courses/importing-cypher/'
108101
},
109102
{
110-
name: 'Courses for Developers',
111-
url: `https://graphacademy.neo4j.com/category/developer/`
112-
},
113-
{
114-
name: 'Courses for Data Scientists',
115-
url: `https://graphacademy.neo4j.com/category/data-scientist/`
103+
name: 'Full Course Catalog',
104+
url: 'https://graphacademy.neo4j.com/categories/'
116105
}
117106
]
118107

@@ -128,10 +117,6 @@ const getReferences = (version: string, v: string) => {
128117
{
129118
name: 'Knowledge Base',
130119
url: 'https://neo4j.com/developer/kb/'
131-
},
132-
{
133-
name: 'Neo4j Browser Developer Pages',
134-
url: 'https://neo4j.com/developer/neo4j-browser/'
135120
}
136121
]
137122
return { docs, other, graphAcademy }

0 commit comments

Comments
 (0)