Skip to content

Commit 04d773a

Browse files
authored
Feature/admin docs refactor/admin-doc to hashura docs style (#3100)
* refactor: admin-doc to hasura docs style * refactor: admin-doc to hasura docs style
1 parent 1ef2d56 commit 04d773a

15 files changed

+571
-98
lines changed

docs/docusaurus.config.ts

+125-68
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import type * as Preset from '@docusaurus/preset-classic';
66

77
const config: Config = {
88
title: 'Talawa-Admin Documentation',
9-
tagline: 'Start your open source journey here',
10-
favicon: 'img/favicon.ico',
9+
tagline: 'Complete guides and references for building with Talawa',
10+
favicon: 'img/icons/favicon_palisadoes.ico',
1111

1212
url: 'https://docs-admin.talawa.io',
1313
baseUrl: '/',
@@ -45,75 +45,132 @@ const config: Config = {
4545
],
4646
],
4747

48-
themeConfig: {
49-
// Replace with your project's social card
50-
image: 'img/docusaurus-social-card.jpg',
51-
navbar: {
52-
title: 'My Site',
53-
logo: {
54-
alt: 'My Site Logo',
55-
src: 'img/logo.svg',
56-
},
57-
items: [
58-
{
59-
type: 'docSidebar',
60-
sidebarId: 'tutorialSidebar',
61-
position: 'left',
62-
label: 'Tutorial',
63-
},
64-
{
65-
href: 'https://github.com/facebook/docusaurus',
66-
label: 'GitHub',
67-
position: 'right',
68-
},
69-
],
70-
},
71-
footer: {
72-
style: 'dark',
73-
links: [
74-
{
75-
title: 'Docs',
76-
items: [
77-
{
78-
label: 'Tutorial',
79-
to: '/docs/intro',
80-
},
81-
],
82-
},
83-
{
84-
title: 'Community',
85-
items: [
86-
{
87-
label: 'Stack Overflow',
88-
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
89-
},
90-
{
91-
label: 'Discord',
92-
href: 'https://discordapp.com/invite/docusaurus',
93-
},
94-
{
95-
label: 'X',
96-
href: 'https://x.com/docusaurus',
97-
},
98-
],
48+
themeConfig:
49+
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
50+
{
51+
docs: {
52+
sidebar: {
53+
hideable: false,
9954
},
100-
{
101-
title: 'More',
102-
items: [
103-
{
104-
label: 'GitHub',
105-
href: 'https://github.com/facebook/docusaurus',
106-
},
107-
],
55+
},
56+
navbar: {
57+
title: 'Talawa Admin Documentation',
58+
logo: {
59+
alt: 'Talawa Logo',
60+
src: 'img/icons/favicon_palisadoes.ico',
61+
className: 'LogoAnimation',
10862
},
109-
],
110-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
111-
},
112-
prism: {
113-
theme: prismThemes.github,
114-
darkTheme: prismThemes.dracula,
63+
items: [
64+
{
65+
type: 'docSidebar',
66+
sidebarId: 'tutorialSidebar',
67+
label: 'General',
68+
position: 'left',
69+
},
70+
{
71+
label: 'Mobile Guide',
72+
position: 'left',
73+
href: 'https://docs-mobile.talawa.io/',
74+
target: '_self',
75+
},
76+
{
77+
label: 'Admin Guide',
78+
position: 'left',
79+
href: 'https://docs-admin.talawa.io/',
80+
target: '_self',
81+
},
82+
{
83+
label: 'API Guide',
84+
position: 'left',
85+
href: 'https://docs-api.talawa.io/',
86+
target: '_self',
87+
},
88+
89+
{
90+
label: 'Demo',
91+
position: 'left',
92+
href: 'http://admin-demo.talawa.io/',
93+
},
94+
{
95+
to: 'https://github.com/PalisadoesFoundation',
96+
position: 'right',
97+
className: 'header-github-link',
98+
'aria-label': 'GitHub repository',
99+
},
100+
{
101+
to: 'https://www.youtube.com/@PalisadoesOrganization',
102+
position: 'right',
103+
className: 'header-youtube-link',
104+
'aria-label': 'Palisadoes Youtube channel',
105+
},
106+
],
107+
},
108+
colorMode: {
109+
defaultMode: 'light',
110+
disableSwitch: false,
111+
respectPrefersColorScheme: false,
112+
},
113+
footer: {
114+
style: 'dark',
115+
links: [
116+
{
117+
title: 'Community',
118+
items: [
119+
{
120+
label: ' Slack',
121+
to: 'https://github.com/PalisadoesFoundation',
122+
className: 'footer__icon footer__slack',
123+
},
124+
{
125+
label: ' News',
126+
to: 'https://www.palisadoes.org/news/',
127+
className: 'footer__icon footer__news',
128+
},
129+
{
130+
label: ' Contact Us',
131+
to: 'https://www.palisadoes.org/contact/',
132+
className: 'footer__icon footer__contact',
133+
},
134+
],
135+
},
136+
{
137+
title: 'Social Media',
138+
items: [
139+
{
140+
label: ' Twitter',
141+
to: 'https://twitter.com/palisadoesorg?lang=en',
142+
className: 'footer__icon footer__twitter',
143+
},
144+
{
145+
label: ' Facebook',
146+
to: 'https://www.facebook.com/palisadoesproject/',
147+
className: 'footer__icon footer__facebook',
148+
},
149+
{
150+
label: ' Instagram',
151+
to: 'https://www.instagram.com/palisadoes/?hl=en',
152+
className: 'footer__icon footer__instagram',
153+
},
154+
],
155+
},
156+
{
157+
title: 'Development',
158+
items: [
159+
{
160+
label: ' GitHub',
161+
to: 'https://github.com/PalisadoesFoundation',
162+
className: 'footer__icon footer__github',
163+
},
164+
],
165+
},
166+
],
167+
copyright: `Copyright © ${new Date().getFullYear()} The Palisadoes Foundation, LLC. Built with Docusaurus.`,
168+
},
169+
prism: {
170+
theme: prismThemes.github,
171+
darkTheme: prismThemes.dracula,
172+
},
115173
},
116-
} satisfies Preset.ThemeConfig,
117174
};
118175

119176
export default config;

0 commit comments

Comments
 (0)