Skip to content

Commit b8150bb

Browse files
committed
Remove guide and link to external site
1 parent 821ae59 commit b8150bb

File tree

3 files changed

+15
-47
lines changed

3 files changed

+15
-47
lines changed

backstage/packages/app/src/components/Root/Root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const Root = ({ children }: PropsWithChildren<{}>) => (
6868
<SidebarItem icon={CategoryIcon} to="/catalog" text="Catalog" />
6969
<SidebarItem
7070
icon={LibraryBooksIcon}
71-
to="/guide"
71+
to="https://dev-guide.diamond.ac.uk"
7272
text="Developer Guide"
7373
/>
7474
{/* End global nav */}
Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
import { PageWithHeader } from '@backstage/core-components';
2-
import { TechDocsReaderPageContent } from '@backstage/plugin-techdocs';
3-
import { TechDocsReaderPageProvider } from '@backstage/plugin-techdocs-react';
42
import React from 'react';
53

64
export const DeveloperGuidePage = () => (
75
<PageWithHeader title="Developer Guide" themeId="documentation">
8-
<TechDocsReaderPageProvider
9-
entityRef={{
10-
kind: 'component',
11-
namespace: 'default',
12-
name: 'developer-guide',
13-
}}
14-
>
15-
<TechDocsReaderPageContent />
16-
</TechDocsReaderPageProvider>
6+
<div style={{ padding: '24px' }}>
7+
<h2>Developer Guide</h2>
8+
<p>
9+
The Developer Guide has moved to{' '}
10+
<a
11+
href="https://dev-guide.diamond.ac.uk"
12+
target="_blank"
13+
rel="noopener noreferrer"
14+
style={{ color: 'blue', textDecoration: 'underline' }}
15+
>
16+
https://dev-guide.diamond.ac.uk
17+
</a>
18+
</p>
19+
</div>
1720
</PageWithHeader>
1821
);

backstage/packages/app/src/components/home/HomePage.tsx

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
Typography,
1111
} from '@material-ui/core';
1212
import CategoryIcon from '@material-ui/icons/Category';
13-
import LibraryBooksIcon from '@material-ui/icons/LibraryBooks';
1413
import React from 'react';
1514
import { useNavigate } from 'react-router-dom';
1615

@@ -45,37 +44,6 @@ const SoftwareCatalogCard = () => {
4544
);
4645
};
4746

48-
const DeveloperGuideCard = () => {
49-
const navigate = useNavigate();
50-
const orgName =
51-
useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage';
52-
53-
return (
54-
<Card style={{ height: '100%' }}>
55-
<CardActionArea onClick={() => navigate('/guide')}>
56-
<CardContent>
57-
<Typography variant="h5">
58-
<LibraryBooksIcon /> Developer Guide
59-
</Typography>
60-
<Typography variant="body2">
61-
Extensive documentation on developing software at {orgName}.
62-
Including Tutorials, How-Tos, Explanations & References.
63-
</Typography>
64-
</CardContent>
65-
<CardActions>
66-
<Button
67-
size="medium"
68-
color="primary"
69-
onClick={() => navigate('/guide')}
70-
>
71-
Visit
72-
</Button>
73-
</CardActions>
74-
</CardActionArea>
75-
</Card>
76-
);
77-
};
78-
7947
export const HomePage = () => {
8048
const orgName =
8149
useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage';
@@ -92,9 +60,6 @@ export const HomePage = () => {
9260
<Grid item xs={12} md={6} lg={4}>
9361
<SoftwareCatalogCard />
9462
</Grid>
95-
<Grid item xs={12} md={6} lg={4}>
96-
<DeveloperGuideCard />
97-
</Grid>
9863
</Grid>
9964
</Content>
10065
</PageWithHeader>

0 commit comments

Comments
 (0)