Skip to content

Commit

Permalink
Clean up docs pages (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagadish-ravichandran authored Sep 2, 2024
1 parent ada7c9b commit 9686f1c
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Flex, Section, Separator, Text } from "@radix-ui/themes";
export default function Footer() {
return (
<footer className="py-5 text-center text-sm text-gray-700">
<Section size="2" maxWidth="500px" mx="auto">
<Section className="py-2" size="2" maxWidth="500px" mx="auto">
<Separator my="3" size="4" mb="6" />
<Text>
Created ❤ by <a href="https://rocktimsaikia.dev/">rocktimsaikia</a> ©{" "}
Expand Down
19 changes: 17 additions & 2 deletions client/pages/docs/_meta.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{
"index": "Overview",
"auth": "Authentication"
"index": {
"title": "Overview",
"theme": {
"footer": true,
"sidebar": true,
"toc": false
}
},
"auth": {
"title": "Authentication",
"theme": {
"footer": true,
"sidebar": true,
"toc": false
}
}
}

5 changes: 4 additions & 1 deletion client/pages/docs/anime/_meta.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"index": "Get anime information"
"index": {
"title": "Get anime information"
}
}

28 changes: 22 additions & 6 deletions client/pages/docs/quote/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
{
"index": "The `Quote` object",
"random": "Get random quote",
"random-via-anime": "Get random quote via anime",
"random-via-character": "Get random quote via character",
"quotes-by-anime": "Get quotes by anime",
"quotes-by-character": "Get quotes by character"
"index": {
"title": "The `Quote` object"
},
"random": {
"title": "Get random quote"
},
"random-via-anime": {
"title": "Get random quote via anime"
},
"random-via-character": {
"title": "Get random quote via character"
},
"quotes-by-anime": {
"title": "Get quotes by anime"
},
"quotes-by-character": {
"title": "Get quotes by character"
},
"pagination": {
"title": "Pagination"
}
}

10 changes: 10 additions & 0 deletions client/theme.config.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Text } from "@radix-ui/themes";
import Footer from "components/footer";

export default {
nextThemes: {
Expand All @@ -15,4 +16,13 @@ export default {
search: {
component: null,
},
footer: {
component: <Footer />,
},
editLink: {
component: null,
},
feedback: {
content: null,
},
};

0 comments on commit 9686f1c

Please sign in to comment.