Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update outdated documentation links #1946

Merged
merged 2 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/browser/modules/Sidebar/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const About = ({ serverVersion, serverEdition }: AboutProps) => (
</p>
)}
<p>
<DrawerExternalLink href="https://github.com/neo4j/neo4j-browser/wiki/changelog">
<DrawerExternalLink href="https://github.com/neo4j/neo4j-browser/releases">
Neo4j Browser Changelog
</DrawerExternalLink>
</p>
Expand Down
41 changes: 13 additions & 28 deletions src/browser/modules/Sidebar/Documents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ export const shouldLinkToNewRefs = (v: string): boolean => {

const getReferences = (version: string, v: string) => {
const newRefs = [
{
name: 'Getting Started with Neo4j',
url: `https://neo4j.com/docs/getting-started/${v}`
},
{
name: 'Neo4j Browser Manual',
url: 'https://neo4j.com/docs/browser-manual/current/'
Expand All @@ -64,10 +60,6 @@ const getReferences = (version: string, v: string) => {
}
]
const oldRefs = [
{
name: 'Getting Started',
url: `https://neo4j.com/docs/developer-manual/${v}/get-started/`
},
{
name: 'Developer Manual',
url: `https://neo4j.com/docs/developer-manual/${v}/`
Expand All @@ -77,42 +69,39 @@ const getReferences = (version: string, v: string) => {
url: `https://neo4j.com/docs/developer-manual/${v}/cypher/`
}
]
const common = [

const docs = [
{
name: 'Getting Started with Neo4j',
url: 'https://neo4j.com/docs/getting-started/'
},
...(shouldLinkToNewRefs(version) ? newRefs : oldRefs),
{
name: 'Cypher Refcard',
url: `https://neo4j.com/docs/cypher-refcard/${v}/`
}
]

const docs = [
...(shouldLinkToNewRefs(version) ? newRefs : oldRefs),
...common
]

const graphAcademy = [
{
name: 'Neo4j Fundamentals',
url: `https://graphacademy.neo4j.com/courses/neo4j-fundamentals/`
url: 'https://graphacademy.neo4j.com/courses/neo4j-fundamentals/'
},
{
name: 'Cypher Fundamentals',
url: `https://graphacademy.neo4j.com/courses/cypher-fundamentals/`
url: 'https://graphacademy.neo4j.com/courses/cypher-fundamentals/'
},
{
name: 'Graph Data Modeling Fundamentals',
url: `https://graphacademy.neo4j.com/courses/modeling-fundamentals/`
url: 'https://graphacademy.neo4j.com/courses/modeling-fundamentals/'
},
{
name: 'Importing CSV Data',
url: `https://graphacademy.neo4j.com/courses/importing-data/`
url: 'https://graphacademy.neo4j.com/courses/importing-cypher/'
},
{
name: 'Courses for Developers',
url: `https://graphacademy.neo4j.com/category/developer/`
},
{
name: 'Courses for Data Scientists',
url: `https://graphacademy.neo4j.com/category/data-scientist/`
name: 'Full Course Catalog',
url: 'https://graphacademy.neo4j.com/categories/'
}
]

Expand All @@ -128,10 +117,6 @@ const getReferences = (version: string, v: string) => {
{
name: 'Knowledge Base',
url: 'https://neo4j.com/developer/kb/'
},
{
name: 'Neo4j Browser Developer Pages',
url: 'https://neo4j.com/developer/neo4j-browser/'
}
]
return { docs, other, graphAcademy }
Expand Down