Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.

Commit 3f858fb

Browse files
authored
v1.1.0 beta.28 (#111)
* chore: update @redocly/ui imports * chore: upgrade to 1.1.0-beta.26 * chore: upgrade button new format * chore: udpate fonts usage * chore: minor theme update * chore: upgrade to v1.1.0-beta.28
1 parent c1d48ef commit 3f858fb

File tree

8 files changed

+152
-187
lines changed

8 files changed

+152
-187
lines changed

Diff for: contact.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Contact Us
33
---
44

5-
import { Flex, WideTile } from '@redocly/ui'
5+
import { Flex, WideTile } from '@redocly/developer-portal/ui';
66

77
# Contact us
88

Diff for: developer-portal/mdx.mdx

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { RedocResponse } from '@redocly/ui';
2-
31
import {
42
Box,
53
Button,
@@ -13,7 +11,8 @@ import {
1311
WideTile,
1412
Emphasis,
1513
SectionHeader,
16-
} from '@redocly/ui';
14+
RedocResponse
15+
} from '@redocly/developer-portal/ui';
1716

1817
import icon3 from '../images/icon3.png';
1918

@@ -24,7 +23,7 @@ Use MDX by naming the file extension as `.mdx` and importing the components at t
2423

2524
You can import a single extension:
2625
```jsx
27-
import { RedocResponse } from '@redocly/ui';
26+
import { RedocResponse } from '@redocly/developer-portal/ui';
2827
```
2928
Or multiple extensions at the same time:
3029

@@ -42,10 +41,10 @@ import {
4241
WideTile,
4342
Emphasis,
4443
SectionHeader,
45-
} from '@redocly/ui';
44+
} from '@redocly/developer-portal/ui';
4645
```
4746

48-
We created a library (`@redocly/ui`) with components you can reference.
47+
We created a library (`@redocly/developer-portal/ui`) with components you can reference.
4948

5049
Try and create an MDX file which renders one of your API's response objects.
5150

Diff for: developer-portal/redoc-integration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ To display API reference docs in an `.mdx` file, first import the React componen
246246

247247

248248
```jsx
249-
import { OpenApiResponse } from '@redocly/ui';
249+
import { OpenApiResponse } from '@redocly/developer-portal/ui';
250250
```
251251

252252
Then you can use it as follows:

Diff for: index.mdx

+7-9
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
title: Demo API Portal
33
---
44

5-
import { LandingLayout } from '@redocly/ui';
6-
75
import {
6+
LandingLayout,
87
Button,
98
Box,
109
FlexSection,
@@ -16,9 +15,8 @@ import {
1615
H1,
1716
H2,
1817
SectionHeader,
19-
} from '@redocly/ui';
20-
21-
import { NavBar } from '@redocly/ui';
18+
NavBar,
19+
} from '@redocly/developer-portal/ui';
2220

2321
import icon1 from './images/icon1.png';
2422
import launchFastIcon from './images/launch-fast.svg';
@@ -33,14 +31,14 @@ export default LandingLayout;
3331
<H1>Redocly training</H1>
3432
<H2>A starter developer portal with training exercises</H2>
3533
<Flex p={20} justifyContent="center">
36-
{/* <Button inversed large to="https://app.redoc.ly">
34+
{/* <Button size="xlarge" to="https://app.redoc.ly">
3735
Redocly app
3836
</Button> */}
39-
<Button inversed transparent large to="developer-portal/index.md">
37+
<Button variant="outlined" size="xlarge" to="developer-portal/index.md">
4038
Get started
4139
</Button>
42-
{/* <Button inversed transparent large>
43-
Workflows
40+
{/* <Button variant="outlined" size="xlarge" to="https://redoc.ly/docs">
41+
Docs
4442
</Button> */}
4543
</Flex>
4644
</Jumbotron>

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"clean": "redocly-portal clean"
1111
},
1212
"dependencies": {
13-
"@redocly/developer-portal": "1.0.0-beta.162"
13+
"@redocly/developer-portal": "1.1.0-beta.28"
1414
}
1515
}

Diff for: siteConfig.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ oasDefinitions:
99
petstore: ./openapi/petstore.yaml
1010
# add links to definitions in our API registry by using a fully qualified URL.
1111
stylesheets:
12-
- https://fonts.googleapis.com/css?family=Roboto:300,400,600,700
1312
- https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700&display=swap
13+
- https://fonts.googleapis.com/css?family=Source+Code+Pro:300,400,600,700&display=swap
1414
#ga:
1515
# you can use any options here from https://www.gatsbyjs.org/packages/gatsby-plugin-google-analytics/
1616
# note that GA doesn't work in DEV

Diff for: theme.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ export const theme = {
145145
// // ...
146146
// },
147147
code: {
148-
fontSize: '14px',
149-
fontFamily: 'Courier, monospace',
150-
fontWeight: ({ typography }) => typography.fontWeightRegular,
148+
fontSize: '13px',
149+
fontFamily: '"Source Code Pro", sans-serif',
150+
// fontWeight: ({ typography }) => typography.fontWeightRegular,
151151
color: '#e53935',
152152
backgroundColor: 'rgba(38, 50, 56, 0.04)',
153153
wrap: false,

0 commit comments

Comments
 (0)