Skip to content

Commit 3327769

Browse files
authored
Merge pull request #2072 from CodeHarborHub/restyled/dev-3
Restyle new update
2 parents 7a77179 + 7c0b02f commit 3327769

File tree

7 files changed

+38
-21
lines changed

7 files changed

+38
-21
lines changed

docusaurus.config.js

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { themes as prismThemes } from "prism-react-renderer";
21
import { default as npm2yarn } from "@docusaurus/remark-plugin-npm2yarn";
2+
import { themes as prismThemes } from "prism-react-renderer";
3+
34
const remarkMath = require("remark-math");
45
const rehypeKatex = require("rehype-katex");
56

@@ -93,11 +94,21 @@ const config = {
9394
{ name: "twitter:creator", content: "@CodesWithAjay" },
9495
{ property: "og:type", content: "website" },
9596
{ property: "og:site_name", content: "CodeHarborHub" },
96-
{ property: "og:title", content: "CodeHarborHub - A place to learn and grow" },
97-
{ property: "og:description", content: "CodeHarborHub is a place to learn and grow. We provide accessible and comprehensive educational resources to learners of all levels, from beginners to advanced professionals."},
98-
{ property: "og:image", content: "https://codeharborhub.github.io/img/nav-logo.jpg" },
97+
{
98+
property: "og:title",
99+
content: "CodeHarborHub - A place to learn and grow",
100+
},
101+
{
102+
property: "og:description",
103+
content:
104+
"CodeHarborHub is a place to learn and grow. We provide accessible and comprehensive educational resources to learners of all levels, from beginners to advanced professionals.",
105+
},
106+
{
107+
property: "og:image",
108+
content: "https://codeharborhub.github.io/img/nav-logo.jpg",
109+
},
99110
{ property: "og:url", content: "https://codeharborhub.github.io" },
100-
{ name: "robots", content: "index, follow" },
111+
{ name: "robots", content: "index, follow" },
101112
],
102113

