Skip to content

Commit 3b2666e

Browse files
authored
Merge pull request #67 from codeharborhub/dev-1
added ne doc
2 parents cb45ded + 1c07430 commit 3b2666e

File tree

3 files changed

+175
-27
lines changed

3 files changed

+175
-27
lines changed

docs/index.mdx

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ slug: /
66
---
77

88
<head>
9-
<title>CodeHarborHub Tutorials | Learn HTML, CSS, JavaScript, and More</title>
9+
<title>CodeHarborHub Tutorials</title>
1010
<meta
1111
name="description"
12-
content="Explore free tutorials on HTML, CSS, JavaScript, React, Node.js, Python, and more at CodeHarborHub. Learn modern web development and build real-world projects."
12+
content="Launch or advance your tech career with CodeHarborHub's free, project-based tutorials. Master HTML, CSS, JavaScript, React, Node.js, Python, AI, and more."
1313
/>
1414
<style>{`
1515
:root {
@@ -18,47 +18,41 @@ slug: /
1818
`}</style>
1919
</head>
2020

21-
<!--
22-
<AuthorProfile
23-
username="ajay-dhangar"
24-
name="Ajay Dhangar"
25-
bio="Full-stack developer. Founder of CodeHarborHub. Loves clean UI & tutorials."
26-
url={window.location.href}
27-
/>
28-
-->
21+
**CodeHarborHub** is your free, open-source resource for mastering modern technology. Whether you’re a **beginner aiming to land your first tech job** or a **professional looking to master the latest frameworks**, we provide the comprehensive, project-based tutorials you need to succeed.
2922

30-
Our mission is to provide accessible and comprehensive educational resources for all levels — from beginners to professionals. Whether you want to **kickstart your career**, **master a new language**, or **stay updated with the latest tech**, you’ll find everything you need here.
23+
Stop consuming content—start **creating** it. Our platform is built by experienced developers and open-source contributors dedicated to practical, hands-on learning.
3124

3225
<AdsComponent />
3326

34-
With a team of experienced instructors and open-source contributors, we offer a wide range of tutorials designed to help you grow your skills with hands-on learning.
35-
3627
## What is CodeHarborHub?
3728

3829
<LiteYouTubeEmbed
3930
id="lI3RBnK8V6Y"
4031
params="autoplay=1&autohide=1&showinfo=0&rel=0"
41-
title="CodeHarborHub Website Overview"
32+
title="CodeHarborHub Website Overview: Structured Learning Paths for Developers"
4233
poster="maxresdefault"
4334
webp
4435
/>
4536

4637
<br />
4738

48-
**CodeHarborHub** is a free platform that empowers learners with structured tutorials, project-based lessons, and real-world challenges.
49-
We cover topics including **Frontend**, **Backend**, **AI**, **Data Science**, and **Cloud Computing**.
39+
We're more than just a tutorial site—we're a dedicated learning ecosystem. **CodeHarborHub** provides structured, challenge-based lessons across the most in-demand technical fields: **Frontend**, **Backend**, **AI/ML**, **Data Science**, and **Cloud Computing**. Our goal is to transform theoretical knowledge into *deployable, real-world skills*.
40+
41+
## Why Choose CodeHarborHub?
5042

51-
## Why Learn with CodeHarborHub?
43+
We focus on delivering **real-world value** that directly impacts your career and skills.
5244

53-
- **Completely Free** — Access all tutorials anytime, anywhere.
54-
- **Project-Based Learning** — Build hands-on projects and grow your portfolio.
55-
- **Beginner to Advanced** — Learn at your own pace with structured paths.
56-
- **Community Support** — Collaborate, share, and contribute to open-source projects.
57-
- **Continuous Updates** — Stay up-to-date with modern frameworks and technologies.
45+
* **100% Free & Accessible:** No paywalls, no hidden fees. Get complete access to all structured tutorials, anytime, anywhere.
46+
* **Portfolio-Driven Learning:** Learn by building. Our project-based approach ensures you graduate each lesson with a **deployable project** for your professional portfolio.
47+
* **Structured & Scalable:** Follow clear learning paths designed for every level, from **foundational concepts** to **advanced topics** and modern frameworks.
48+
* **Community & Open Source:** Join an active community of developers. Get support, share knowledge, and contribute to real-world open-source projects.
49+
* **Future-Proof Skills:** Our curriculum is continuously updated by experts to cover the latest frameworks, technologies, and industry best practices.
5850

5951
<AdsComponent />
6052

61-
<h2 style={{textAlign:"center"}}>Explore Tutorials by Technology</h2>
53+
## Start Your Learning Path
54+
55+
Select a technology below to dive into our structured tutorials. Each path is designed to take you from the fundamentals to building complete, robust applications.
6256

