Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit 41a0727

Browse files
authored
Merge pull request #9 from miqdadfwz/f_miqdad_documentation_imporvements
Add Some Improvements on Documentation Page
2 parents 52bfd3e + f710398 commit 41a0727

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

docusaurus/website/core/Footer.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ class Footer extends React.Component {
2424
return baseUrl + (language ? language + "/" : "") + doc;
2525
}
2626

27+
getCurrentYear() {
28+
return new Date().getFullYear();
29+
}
30+
2731
render() {
28-
const currentYear = new Date().getFullYear();
2932
return (
3033
<footer className="nav-footer" id="footer">
3134
<a
@@ -41,7 +44,7 @@ class Footer extends React.Component {
4144
/>
4245
</a>
4346
<section className="copyright">
44-
{this.props.config.copyright}
47+
{this.props.config.copyright(this.getCurrentYear)}
4548
</section>
4649
</footer>
4750
);

docusaurus/website/siteConfig.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ const siteConfig = {
6868
},*/
6969

7070
// This copyright info is used in /core/Footer.js and blog rss/atom feeds.
71-
copyright: "Copyright © " + new Date().getFullYear() + " Tokopedia OSS",
71+
// copyright: "Copyright © " + new Date().getUTCFullYear() + " Tokopedia OSS",
72+
copyright(currentYear) {
73+
return "Copyright © " + currentYear() + " Tokopedia OSS"
74+
},
7275

7376
highlight: {
7477
// Highlight.js theme to use for syntax highlighting in code blocks

docusaurus/website/static/css/custom.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,13 @@
119119
margin: 0 auto;
120120
text-align: center;
121121
opacity: 0.5;
122+
width: 60%;
123+
max-width: 300px;
122124
}
123125

124126
.tkpdOpenSourceLogo {
125127
position: relative;
126-
width: 60%;
127-
max-width: 300px;
128+
width: 100%;
128129
}
129130

130131
.docMainWrapper .mainContainer .postHeaderTitle {

0 commit comments

Comments
 (0)