103114
algolia: {
@@ -127,13 +138,13 @@ const config = {
127138
<a href="/docs/category/html/" class="nav__icons"> <img src="/icons/html-5.svg" title="HTML5" alt="HTML" /> </a>
128139
<a href="/docs/" class="nav__icons"> <img src="/icons/css.svg" title="CSS" alt="CSS" /> </a>
129140
<a href="/docs/category/javascript/" class="nav__icons" > <img src="/icons/js.svg" title="JavaScript" alt="JavaScript" /> </a>
130-
<a href="/docs/category/react/" class="nav__icons"> <img src="/icons/jsx.svg" title="React.Js" alt="React" /> </a>
131-
<a href="/docs/category/typescript/" class="nav__icons"> <img src="/icons/ts.svg" title="TypeScript" alt="TypeScript" /> </a>
132-
<a href="/docs/category/python/" class="nav__icons"> <img src="/icons/py.svg" title="Python" alt="Python" /> </a>
133-
<a href="/docs/category/java/" class="nav__icons"> <img src="/icons/java.svg" title="Java" alt="Java" /> </a>
141+
<a href="/docs/category/react/" class="nav__icons"> <img src="/icons/jsx.svg" title="React.Js" alt="React" /> </a>
142+
<a href="/docs/category/typescript/" class="nav__icons"> <img src="/icons/ts.svg" title="TypeScript" alt="TypeScript" /> </a>
143+
<a href="/docs/category/python/" class="nav__icons"> <img src="/icons/py.svg" title="Python" alt="Python" /> </a>
144+
<a href="/docs/category/java/" class="nav__icons"> <img src="/icons/java.svg" title="Java" alt="Java" /> </a>
134145
<a href="/docs/category/tailwind/" class="nav__icons"> <img src="/icons/tailwind-css.svg" title="Tailwind CSS" alt="Tailwind" /> </a>
135-
<a href="/docs/category/cpp/" class="nav__icons"> <img src="/icons/cpp.svg" title="CPP" alt="CPP" /> </a>
136-
<a href="/docs/category/NextJs/" class="nav__icons"> <img src="/icons/next-js.svg" title="NextJs" alt="Next" /> </a>
146+
<a href="/docs/category/cpp/" class="nav__icons"> <img src="/icons/cpp.svg" title="CPP" alt="CPP" /> </a>
147+
<a href="/docs/category/NextJs/" class="nav__icons"> <img src="/icons/next-js.svg" title="NextJs" alt="Next" /> </a>
137148
</div>
138149
</div>`,
139150
},
@@ -148,7 +159,7 @@ const config = {
148159
value: `<div class="dropdown">
149160
<a class="dropbtn" href="/courses/"> Courses&nbsp; </a>
150161
<div class="dropdown-content">
151-
<a href="/courses/category/reactjs/" class="nav__icons"> <img src="/icons/jsx.svg" alt="React" /> </a>
162+
<a href="/courses/category/reactjs/" class="nav__icons"> <img src="/icons/jsx.svg" alt="React" /> </a>
152163
</div>
153164
</div>`,
154165
},
@@ -363,7 +374,7 @@ const config = {
363374
{
364375
label: "YouTube",
365376
href: "https://www.youtube.com/",
366-
icon: 'faYoutube',
377+
icon: "faYoutube",
367378
},
368379
{
369380
label: "Discord",

dsa-solutions/gfg-solutions/Basic/0093.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ description: "This document covers methods to replace all occurrences of the dig
1414
Given a number N. The task is to complete the function **convertFive()** which replaces all zeros in the number with 5 and returns the number.
1515

1616
### Examples:
17+
1718
**Example 1:**
19+
1820
```
1921
Input
2022
2
@@ -49,7 +51,9 @@ Since this is a functional problem you don't have to worry about input, you just
4951
- $1 <= N <= 10^4$
5052

5153
## Solution
54+
5255
### Python
56+
5357
```python
5458
def convertFive(self,n):
5559
num_str = str(n)
@@ -63,6 +67,7 @@ def convertFive(self,n):
6367
```
6468

6569
### Java
70+
6671
```java
6772
public static int convertFive(int n){
6873
String numStr = String.valueOf(n);
@@ -71,7 +76,7 @@ public static int convertFive(int n){
7176
char currentChar = numStr.charAt(i);
7277
if (currentChar == '0') {
7378
result.append('5');
74-
}
79+
}
7580
else {
7681
result.append(currentChar);
7782
}
@@ -82,6 +87,7 @@ public static int convertFive(int n){
8287
```
8388

8489
### C++
90+
8591
```cpp
8692
int convertFive(int n) {
8793
string numStr = to_string(n);
@@ -96,6 +102,7 @@ int convertFive(int n) {
96102
```
97103
98104
### C
105+
99106
```c
100107
int convertFive(int n) {
101108
int result = 0;
@@ -104,7 +111,7 @@ int convertFive(int n) {
104111
int digit = n % 10;
105112
if (digit == 0) {
106113
result += 5 * position;
107-
}
114+
}
108115
else {
109116
result += digit * position;
110117
}

src/components/Chatbot/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ const Chatbot = () => {
2626
);
2727
};
2828

29-
export default Chatbot;
29+
export default Chatbot;

src/components/Chatbot/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@
217217
.bpw-floating-button:hover {
218218
background-color: var(--ifm-color-primary);
219219
box-shadow: none !important;
220-
}
220+
}

src/css/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,4 +367,4 @@ th {
367367

368368
.row .col .card {
369369
margin-top: 10px;
370-
}
370+
}

src/css/markdown.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
.colorRed dl > dd {
3636
margin: 0;
3737
color: #e6a377;
38-
}
38+
}

src/pages/me.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: In this page, I will introduce myself.
44
hide_table_of_contents: true
55
---
66

7-
87
import Chatbot from "../components/Chatbot";
98

109
# Introduction (परिचयः) 🙏
@@ -118,4 +117,4 @@ import Chatbot from "../components/Chatbot";
118117
</div>
119118
</div>
120119

121-
<Chatbot />
120+
<Chatbot />

0 commit comments

Comments
 (0)