Skip to content

Commit a343420

Browse files
authored
Update demo (#124)
1 parent 1471e84 commit a343420

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

cypress/integration/test.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("test", () => {
2424

2525
it("loads yaml tab", () => {
2626
checkTab(/yaml/i, [/introduction/i], /yaml example/i);
27-
checkTab(/yaml/i, [/api/i, /hello world/i], /hello world/i);
27+
checkTab(/yaml/i, [/^api$/i, /hello world/i], /hello world/i);
2828
});
2929

3030
it("loads mega tab", () => {
@@ -50,7 +50,7 @@ describe("test", () => {
5050
});
5151

5252
it("loads api tab", () => {
53-
checkTab(/api/i, [/^pet$/i, /recursive/i], /recursive/i);
53+
checkTab(/^api$/i, [/^pet$/i, /recursive/i], /recursive/i);
5454
});
5555

5656
it("loads a page with authentication", () => {

demo/docusaurus.config.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
66

77
/** @type {import('@docusaurus/types').Config} */
88
const config = {
9-
title: "My Site",
10-
tagline: "Dinosaurs are cool",
11-
url: "https://your-docusaurus-test-site.com",
9+
title: "Docusaurus OpenAPI",
10+
tagline: "OpenAPI plugin for generating API reference docs in Docusaurus v2.",
11+
url: "https://docusaurus-openapi.netlify.app",
1212
baseUrl: "/",
1313
onBrokenLinks: "throw",
1414
onBrokenMarkdownLinks: "warn",
1515
favicon: "img/favicon.ico",
16-
organizationName: "facebook", // Usually your GitHub org/user name.
17-
projectName: "docusaurus", // Usually your repo name.
16+
organizationName: "cloud-annotations", // Usually your GitHub org/user name.
17+
projectName: "docusaurus-openapi", // Usually your repo name.
1818

1919
presets: [
2020
[
@@ -27,13 +27,14 @@ const config = {
2727
docs: {
2828
sidebarPath: require.resolve("./sidebars.js"),
2929
// Please change this to your repo.
30-
editUrl: "https://github.com/facebook/docusaurus/edit/main/website/",
30+
editUrl:
31+
"https://github.com/cloud-annotations/docusaurus-openapi/edit/main/demo/",
3132
},
3233
blog: {
3334
showReadingTime: true,
3435
// Please change this to your repo.
3536
editUrl:
36-
"https://github.com/facebook/docusaurus/edit/main/website/blog/",
37+
"https://github.com/cloud-annotations/docusaurus-openapi/edit/main/demo/",
3738
},
3839
theme: {
3940
customCss: require.resolve("./src/css/custom.css"),
@@ -95,9 +96,9 @@ const config = {
9596
/** @type {import('docusaurus-preset-openapi').ThemeConfig} */
9697
({
9798
navbar: {
98-
title: "My Site",
99+
title: "OpenAPI",
99100
logo: {
100-
alt: "My Site Logo",
101+
alt: "Docusaurus Logo",
101102
src: "img/logo.svg",
102103
},
103104
items: [
@@ -115,7 +116,7 @@ const config = {
115116
{ to: "/mega", label: "Mega", position: "left" },
116117
{ to: "/blog", label: "Blog", position: "left" },
117118
{
118-
href: "https://github.com/facebook/docusaurus",
119+
href: "https://github.com/cloud-annotations/docusaurus-openapi",
119120
label: "GitHub",
120121
position: "right",
121122
},
@@ -159,12 +160,12 @@ const config = {
159160
},
160161
{
161162
label: "GitHub",
162-
href: "https://github.com/facebook/docusaurus",
163+
href: "https://github.com/cloud-annotations/docusaurus-openapi",
163164
},
164165
],
165166
},
166167
],
167-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
168+
copyright: `Copyright © ${new Date().getFullYear()} Cloud Annotations, Inc. Built with Docusaurus.`,
168169
},
169170
prism: {
170171
theme: lightCodeTheme,

0 commit comments

Comments
 (0)