Skip to content

Restyle new update #2072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 24 additions & 13 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { themes as prismThemes } from "prism-react-renderer";
import { default as npm2yarn } from "@docusaurus/remark-plugin-npm2yarn";
import { themes as prismThemes } from "prism-react-renderer";

const remarkMath = require("remark-math");
const rehypeKatex = require("rehype-katex");

Expand Down Expand Up @@ -93,11 +94,21 @@ const config = {
{ name: "twitter:creator", content: "@CodesWithAjay" },
{ property: "og:type", content: "website" },
{ property: "og:site_name", content: "CodeHarborHub" },
{ property: "og:title", content: "CodeHarborHub - A place to learn and grow" },
{ 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."},
{ property: "og:image", content: "https://codeharborhub.github.io/img/nav-logo.jpg" },
{
property: "og:title",
content: "CodeHarborHub - A place to learn and grow",
},
{
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.",
},
{
property: "og:image",
content: "https://codeharborhub.github.io/img/nav-logo.jpg",
},
{ property: "og:url", content: "https://codeharborhub.github.io" },
{ name: "robots", content: "index, follow" },
{ name: "robots", content: "index, follow" },
],

algolia: {
Expand Down Expand Up @@ -127,13 +138,13 @@ const config = {
<a href="/docs/category/html/" class="nav__icons"> <img src="/icons/html-5.svg" title="HTML5" alt="HTML" /> </a>
<a href="/docs/" class="nav__icons"> <img src="/icons/css.svg" title="CSS" alt="CSS" /> </a>
<a href="/docs/category/javascript/" class="nav__icons" > <img src="/icons/js.svg" title="JavaScript" alt="JavaScript" /> </a>
<a href="/docs/category/react/" class="nav__icons"> <img src="/icons/jsx.svg" title="React.Js" alt="React" /> </a>
<a href="/docs/category/typescript/" class="nav__icons"> <img src="/icons/ts.svg" title="TypeScript" alt="TypeScript" /> </a>
<a href="/docs/category/python/" class="nav__icons"> <img src="/icons/py.svg" title="Python" alt="Python" /> </a>
<a href="/docs/category/java/" class="nav__icons"> <img src="/icons/java.svg" title="Java" alt="Java" /> </a>
<a href="/docs/category/react/" class="nav__icons"> <img src="/icons/jsx.svg" title="React.Js" alt="React" /> </a>
<a href="/docs/category/typescript/" class="nav__icons"> <img src="/icons/ts.svg" title="TypeScript" alt="TypeScript" /> </a>
<a href="/docs/category/python/" class="nav__icons"> <img src="/icons/py.svg" title="Python" alt="Python" /> </a>
<a href="/docs/category/java/" class="nav__icons"> <img src="/icons/java.svg" title="Java" alt="Java" /> </a>
<a href="/docs/category/tailwind/" class="nav__icons"> <img src="/icons/tailwind-css.svg" title="Tailwind CSS" alt="Tailwind" /> </a>
<a href="/docs/category/cpp/" class="nav__icons"> <img src="/icons/cpp.svg" title="CPP" alt="CPP" /> </a>
<a href="/docs/category/NextJs/" class="nav__icons"> <img src="/icons/next-js.svg" title="NextJs" alt="Next" /> </a>
<a href="/docs/category/cpp/" class="nav__icons"> <img src="/icons/cpp.svg" title="CPP" alt="CPP" /> </a>
<a href="/docs/category/NextJs/" class="nav__icons"> <img src="/icons/next-js.svg" title="NextJs" alt="Next" /> </a>
</div>
</div>`,
},
Expand All @@ -148,7 +159,7 @@ const config = {
value: `<div class="dropdown">
<a class="dropbtn" href="/courses/"> Courses&nbsp; </a>
<div class="dropdown-content">
<a href="/courses/category/reactjs/" class="nav__icons"> <img src="/icons/jsx.svg" alt="React" /> </a>
<a href="/courses/category/reactjs/" class="nav__icons"> <img src="/icons/jsx.svg" alt="React" /> </a>
</div>
</div>`,
},
Expand Down Expand Up @@ -363,7 +374,7 @@ const config = {
{
label: "YouTube",
href: "https://www.youtube.com/",
icon: 'faYoutube',
icon: "faYoutube",
},
{
label: "Discord",
Expand Down
11 changes: 9 additions & 2 deletions dsa-solutions/gfg-solutions/Basic/0093.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ description: "This document covers methods to replace all occurrences of the dig
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.

### Examples:

**Example 1:**

```
Input
2
Expand Down Expand Up @@ -49,7 +51,9 @@ Since this is a functional problem you don't have to worry about input, you just
- $1 <= N <= 10^4$

## Solution

### Python

```python
def convertFive(self,n):
num_str = str(n)
Expand All @@ -63,6 +67,7 @@ def convertFive(self,n):
```

### Java

```java
public static int convertFive(int n){
String numStr = String.valueOf(n);
Expand All @@ -71,7 +76,7 @@ public static int convertFive(int n){
char currentChar = numStr.charAt(i);
if (currentChar == '0') {
result.append('5');
}
}
else {
result.append(currentChar);
}
Expand All @@ -82,6 +87,7 @@ public static int convertFive(int n){
```

### C++

```cpp
int convertFive(int n) {
string numStr = to_string(n);
Expand All @@ -96,6 +102,7 @@ int convertFive(int n) {
```

### C

```c
int convertFive(int n) {
int result = 0;
Expand All @@ -104,7 +111,7 @@ int convertFive(int n) {
int digit = n % 10;
if (digit == 0) {
result += 5 * position;
}
}
else {
result += digit * position;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Chatbot/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ const Chatbot = () => {
);
};

export default Chatbot;
export default Chatbot;
2 changes: 1 addition & 1 deletion src/components/Chatbot/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,4 @@
.bpw-floating-button:hover {
background-color: var(--ifm-color-primary);
box-shadow: none !important;
}
}
2 changes: 1 addition & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -367,4 +367,4 @@ th {

.row .col .card {
margin-top: 10px;
}
}
2 changes: 1 addition & 1 deletion src/css/markdown.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
.colorRed dl > dd {
margin: 0;
color: #e6a377;
}
}
3 changes: 1 addition & 2 deletions src/pages/me.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description: In this page, I will introduce myself.
hide_table_of_contents: true
---


import Chatbot from "../components/Chatbot";

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

<Chatbot />
<Chatbot />
Loading