Skip to content

Commit fe4b10c

Browse files
authored
Updated CSS Heading Color Palette (#2876)
1 parent 8edc4a2 commit fe4b10c

21 files changed

+6541
-144
lines changed

docs/docs/intro.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
sidebar_position: 1
3+
slug: /
34
---
45

56
# Tutorial Intro

docs/docusaurus.config.ts

Lines changed: 53 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,90 @@
1-
import { themes as prismThemes } from 'prism-react-renderer';
2-
import type { Config } from '@docusaurus/types';
3-
import type * as Preset from '@docusaurus/preset-classic';
1+
import { themes as prismThemes } from "prism-react-renderer";
2+
import type { Config } from "@docusaurus/types";
3+
import type * as Preset from "@docusaurus/preset-classic";
44

55
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
66

77
const config: Config = {
8-
title: 'Talawa API Documentation',
9-
tagline: 'Start your open source journey here',
10-
favicon: 'img/favicon.ico',
8+
title: "Talawa API Documentation",
9+
tagline: "Start your open source journey here",
10+
favicon: "img/favicon.ico",
1111

12-
url: 'https://docs-api.talawa.io',
13-
baseUrl: '/',
14-
deploymentBranch: 'gh-pages',
12+
url: "https://docs-api.talawa.io",
13+
baseUrl: "/",
14+
deploymentBranch: "gh-pages",
1515

16-
organizationName: 'PalisadoesFoundation', // GitHub org
17-
projectName: 'talawa-api', // repo name
16+
organizationName: "PalisadoesFoundation", // GitHub org
17+
projectName: "talawa-api", // repo name
1818

19-
onBrokenLinks: 'throw',
20-
onBrokenMarkdownLinks: 'warn',
19+
onBrokenLinks: "throw",
20+
onBrokenMarkdownLinks: "warn",
2121

2222
// Even if you don't use internationalization, you can use this field to set
2323
// useful metadata like html lang. For example, if your site is Chinese, you
2424
// may want to replace "en" with "zh-Hans".
2525
i18n: {
26-
defaultLocale: 'en',
27-
locales: ['en'],
26+
defaultLocale: "en",
27+
locales: ["en"],
2828
},
2929

3030
presets: [
3131
[
32-
'classic',
32+
"classic",
33+
/** @type {import('@docusaurus/preset-classic').Options} */
3334
{
3435
docs: {
35-
sidebarPath: './sidebars.ts',
36-
// Please change this to your repo.
37-
// Remove this to remove the "edit this page" links.
38-
editUrl: 'https://github.com/PalisadoesFoundation/talawa-api/blob/main/docs/', },
36+
sidebarPath: require.resolve("./sidebars.js"),
37+
editUrl: ({ docPath }) => {
38+
return `https://github.com/PalisadoesFoundation/talawa-api/edit/develop/docs/docs/${docPath}`;
39+
},
40+
},
41+
blog: {
42+
showReadingTime: true,
43+
editUrl:
44+
"https://github.com/PalisadoesFoundation/talawa-api/tree/develop/docs/docs",
45+
},
3946
theme: {
40-
customCss: './src/css/custom.css',
47+
customCss: [
48+
require.resolve("./src/css/custom.css"),
49+
require.resolve("./src/css/index.css"),
50+
],
4151
},
42-
} satisfies Preset.Options,
52+
},
4353
],
4454
],
4555

4656
themeConfig: {
4757
// Replace with your project's social card
48-
image: 'img/docusaurus-social-card.jpg',
58+
image: "img/docusaurus-social-card.jpg",
4959
navbar: {
50-
title: 'Talawa-docs',
60+
title: "Talawa API",
5161
logo: {
52-
alt: 'My Site Logo',
53-
src: 'img/logos/logo.png',
62+
alt: "My Site Logo",
63+
src: "img/logos/logo.png",
5464
},
5565
items: [
5666
{
57-
type: 'docSidebar',
58-
sidebarId: 'tutorialSidebar',
59-
position: 'left',
60-
label: 'Tutorial',
67+
type: "docSidebar",
68+
sidebarId: "tutorialSidebar",
69+
position: "left",
70+
label: "Docs",
6171
},
6272
{
6373
label: "Mobile Guide",
6474
position: "left",
65-
href: "https://docs-mobile.talawa.io/",
66-
target: "_blank",
75+
href: "https://docs-mobile.talawa.io/docs",
76+
target: "_self",
6777
},
6878
{
6979
label: "Admin Guide",
7080
position: "left",
71-
href: "https://docs-admin.talawa.io/",
72-
target: "_blank",
81+
href: "https://docs-admin.talawa.io/docs",
82+
target: "_self",
7383
},
7484
{
7585
label: "API Guide",
7686
position: "left",
77-
href: "https://docs-api.talawa.io/",
87+
href: "/docs",
7888
target: "_self",
7989
},
8090
{
@@ -97,19 +107,19 @@ const config: Config = {
97107
],
98108
},
99109
footer: {
100-
style: 'dark',
110+
style: "dark",
101111
links: [
102112
{
103-
title: 'Docs',
113+
title: "Docs",
104114
items: [
105115
{
106-
label: 'Tutorial',
107-
to: '/docs/intro',
116+
label: "Docs",
117+
to: "/docs",
108118
},
109119
],
110120
},
111121
{
112-
title: 'Community',
122+
title: "Community",
113123
items: [
114124
{
115125
label: "Slack",
@@ -145,7 +155,7 @@ const config: Config = {
145155
label: " Instagram",
146156
to: "https://www.instagram.com/palisadoes/?hl=en",
147157
className: "footer__icon footer__instagram",
148-
}
158+
},
149159
],
150160
},
151161
{
@@ -156,8 +166,8 @@ const config: Config = {
156166
to: "https://github.com/PalisadoesFoundation",
157167
className: "footer__icon footer__github",
158168
},
159-
]
160-
}
169+
],
170+
},
161171
],
162172
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
163173
},

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@docusaurus/preset-classic": "3.6.3",
2020
"@mdx-js/react": "^3.0.0",
2121
"clsx": "^2.0.0",
22+
"docusaurus": "^1.14.7",
2223
"prism-react-renderer": "^2.3.0",
2324
"react": "^18.0.0",
2425
"react-dom": "^18.0.0"

0 commit comments

Comments
 (0)