6357
<br />
6458

@@ -116,6 +110,8 @@ We cover topics including **Frontend**, **Backend**, **AI**, **Data Science**, a
116110

117111
<br />
118112

119-
## Get Started Today!
113+
## Ready to Code?
114+
115+
Your next skill is waiting. Browse the technology paths above to begin your journey with **CodeHarborHub**.
120116

121-
Browse the tutorials above to begin your journey with **CodeHarborHub**. Keep learning, keep building, and let’s create the future of technology together.
117+
**Keep Learning. Keep Building. Let's create the future of technology together.**
Lines changed: 151 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,151 @@
1-
<ComingSoon />
1+
---
2+
title: Document Structure and Formatting
3+
sidebar_label: "3. Document Structure and Formatting"
4+
description: "Learn how to structure documentation using the modern Diátaxis framework, ensuring users can find and use content efficiently based on their goals."
5+
image: /tutorial/img/tutorials/technical-writer/structure-and-formatting-cover.png
6+
---
7+
8+
import { FaBook, FaWrench, FaCode, FaLightbulb } from 'react-icons/fa';
9+
10+
Writing well is only half the battle. If your users can't find the information they need, or if the content they find mixes learning materials with quick facts, your documentation fails.
11+
12+
**Information Architecture (IA)** is the practice of organizing and labeling content so users can find what they need. The most effective modern approach to technical documentation IA is the **Diátaxis Framework**.
13+
14+
:::tip Information Architecture Overview
15+
16+
<br />
17+
18+
```mermaid
19+
graph TD
20+
A[Information Architecture ] --> B[Organizing & Labeling Content]
21+
A --> C[Goal: Help Users Find What They Need]
22+
A --> D[Modern Approach → Diátaxis Framework]
23+
24+
%% Diátaxis Core Branches
25+
D --> D1[1️⃣ Tutorials<br>Learning-Oriented Guides]
26+
D --> D2[2️⃣ How-To Guides<br>Task-Oriented Instructions]
27+
D --> D3[3️⃣ Reference<br>Information-Oriented Docs]
28+
D --> D4[4️⃣ Explanation<br>Understanding-Oriented Articles]
29+
30+
%% Sub-details for Tutorials
31+
D1 --> D1a[Step-by-step walkthroughs]
32+
D1 --> D1b[Clear learning outcomes]
33+
34+
%% Sub-details for How-To Guides
35+
D2 --> D2a[Goal-driven workflows]
36+
D2 --> D2b[Practical, specific results]
37+
38+
%% Sub-details for Reference
39+
D3 --> D3a[API Docs, CLI Commands]
40+
D3 --> D3b[Precise, factual content]
41+
42+
%% Sub-details for Explanation
43+
D4 --> D4a[Concepts, Principles]
44+
D4 --> D4b[“Why” behind functionality]
45+
46+
%% IA Systems connection
47+
A --> E[IA Systems]
48+
E --> E1[Organization System]
49+
E --> E2[Navigation System]
50+
E --> E3[Labeling System]
51+
E --> E4[Search System]
52+
53+
%% Relationships
54+
E1 --> D
55+
E2 --> D
56+
E3 --> D
57+
E4 --> D
58+
```
59+
60+
In this diagram, you can see how the Diátaxis framework fits into the broader context of Information Architecture (IA) systems, which include organization, navigation, labeling, and search systems. Each of these systems plays a crucial role in ensuring that users can efficiently find and utilize the documentation they need.
61+
62+
:::
63+
64+
---
65+
66+
## The Diátaxis Framework: Structuring by Need
67+
68+
The Diátaxis framework is a systematic approach that categorizes all documentation into four distinct types, based on the user's current goal: **are they learning or working?** and **do they need action or cognition (knowledge)?**
69+
70+
This prevents the single biggest problem in documentation: mixing content types (e.g., putting a conceptual explanation inside an installation guide).
71+
72+
### The Four Quadrants of Diátaxis
73+
74+
| Type | User Goal | Content Focus | When to Use |
75+
| :--- | :--- | :--- | :--- |
76+
| **1. Tutorials** | **Learning.** The user is a beginner and wants to learn through practice. | Guided, step-by-step action; minimum theory. | Onboarding a new user; introducing a core workflow. |
77+
| **2. How-To Guides** | **Working.** The user knows the product and wants to achieve a specific task (a "recipe"). | Solutions to real-world problems; task-focused steps. | Guides for a specific setup (e.g., "How to integrate with Slack"). |
78+
| **3. Reference** | **Working.** The user needs a precise fact about the system for quick look-up. | Factual, structured information (API parameters, configuration options). | API Documentation, configuration tables, command line syntax. |
79+
| **4. Explanation** | **Learning.** The user wants to understand the *why* and the *how* of the system deeply. | Theoretical and contextual discussion; big picture; rationale. | Design principles, architecture overviews, technical background. |
80+
81+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 my-6">
82+
<SkillCard
83+
title="Tutorials"
84+
description="Learning by doing (Action + Study). You are the instructor."
85+
icon={<FaBook className="text-pink-500 w-6 h-6" />}
86+
/>
87+
<SkillCard
88+
title="How-To Guides"
89+
description="Applying a skill to solve a problem (Action + Work). You are the chef with a recipe."
90+
icon={<FaWrench className="text-yellow-500 w-6 h-6" />}
91+
/>
92+
<SkillCard
93+
title="Reference"
94+
description="Finding facts quickly (Cognition + Work). You are the dictionary."
95+
icon={<FaCode className="text-green-500 w-6 h-6" />}
96+
/>
97+
<SkillCard
98+
title="Explanation"
99+
description="Deepening understanding (Cognition + Study). You are the thought leader."
100+
icon={<FaLightbulb className="text-blue-500 w-6 h-6" />}
101+
/>
102+
</div>
103+
104+
### Why This Matters
105+
106+
By adopting a framework like Diátaxis, you ensure that:
107+
108+
1. **Users find the right content:** A new user looking to learn goes straight to 'Tutorials' instead of struggling with 'Reference' material.
109+
2. **Content stays focused:** Your 'How-To Guide' only contains steps (actions), not long conceptual paragraphs (explanations).
110+
3. **Your documentation is complete:** The framework acts as an audit checklist, exposing missing content types (e.g., "We have great tutorials, but no theoretical 'Explanation' for the architecture").
111+
112+
---
113+
114+
## Best Practices for Page-Level Formatting
115+
116+
While Diátaxis manages the macro-structure (folders and navigation), consistent formatting manages the micro-structure (the page itself).
117+
118+
### 1. Headings (H1, H2, H3)
119+
120+
Use headings to create a clear, nested hierarchy that helps users scan the page. The goal is that a user should be able to read only the headings and still understand the flow of the document.
121+
122+
* **H1 (`#`):** Used only once per page (the title).
123+
* **H2 (`##`):** Main sections of the document.
124+
* **H3 (`###`):** Sub-steps or topics within an H2 section.
125+
126+
### 2. Lists and Steps
127+
128+
Procedural information must be instantly digestible.
129+
130+
| Type | Purpose | Example |
131+
| :--- | :--- | :--- |
132+
| **Numbered Lists** | For sequential steps (e.g., installation). **Always use these for tasks.** | `1. Run the command.` `2. Check the output.` |
133+
| **Bullet Lists** | For non-sequential items (e.g., features, requirements, key concepts). | `- Feature A` `- Feature B` |
134+
| **Definition Lists** | Use tables or bold formatting for key/value pairs (e.g., API parameters). | **`--config`** | The path to your configuration file. |
135+
136+
### 3. Code Blocks and Inline Code
137+
138+
Code is the most critical element. Always use the appropriate formatting:
139+
140+
* **Inline Code:** Use single backticks (`` ` ``) for file names, variable names, command flags, and error messages.
141+
* *Example:* The variable `` `API_KEY` `` must be set in `` `config.env` ``.
142+
* **Code Blocks:** Use triple backticks (`` ``` ``) with language highlighting for larger code examples, scripts, or command line output.
143+
* *Example:*
144+
```bash
145+
# Always specify the language (e.g., bash, json, javascript)
146+
npm install codeharborhub-cli
147+
```
148+
149+
:::tip Use Admonitions for Clarity
150+
Use Docusaurus's built-in admonition blocks (like this tip box, or `:::note`, `:::warning`) to draw the user's attention to critical, supplementary, or conditional information without disrupting the main flow of the steps.
151+
:::

src/theme/MDXComponents.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import ComingSoon from '@site/src/components/ComingSoon';
1616
import AuthorProfile from '@site/src/components/AuthorProfile';
1717
import Link from '@docusaurus/Link';
1818
import ToolCard from '@site/src/components/ToolCard';
19+
import SkillCard from '@site/src/components/SkillCard';
1920

2021
export default {
2122
// Re-use the default mapping
@@ -34,5 +35,6 @@ export default {
3435
ComingSoon,
3536
Link,
3637
AuthorProfile,
37-
ToolCard
38+
ToolCard,
39+
SkillCard,
3840
};

0 commit comments

Comments
 (0)