From 26f42fe5ccf3a1c6586c851baf0c4d4329884065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Rosales=20Mart=C3=ADnez?= Date: Sun, 2 Apr 2023 09:41:22 +0200 Subject: [PATCH] feat 2.5 --- next.config.js | 4 +- pages/character.mdx | 4 +- pages/index.mdx | 10 +-- pages/info.mdx | 6 +- pages/location.mdx | 2 +- pages/vehicle.mdx | 4 +- static/sitemap.xml | 167 -------------------------------------------- theme.config.tsx | 22 +++--- 8 files changed, 28 insertions(+), 191 deletions(-) delete mode 100644 static/sitemap.xml diff --git a/next.config.js b/next.config.js index d0ef960..bc879d5 100644 --- a/next.config.js +++ b/next.config.js @@ -1,7 +1,7 @@ const withNextra = require("nextra")({ theme: "nextra-theme-docs", themeConfig: "./theme.config.tsx", -}); +}) module.exports = withNextra({ images: { @@ -11,4 +11,4 @@ module.exports = withNextra({ locales: ["en"], defaultLocale: "en", }, -}); +}) diff --git a/pages/character.mdx b/pages/character.mdx index cf62c20..72cfd73 100644 --- a/pages/character.mdx +++ b/pages/character.mdx @@ -1,7 +1,7 @@ -import Divider from "../components/Divider.jsx"; +import Divider from "../components/Divider.jsx" # Character -There is a total of 952 characters sorted by name. +There is a total of 964 characters sorted by name. diff --git a/pages/index.mdx b/pages/index.mdx index 5697afc..725ae48 100644 --- a/pages/index.mdx +++ b/pages/index.mdx @@ -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 @@ -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 | diff --git a/pages/info.mdx b/pages/info.mdx index 350f685..8aa1b50 100644 --- a/pages/info.mdx +++ b/pages/info.mdx @@ -1,4 +1,4 @@ -import Divider from "../components/Divider.jsx"; +import Divider from "../components/Divider.jsx" # Info and Pagination @@ -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", @@ -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", diff --git a/pages/location.mdx b/pages/location.mdx index 5247b1c..98cdfb9 100644 --- a/pages/location.mdx +++ b/pages/location.mdx @@ -3,4 +3,4 @@ import Divider from "../components/Divider.jsx"; # Location -There is a total of 312 locations sorted by name. +There is a total of 326 locations sorted by name. diff --git a/pages/vehicle.mdx b/pages/vehicle.mdx index e12b321..5ac9d11 100644 --- a/pages/vehicle.mdx +++ b/pages/vehicle.mdx @@ -1,6 +1,6 @@ -import Divider from "../components/Divider.jsx"; +import Divider from "../components/Divider.jsx" # Vehicle -There is a total of 266 vehicles sorted by name. +There is a total of 267 vehicles sorted by name. diff --git a/static/sitemap.xml b/static/sitemap.xml deleted file mode 100644 index 4ed54eb..0000000 --- a/static/sitemap.xml +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - https://starwars-databank.vercel.app/ - 2023-03-18T23:35:17+00:00 - 1.00 - - - https://starwars-databank.vercel.app/about - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/info - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/character - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/character/schema - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/character/getall - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/character/single - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/creature - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/creature/schema - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/creature/getall - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/creature/single - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/droid - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/droid/schema - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/droid/getall - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/droid/single - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/location - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/location/schema - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/location/getall - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/location/single - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/organization - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/organization/schema - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/organization/getall - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/organization/single - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/specie - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/specie/schema - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/specie/getall - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/specie/single - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/vehicle - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/vehicle/schema - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/vehicle/getall - 2023-03-18T23:35:17+00:00 - 0.80 - - - https://starwars-databank.vercel.app/vehicle/single - 2023-03-18T23:35:17+00:00 - 0.80 - - - - \ No newline at end of file diff --git a/theme.config.tsx b/theme.config.tsx index b7dd1d7..5bc7f79 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -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: ( <> - + STAR WARS DATABANK ), primaryHue: 39, banner: { - key: "2.0-release", + key: "2.5-release", text: ( - 🎉 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 → ), }, @@ -75,6 +79,6 @@ const config: DocsThemeConfig = { ), }, -}; +} -export default config; +export default config