File tree Expand file tree Collapse file tree 4 files changed +65
-49
lines changed
Expand file tree Collapse file tree 4 files changed +65
-49
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,6 @@ const config: Config = {
4848 docs : {
4949 routeBasePath : '/' ,
5050 sidebarPath : './sidebars.ts' ,
51- // Please change this to your repo.
52- // Remove this to remove the "edit this page" links.
53- editUrl :
54- 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/' ,
5551 } ,
5652 theme : {
5753 customCss : './src/css/custom.css' ,
@@ -91,51 +87,6 @@ const config: Config = {
9187 } ,
9288 ] ,
9389 } ,
94- footer : {
95- style : 'dark' ,
96- links : [
97- {
98- title : 'Docs' ,
99- items : [
100- {
101- label : 'Documentation' ,
102- to : '/' ,
103- } ,
104- ] ,
105- } ,
106- {
107- title : 'Community' ,
108- items : [
109- {
110- label : 'Stack Overflow' ,
111- href : 'https://stackoverflow.com/questions/tagged/docusaurus' ,
112- } ,
113- {
114- label : 'Discord' ,
115- href : 'https://discordapp.com/invite/docusaurus' ,
116- } ,
117- {
118- label : 'X' ,
119- href : 'https://x.com/docusaurus' ,
120- } ,
121- ] ,
122- } ,
123- {
124- title : 'More' ,
125- items : [
126- {
127- label : 'Blog' ,
128- to : '/blog' ,
129- } ,
130- {
131- label : 'GitHub' ,
132- href : 'https://github.com/facebook/docusaurus' ,
133- } ,
134- ] ,
135- } ,
136- ] ,
137- copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } Codacy. Built with Docusaurus.` ,
138- } ,
13990 prism : {
14091 theme : prismThemes . github ,
14192 darkTheme : prismThemes . dracula ,
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
3+ import styles from './styles.module.css' ;
4+
5+ export default function ContentFooter ( ) : React . JSX . Element {
6+ return (
7+ < div className = { styles . contentFooter } >
8+ < div className = { styles . inner } >
9+ < div className = { styles . meta } >
10+ Copyright © { new Date ( ) . getFullYear ( ) } Codacy.
11+ </ div >
12+ </ div >
13+ </ div >
14+ ) ;
15+ }
Original file line number Diff line number Diff line change 1+ .contentFooter {
2+ margin-top : 2.5rem ;
3+ padding-top : 1.5rem ;
4+ border-top : 1px solid var (--ifm-toc-border-color );
5+ }
6+
7+ .inner {
8+ display : flex;
9+ flex-wrap : wrap;
10+ align-items : center;
11+ justify-content : space-between;
12+ gap : 1rem ;
13+ }
14+
15+ .links {
16+ display : flex;
17+ flex-wrap : wrap;
18+ gap : 1rem ;
19+ }
20+
21+ .links a {
22+ color : var (--ifm-font-color-base );
23+ text-decoration : none;
24+ }
25+
26+ .links a : hover {
27+ text-decoration : underline;
28+ }
29+
30+ .meta {
31+ color : var (--ifm-color-emphasis-600 );
32+ font-size : 0.875rem ;
33+ }
34+
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import DocItemLayout from '@theme-original/DocItem/Layout' ;
3+ import type { Props } from '@theme/DocItem/Layout' ;
4+
5+ import ContentFooter from '@site/src/components/ContentFooter' ;
6+
7+ export default function DocItemLayoutWrapper (
8+ props : Props ,
9+ ) : React . JSX . Element {
10+ return (
11+ < >
12+ < DocItemLayout { ...props } />
13+ < ContentFooter />
14+ </ >
15+ ) ;
16+ }
You can’t perform that action at this time.
0 commit comments