Skip to content

Commit

Permalink
feat 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lethamburn committed Apr 2, 2023
1 parent 2654c38 commit 26f42fe
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 191 deletions.
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const withNextra = require("nextra")({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
});
})

module.exports = withNextra({
images: {
Expand All @@ -11,4 +11,4 @@ module.exports = withNextra({
locales: ["en"],
defaultLocale: "en",
},
});
})
4 changes: 2 additions & 2 deletions pages/character.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Divider from "../components/Divider.jsx";
import Divider from "../components/Divider.jsx"

# Character

<Divider />

There is a total of 952 characters sorted by name.
There is a total of 964 characters sorted by name.
10 changes: 5 additions & 5 deletions pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Gallery from "../components/Gallery.jsx";
import Divider from "../components/Divider.jsx";
import Gallery from "../components/Gallery.jsx"
import Divider from "../components/Divider.jsx"

# Introduction

Expand All @@ -19,10 +19,10 @@ This documentation will help you get familiar with the resources of the Star War

| Type | Quantity | Endpoint |
| :------------ | :------: | ---------------------------------------------------------------: |
| Characters | 952 | https://starwars-databank-server.vercel.app/api/v1/characters |
| Characters | 964 | https://starwars-databank-server.vercel.app/api/v1/characters |
| Creatures | 75 | https://starwars-databank-server.vercel.app/api/v1/creatures/ |
| Droids | 60 | https://starwars-databank-server.vercel.app/api/v1/droids/ |
| Locations | 312 | https://starwars-databank-server.vercel.app/api/v1/locations/ |
| Locations | 326 | https://starwars-databank-server.vercel.app/api/v1/locations/ |
| Organizations | 135 | https://starwars-databank-server.vercel.app/api/v1/organizations |
| Species | 82 | https://starwars-databank-server.vercel.app/api/v1/species |
| Vehicles | 266 | https://starwars-databank-server.vercel.app/api/v1/vehicles |
| Vehicles | 267 | https://starwars-databank-server.vercel.app/api/v1/vehicles |
6 changes: 3 additions & 3 deletions pages/info.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Divider from "../components/Divider.jsx";
import Divider from "../components/Divider.jsx"

# Info and Pagination

Expand Down Expand Up @@ -29,7 +29,7 @@ GET https://starwars-databank-server.vercel.app/api/v1/characters
```json
{
"info": {
"total": 952,
"total": 964,
"page": 1,
"limit": 10,
"next": "/api/v1/characters?page=2&limit=10",
Expand All @@ -50,7 +50,7 @@ GET https://starwars-databank-server.vercel.app/api/v1/characters?page=10&limit=
```json
{
"info": {
"total": 952,
"total": 964,
"page": 10,
"limit": 3,
"next": "/api/v1/characters?page=11&limit=3",
Expand Down
2 changes: 1 addition & 1 deletion pages/location.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import Divider from "../components/Divider.jsx";
# Location

<Divider />
There is a total of 312 locations sorted by name.
There is a total of 326 locations sorted by name.
4 changes: 2 additions & 2 deletions pages/vehicle.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Divider from "../components/Divider.jsx";
import Divider from "../components/Divider.jsx"

# Vehicle

<Divider />
There is a total of 266 vehicles sorted by name.
There is a total of 267 vehicles sorted by name.
167 changes: 0 additions & 167 deletions static/sitemap.xml

This file was deleted.

22 changes: 13 additions & 9 deletions theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import Image from "next/image";
import React from "react"
import {DocsThemeConfig} from "nextra-theme-docs"
import Image from "next/image"

const config: DocsThemeConfig = {
search: {
component: false,
},
head: (
<>
<meta
Expand All @@ -28,7 +31,7 @@ const config: DocsThemeConfig = {
},
],
},
};
}
},
project: {
link: "https://github.com/lethamburn/starwars-databank-docs",
Expand All @@ -51,17 +54,18 @@ const config: DocsThemeConfig = {
height={24}
priority
/>
<span style={{ marginLeft: ".5em", fontWeight: 800 }}>
<span style={{marginLeft: ".5em", fontWeight: 800}}>
STAR WARS DATABANK
</span>
</>
),
primaryHue: 39,
banner: {
key: "2.0-release",
key: "2.5-release",
text: (
<a href="https://starwars-databank.vercel.app/about">
🎉 Star Wars Databank 2.0 is released. Read more →
🎉 Star Wars Databank 2.5 is released. The Mandalorian and The Bad Batch
new info added →
</a>
),
},
Expand All @@ -75,6 +79,6 @@ const config: DocsThemeConfig = {
</span>
),
},
};
}

export default config;
export default config

1 comment on commit 26f42fe

@vercel
Copy link

@vercel vercel bot commented on 26f42fe Apr 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.