diff --git "a/blog/Beginner\342\200\231s Guide to the Top 5 React Hooks.md" b/blog/2024-06-19/beginners-guide-to-the-top-5-react-hooks.md
similarity index 100%
rename from "blog/Beginner\342\200\231s Guide to the Top 5 React Hooks.md"
rename to blog/2024-06-19/beginners-guide-to-the-top-5-react-hooks.md
diff --git a/blog/automating-tasks-with-python.md b/blog/2024-07-13/automating-tasks-with-python.md
similarity index 100%
rename from blog/automating-tasks-with-python.md
rename to blog/2024-07-13/automating-tasks-with-python.md
diff --git a/blog/Dockerize Spring-boot with Github-Actions/images/image01.png b/blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image01.png
similarity index 100%
rename from blog/Dockerize Spring-boot with Github-Actions/images/image01.png
rename to blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image01.png
diff --git a/blog/Dockerize Spring-boot with Github-Actions/images/image02.png b/blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image02.png
similarity index 100%
rename from blog/Dockerize Spring-boot with Github-Actions/images/image02.png
rename to blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image02.png
diff --git a/blog/Dockerize Spring-boot with Github-Actions/images/image03.png b/blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image03.png
similarity index 100%
rename from blog/Dockerize Spring-boot with Github-Actions/images/image03.png
rename to blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image03.png
diff --git a/blog/Dockerize Spring-boot with Github-Actions/images/image04.png b/blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image04.png
similarity index 100%
rename from blog/Dockerize Spring-boot with Github-Actions/images/image04.png
rename to blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image04.png
diff --git a/blog/Dockerize Spring-boot with Github-Actions/images/image05.png b/blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image05.png
similarity index 100%
rename from blog/Dockerize Spring-boot with Github-Actions/images/image05.png
rename to blog/2024-07-28/dockerize-spring-boot-with-github-actions/images/image05.png
diff --git a/blog/Dockerize Spring-boot with Github-Actions/index.md b/blog/2024-07-28/dockerize-spring-boot-with-github-actions/index.md
similarity index 100%
rename from blog/Dockerize Spring-boot with Github-Actions/index.md
rename to blog/2024-07-28/dockerize-spring-boot-with-github-actions/index.md
diff --git a/blog/ai-in-healthcare.md b/blog/2024-07-30/ai-in-healthcare.md
similarity index 100%
rename from blog/ai-in-healthcare.md
rename to blog/2024-07-30/ai-in-healthcare.md
diff --git a/blog/containerization-with-docker-and-kubernetes.md b/blog/2024-07-30/containerization-with-docker-and-kubernetes.md
similarity index 100%
rename from blog/containerization-with-docker-and-kubernetes.md
rename to blog/2024-07-30/containerization-with-docker-and-kubernetes.md
diff --git a/blog/cloud-native-development with-microservices-and-kubernetes.md b/blog/2024-07-31/cloud-native-development with-microservices-and-kubernetes.md
similarity index 100%
rename from blog/cloud-native-development with-microservices-and-kubernetes.md
rename to blog/2024-07-31/cloud-native-development with-microservices-and-kubernetes.md
diff --git a/blog/Web-Development-with-Django.md b/blog/Web-Development-with-Django.md
index de8c7d6d7..33c5b48f7 100644
--- a/blog/Web-Development-with-Django.md
+++ b/blog/Web-Development-with-Django.md
@@ -6,7 +6,7 @@ tags:
- Web Development
- Frontend Development
- Backend Development
-date: 2024-06-10 09:32:00
+date: 2024-06-10
---
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. This guide will introduce you to Django, walk you through setting up a Django project, and cover key features and best practices for developing robust web applications.
@@ -53,10 +53,10 @@ A Django project is a collection of settings and configurations for an instance
### Key Files and Directories
-manage.py: A command-line utility for interacting with your project.
-settings.py: Configuration settings for your project.
-urls.py: URL declarations for your project.
-wsgi.py and asgi.py: Entry points for WSGI/ASGI-compatible web servers.
+- **manage.py:** A command-line utility for interacting with your project.
+- **settings.py:** Configuration settings for your project.
+- **urls.py:** URL declarations for your project.
+- **wsgi.py and asgi.py:** Entry points for WSGI/ASGI-compatible web servers.
## 4. Building Your First Django App
@@ -70,9 +70,9 @@ python manage.py startapp myapp
### Defining Models
-Models are Python classes that define the structure of your database tables. Define a model in models.py:
+Models are Python classes that define the structure of your database tables. Define a model in `models.py`:
-```python
+```python title="myapp/models.py"
from django.db import models
class Post(models.Model):
@@ -94,7 +94,7 @@ python manage.py migrate
Register your models to be managed via the Django admin interface:
-```python
+```python title="myapp/admin.py"
from django.contrib import admin
from .models import Post
@@ -104,10 +104,10 @@ admin.site.register(Post)
## 5. Django Views and Templates
-Creating Views
-Views handle the logic of your application and return responses. Define a view in views.py:
+### Creating Views
+Views handle the logic of your application and return responses. Define a view in `views.py`:
-```python
+```python title="myapp/views.py"
from django.shortcuts import render
from .models import Post
@@ -118,9 +118,9 @@ def index(request):
### URL Routing
-Map URLs to views in urls.py:
+Map URLs to views in `urls.py`:
-```python
+```python title="myapp/urls.py"
from django.urls import path
from . import views
@@ -131,9 +131,9 @@ urlpatterns = [
### Using Templates
-Create HTML templates in the templates directory. For example, index.html:
+Create HTML templates in the templates directory. For example, `index.html`:
-```html
+```html title="myapp/templates/index.html"
@@ -152,9 +152,9 @@ Create HTML templates in the templates directory. For example, index.html:
### Template Inheritance
-Use template inheritance to avoid redundancy. Create a base template base.html:
+Use template inheritance to avoid redundancy. Create a base template `base.html`:
-```html
+```html title="myapp/templates/base.html"
@@ -166,11 +166,12 @@ Use template inheritance to avoid redundancy. Create a base template base.html:
```
-Extend it in index.html:
+Extend it in `index.html`:
-```html
-{% extends 'base.html' %} {% block title %}Home{% endblock %} {% block content
-%}
+```html title="myapp/templates/index.html"
+{% extends 'base.html' %}
+{% block title %}Home{% endblock %}
+{% block content %}
Posts
{% for post in posts %}
@@ -184,9 +185,9 @@ Extend it in index.html:
### Creating Forms
-Define a form in forms.py:
+Define a form in `forms.py`:
-```python
+```python title="myapp/forms.py"
from django import forms
from .models import Post
@@ -196,10 +197,10 @@ class PostForm(forms.ModelForm):
fields = ['title', 'content']
```
-Handling Form Submissions
+### Handling Form Submissions
Handle form submissions in a view:
-```python
+```python title="myapp/views.py"
from django.shortcuts import render, redirect
from .forms import PostForm
@@ -214,10 +215,10 @@ def create_post(request):
return render(request, 'create_post.html', {'form': form})
```
-Form Validation
+### Form Validation
Django forms automatically handle validation, but you can add custom validation methods to your form fields if needed.
-Using Django Forms with Models
+### Using Django Forms with Models
Django forms can be used directly with models to simplify data handling and validation.
## 7. Deploying Django Applications
diff --git a/blog/debugging.md b/blog/debugging.md
index 4940f611a..6514158e2 100644
--- a/blog/debugging.md
+++ b/blog/debugging.md
@@ -2,7 +2,7 @@
title: Step-by-Step Guide Debugging Tests in Create React App
authors: [ajay-dhangar]
tags: [Debugging Tests]
-date: 2024-03-14 14:37:46
+date: 2024-03-14
description: Step-by-Step Guide Debugging Tests in Create React App
draft: false
---
diff --git a/blog/from-ftp-client-to-github-action.md b/blog/from-ftp-client-to-github-action.md
index 5f099de58..52bcb041d 100644
--- a/blog/from-ftp-client-to-github-action.md
+++ b/blog/from-ftp-client-to-github-action.md
@@ -2,7 +2,7 @@
title: "CI evolution: From FTP client to GitHub Action"
authors: [ajay-dhangar]
tags: [ftp, sftp, GitHub Action, ftp deploy]
-date: 2024-03-15 11:37:46
+date: 2024-03-15
decription: The evolution of remote file management
draft: false
---
diff --git a/blog/JavaScript ES6 features.md b/blog/javascript-es6-features.md
similarity index 100%
rename from blog/JavaScript ES6 features.md
rename to blog/javascript-es6-features.md
diff --git a/blog/Leveraging GPT model for Natural Language Processing Tasks.md b/blog/leveraging-gpt-model- for-natural-language-processing-tasks.md
similarity index 100%
rename from blog/Leveraging GPT model for Natural Language Processing Tasks.md
rename to blog/leveraging-gpt-model- for-natural-language-processing-tasks.md
diff --git a/blog/Mastering Data Structures in Python.md b/blog/mastering-data-structures-in-python.md
similarity index 100%
rename from blog/Mastering Data Structures in Python.md
rename to blog/mastering-data-structures-in-python.md
diff --git a/blog/Mastering Design Patterns in Java.md b/blog/mastering-design-patterns-in-Java.md
similarity index 100%
rename from blog/Mastering Design Patterns in Java.md
rename to blog/mastering-design-patterns-in-Java.md
diff --git a/blog/Mastering OOP concepts in JAVA.md b/blog/mastering-oops-concepts-in-java.md
similarity index 99%
rename from blog/Mastering OOP concepts in JAVA.md
rename to blog/mastering-oops-concepts-in-java.md
index 94045373c..2c5ffacfc 100644
--- a/blog/Mastering OOP concepts in JAVA.md
+++ b/blog/mastering-oops-concepts-in-java.md
@@ -1,6 +1,6 @@
---
title: "Mastering OOP concepts in JAVA"
-sidebar_label: OOP
+sidebar_label: OOPs in Java
authors: [dharshibalasubramaniyam]
tags: [oop, java, best-practices]
date: 2024-06-18
diff --git a/blog/Mastering SOLID principles in Java.md b/blog/mastering-solid-principles-in-java.md
similarity index 100%
rename from blog/Mastering SOLID principles in Java.md
rename to blog/mastering-solid-principles-in-java.md
diff --git a/blog/Quantum computing and it's application.md b/blog/quantum-computing-and-its-application.md
similarity index 97%
rename from blog/Quantum computing and it's application.md
rename to blog/quantum-computing-and-its-application.md
index fd9fbd82c..7052f66d9 100644
--- a/blog/Quantum computing and it's application.md
+++ b/blog/quantum-computing-and-its-application.md
@@ -1,9 +1,9 @@
---
-title: "Introduction to Quantum Computing and Its Applications"
+title: "Introduction to Quantum Computing and It's Applications"
sidebar_label: Quantum Computing
authors: [pujan-sarkar]
tags: [Quantum Computing, Applications]
-date: 2024-07-22
+date: 2024-11-25
---
In the realm of computing, quantum computing stands as a revolutionary field that leverages the principles of quantum mechanics to process information in fundamentally different ways compared to classical computing. This blog aims to introduce the basics of quantum computing, explore its potential applications, and provide resources for further learning.
@@ -24,7 +24,9 @@ Quantum computing harnesses the peculiar principles of quantum mechanics, such a
A qubit is the fundamental unit of quantum information. Unlike a classical bit, which can be either 0 or 1, a qubit can exist in a state that is a linear combination of both. This property is called superposition. Mathematically, a qubit's state can be represented as:
-$$ |\psi\rangle = \alpha|0\rangle + \beta|1\rangle $$
+$$
+|\psi\rangle = \alpha|0\rangle + \beta|1\rangle
+$$
where $|\alpha|^2$ and $|\beta|^2$ are the probabilities of the qubit being in the state $|0\rangle$ and $|1\rangle$ respectively, and $|\alpha|^2 + |\beta|^2 = 1$.
diff --git a/blog/react-js.md b/blog/react-js.md
index fc499227e..4c3361d18 100644
--- a/blog/react-js.md
+++ b/blog/react-js.md
@@ -3,7 +3,7 @@ title: "React JS"
sidebar_label: React JS
authors: [hitesh-gahanolia]
tags: [javascript, framework, frontend, react, node]
-date: 2024-06-13 12:29
+date: 2024-06-13
hide_table_of_contents: true
---
diff --git a/blog/reactjs-mongodb-chrome-extension.md b/blog/reactjs-mongodb-chrome-extension.md
index e5195f681..f8068a326 100644
--- a/blog/reactjs-mongodb-chrome-extension.md
+++ b/blog/reactjs-mongodb-chrome-extension.md
@@ -3,7 +3,7 @@ title: "Chrome Extension Using MERN"
sidebar_label: Chrome Extension Using MERN
authors: [khushi-kalra]
tags: [chrome extension, web dev, React, Express, MongoDB, Node, UI]
-date: 2024-06-13 23:23:23
+date: 2024-06-13
hide_table_of_contents: true
---
diff --git a/blog/sed-normalize-md-file-with-regex.md b/blog/sed-normalize-md-file-with-regex.md
index 65cce2d6e..c83e589ab 100644
--- a/blog/sed-normalize-md-file-with-regex.md
+++ b/blog/sed-normalize-md-file-with-regex.md
@@ -2,8 +2,8 @@
title: "Sed: Normalize markdown file with Regex"
authors: [ajay-dhangar]
tags: [sed, regex, web clipper]
-date: 2024-03-15 14:37:46
-description: How to normalize markdown file with Regex
+date: 2024-03-15
+description: How to normalize markdown file with Regex using sed command-line utility in Linux, macOS, and Windows.
draft: false
---
@@ -16,7 +16,7 @@ One of the common issues I encounter is inconsistent formatting of the front mat
```markdown
---
title: "Sed: Normalize markdown file with Regex"
-author: Ajay Dhangar
+author: [ajay-dhangar]
tags: [sed, regex, web clipper]
date: 2020-11-26 21:13:28
description: How to normalize markdown file with Regex
@@ -32,7 +32,7 @@ To make the front matter consistent across all my markdown files, I decided to u
sed -i -E "s/^---\n(.*: .*\n)+---\n//g" file.md
```
-Let's break down the regular expression:
+**Let's break down the regular expression:**
- `^---\n` matches the opening three dashes at the beginning of the file, followed by a newline character.
- `(.*: .*\n)+` matches one or more lines containing a key-value pair, where the key is followed by a colon and a space, and the value is followed by a newline character.
diff --git a/blog/sql.md b/blog/sql.md
index 394cdbe29..748127797 100644
--- a/blog/sql.md
+++ b/blog/sql.md
@@ -1,9 +1,9 @@
---
-title: "SQL"
-sidebar_label: SQL - Structured Query Language
-authors: [hitesh-gahanolia]
+title: "SQL - Structured Query Language"
+sidebar_label: "SQL"
+authors: [ajay-dhangar, hitesh-gahanolia]
tags: [sql, databases, data]
-date: 2024-06-12 5:17
+date: 2024-06-12
hide_table_of_contents: true
---
diff --git a/courses/css/intro.md b/courses/css/intro.md
index 2ac1f56a7..05319894f 100644
--- a/courses/css/intro.md
+++ b/courses/css/intro.md
@@ -13,10 +13,4 @@ Hello, and welcome to the CSS Learning Path! In this page, you will find a colle
## Core Courses
-The following courses are designed to help you learn the fundamentals of CSS, including selectors, properties, values, and more. These courses will guide you through the basics of CSS and help you build a solid foundation in front-end web development.
-
-import CSSCourses from '@site/src/database/all-courses/CSSCourses';
-
-
-
-
\ No newline at end of file
+The following courses are designed to help you learn the fundamentals of CSS, including selectors, properties, values, and more. These courses will guide you through the basics of CSS and help you build a solid foundation in front-end web development.
\ No newline at end of file
diff --git a/deployment-app.yml b/deployment-app.yml
deleted file mode 100644
index c435acaa3..000000000
--- a/deployment-app.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- # Unique key of the Deployment instance
- name: my-node-app
-spec:
- # 2 Pods should exist at all times.
- replicas: 2
- selector:
- matchLabels:
- app: node-app
- template:
- metadata:
- labels:
- # Apply this label to pods and default
- # the Deployment label selector to this value
- app: node-app
- spec:
- containers:
- - name: node-app
- # Run this image
- image: #put your image name which you push in dockerhub
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 899b00480..ed5076409 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -57,7 +57,8 @@ const config = {
showReadingTime: true,
editUrl:
"https://github.com/codeharborhub/codeharborhub.github.io/edit/main/",
- remarkPlugins: [[npm2yarn, { converters: ["pnpm"] }]],
+ remarkPlugins: [[npm2yarn, { converters: ["pnpm"] }], remarkMath],
+ rehypePlugins: [rehypeKatex],
},
theme: {
customCss: "./src/css/custom.css",
@@ -410,16 +411,16 @@ const config = {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
- 'java',
- 'latex',
- 'haskell',
- 'matlab',
- 'PHp',
- 'powershell',
- 'bash',
- 'diff',
- 'json',
- 'scss',
+ "java",
+ "latex",
+ "haskell",
+ "matlab",
+ "PHp",
+ "powershell",
+ "bash",
+ "diff",
+ "json",
+ "scss",
],
},
docs: {
@@ -576,7 +577,7 @@ const config = {
showLastUpdateTime: true,
},
],
-
+
[
path.join(__dirname, "/plugins/my-plugin"),
{
diff --git a/src/database/all-courses/CSSCourses/index.tsx b/src/database/all-courses/CSSCourses/index.tsx
deleted file mode 100644
index add74e83f..000000000
--- a/src/database/all-courses/CSSCourses/index.tsx
+++ /dev/null
@@ -1,76 +0,0 @@
-const CSSCourses = [
- {
- id: 1,
- title: "Getting Started with CSS",
- description:
- "Learn the basics of CSS and how to use it to style your HTML web pages.",
- imageUrl: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQNX13lb7HMEfoxyMU47dsYLrQqJJoyWf33MA&usqp=CAU",
- category: "css",
- author: "Ajay Dhangar",
- link: "/code-harbor-hub/courses/category/getting-started-with-css/",
- },
-
- {
- id: 2,
- title: "CSS Foundations",
- description: "Learn the foundations of CSS and how to use it to style your HTML web pages",
- imageUrl: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSOWMEmg2lu57ybdsDfJ7XV-7ZZa8otGU5i9Q&usqp=CAU",
- category: "css",
- author: "Ajay Dhangar",
- link: "/code-harbor-hub/courses/",
- },
-
- {
- id: 3,
- title: "CSS Grid & Flexbox for Responsive Layouts",
- description: "Learn how to use CSS Grid and Flexbox to create responsive layouts.",
- imageUrl: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTMAASFPcDWt5gtTMLyfcFjmi9G5PyV4HDRX_WzEdPcB8wswFL0Hx1gWXb8ywnTMD3FKUU&usqp=CAU",
- category: "css",
- author: "Ajay Dhangar",
- link: "/code-harbor-hub/courses/",
- },
-
- {
- id: 4,
- title: "Practical CSS Layouts",
- description: "Learn how to create practical layouts using CSS.",
- imageUrl: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQmG8jnDeRNg1EU-P38Y0BqliXlhqM_oy3f6w&usqp=CAU",
- category: "css",
- author: "Ajay Dhangar",
- link: "/code-harbor-hub/courses/",
- },
-
- {
- id: 5,
- title: "CSS Animations and Transitions",
- description: "Learn CSS Animations and Transitions in full details",
- imageUrl: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNx845ildDdt-Ot_cS_wSaloaQki9p9_Dms-Tr4vU7ZPxGvdS0SUmInoXuf947dQrHU74&usqp=CAU",
- category: "css",
- author: "Ajay Dhangar",
- link: "/code-harbor-hub/courses/",
- },
-
- {
- id: 6,
- title: "Intermediate HTML & CSS",
- description: "Learn Intermediate HTML & CSS for better understanding.",
- imageUrl: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTN5aQO8bVP5byod5FdrX3hfmzT1bTDJHkb7Q&usqp=CAU",
- category: "css",
- author: "Ajay Dhangar",
- link: "/code-harbor-hub/courses/",
- },
-
- {
- id: 7,
- title: "CSS Projects",
- description: "Learn How to make CSS Projects",
- imageUrl: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSUvIo0qL04kykHdiQGhWCvEanAJa-onN4rTw&usqp=CAU",
- category: "css",
- author: "Ajay Dhangar",
- link: "/code-harbor-hub/courses/",
- },
-
- // Add more courses here
-];
-
-export default CSSCourses;