Skip to content

Commit 9769c63

Browse files
committed
Merge branch 'develop-postgres' of https://github.com/PalisadoesFoundation/talawa-admin into Bittukr7479-refacor-csss-memberDetail
2 parents 1ace754 + a32533b commit 9769c63

File tree

5 files changed

+724
-9
lines changed

5 files changed

+724
-9
lines changed

docs/docusaurus.config.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,26 @@ const config: Config = {
3030
presets: [
3131
[
3232
'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.
36+
sidebarPath: require.resolve('./sidebars.js'),
37+
editUrl: ({ docPath }) => {
38+
return `https://github.com/PalisadoesFoundation/talawa-admin/edit/develop/docs/docs/${docPath}`;
39+
},
40+
},
41+
blog: {
42+
showReadingTime: true,
3843
editUrl:
39-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
44+
'https://github.com/PalisadoesFoundation/talawa-admin/tree/develop/docs/docs',
4045
},
4146
theme: {
42-
customCss: './src/css/custom.css',
47+
customCss: [
48+
require.resolve('./src/css/custom.css'),
49+
require.resolve('./src/css/index.css'),
50+
],
4351
},
44-
} satisfies Preset.Options,
52+
},
4553
],
4654
],
4755

@@ -76,7 +84,7 @@ const config: Config = {
7684
{
7785
label: 'Admin Guide',
7886
position: 'left',
79-
href: 'https://docs-admin.talawa.io/docs',
87+
href: '/docs',
8088
target: '_self',
8189
},
8290
{

docs/src/css/custom.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
*/
77

88
:root {
9+
--h1-markdown: #021526;
10+
--h2-markdown: #3a6d8c;
11+
--h3-markdown: #474e93;
12+
--h4-markdown: #508c9b;
13+
--h5-markdown: #6a9ab0;
14+
--h6-markdown: #888888;
15+
--hx-markdown-underline: #eeeeee;
916
--secondary-blue-900: #001c63;
1017
--sidebar-bg-color: #f3f4f6;
1118
--secondary-blue-500: #3970fd;
@@ -119,12 +126,32 @@ h1.docTitle_node_modules-\@docusaurus-theme-classic-src-theme-DocItem- {
119126
--ifm-h2-font-size: 1.875rem;
120127
margin-bottom: 0.8rem;
121128
margin-top: calc(var(--ifm-h2-vertical-rhythm-top) * 0rem);
129+
color: var(--h2-markdown);
130+
border-bottom: 1px solid var(--hx-markdown-underline);
131+
padding-bottom: 5px;
122132
}
123133

124134
.markdown > h3 {
125135
--ifm-h3-font-size: 1.5rem;
126136
margin-bottom: 0.8rem;
127137
margin-top: calc(var(--ifm-h3-vertical-rhythm-top) * 0rem);
138+
color: var(--h3-markdown);
139+
border-bottom: 1px solid var(--hx-markdown-underline);
140+
padding-bottom: 5px;
141+
}
142+
143+
.markdown > h4 {
144+
color: var(--h4-markdown);
145+
border-bottom: 1px solid var(--hx-markdown-underline);
146+
padding-bottom: 5px;
147+
}
148+
149+
.markdown > h5 {
150+
color: var(--h5-markdown);
151+
}
152+
153+
.markdown > h6 {
154+
color: var(--h6-markdown);
128155
}
129156

130157
.navbar {

0 commit comments

Comments
 (0)