Skip to content

Commit 2088e19

Browse files
committed
feat:split the product and tech documentation sa
seperate
1 parent a157303 commit 2088e19

File tree

5 files changed

+301
-25
lines changed

5 files changed

+301
-25
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,37 @@ jobs:
2121
run: |
2222
pip install mkdocs mkdocs-material plantuml-markdown
2323
24-
- name: Build MkDocs site
25-
run: mkdocs build
24+
- name: Build MkDocs Product Documentation
25+
run: |
26+
mkdocs -f mkdocs-product.yml build --site-dir site-product
27+
28+
- name: Build MkDocs System Documentation
29+
run: |
30+
mkdocs -f mkdocs-system.yml build --site-dir site-system
31+
32+
- name: Deploy Product Documentation to OVH
33+
uses: appleboy/scp-action@v0.1.4
34+
with:
35+
host: ${{ secrets.OVH_HOST }}
36+
username: ${{ secrets.OVH_USER }}
37+
password: ${{ secrets.OVH_PASSWORD }}
38+
port: 22
39+
source: "site-product/*"
40+
target: "/var/www/dhanman-docs-site"
41+
strip_components: 1
42+
timeout: 30s
43+
command_timeout: 10m
44+
debug: false
2645

27-
- name: Deploy to OVH Server
46+
- name: Deploy System Documentation to OVH
2847
uses: appleboy/scp-action@v0.1.4
2948
with:
3049
host: ${{ secrets.OVH_HOST }}
3150
username: ${{ secrets.OVH_USER }}
3251
password: ${{ secrets.OVH_PASSWORD }}
3352
port: 22
34-
source: "site/*"
35-
target: "/var/www/dhanman-docs-site" # Change to your OVH web root folder for docs
53+
source: "site-system/*"
54+
target: "/var/www/dhanman-tech-docs-site"
3655
strip_components: 1
3756
timeout: 30s
3857
command_timeout: 10m

docs/index.md

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
# Welcome to **DhanMan** Documentation
1+
# 🏗 Dhanman Documentation
22

3-
**DhanMan** is an advanced financial management software designed to streamline accounting and operational workflows for organizations of all types, from apartment complexes to small businesses. This platform integrates key features such as invoicing, payment tracking, payroll, and financial analytics into a user-friendly system that makes managing finances simpler and more efficient.
3+
Welcome to the **Dhanman Documentation Portal**.
44

5-
## Key Features:
6-
- **Accounting Simplified**: Manage income, expenses, invoices, and bills with ease.
7-
- **Customizable for Apartment Complexes**: Setup buildings, units, and residents while defining payment strategies tailored to your needs.
8-
- **Comprehensive Expense Tracking**: Monitor utility bills, payroll, and maintenance costs.
9-
- **Powerful Analytics**: Generate profit-loss statements, monitor receivables, and identify trends in your financial data.
5+
## Sections
6+
- [Product Documentation](Product/)
7+
- [System & Technical Documentation](System/)
108

11-
## What You’ll Find Here:
12-
This documentation provides detailed information to help you get started and use **DhanMan** effectively. Explore the sections to learn about:
13-
- **Authentication**: Secure login and user management.
14-
- **Permissions**: Configure user roles and access levels.
15-
- **Accounting Entries**: Manage day-to-day financial operations.
16-
- **Financial Reports**: Analyze financial health with insightful reports.
17-
- **Payroll**: Handle salaries and employee details seamlessly.
18-
- **Coding Conventions and Guides**: For developers extending DhanMan's capabilities.
19-
20-
## Getting Started:
21-
To begin, navigate through the sidebar for detailed guides and step-by-step instructions. Whether you're an administrator setting up your organization, a resident managing payments, or a developer customizing features, this documentation has you covered.
22-
23-
For more details, visit our [official website](https://www.dhanman.com/) or contact our support team.
9+
---
10+
> Maintained by **B2A Technologies Pvt. Ltd.**

docs/mkdocs-product.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
site_name: Dhanman Product Documentation
2+
3+
nav:
4+
- Home: index.md
5+
6+
# === PRODUCT DOCUMENTATION ===
7+
- Product:
8+
- Overview: product/index.md
9+
- Getting Started:
10+
- App UI Structure: product/getting-started/app-ui-structure.md
11+
- Email Templates: product/getting-started/email-templates.md
12+
- Community & Engagement:
13+
- Complaints: product/community/complaints.md
14+
- Notice Board: product/community/notice-board.md
15+
- Polls & Voting: product/community/polls-voting.md
16+
- Resident Portal: product/community/resident-portal.md
17+
- Gate & Security:
18+
- Visitor Management: product/gate-management/visitor-management.md
19+
- Access Control: product/gate-management/access-control.md
20+
- Security Staff: product/gate-management/security-staff.md
21+
- Vehicle Tracking: product/gate-management/vehicle-tracking.md
22+
- Events & Calendar:
23+
- Event Management: product/events-calendar/event-management.md
24+
- Calendar Views: product/events-calendar/calendar-views.md
25+
- Facility Booking: product/events-calendar/facility-booking.md
26+
- Financial Management:
27+
- Overview: product/financial-management/introduction.md
28+
- Invoices: product/financial-management/invoices.md
29+
- Maintenance Bills: product/financial-management/maintenance-bills.md
30+
- Receipts: product/financial-management/receipts.md
31+
- Purchase & Vendor Management:
32+
- Vendors: product/purchase-management/vendors.md
33+
- Purchase Orders: product/purchase-management/purchase-orders.md
34+
- Inventory & Assets:
35+
- Asset Management: product/inventory-assets/asset-management.md
36+
- Stock Management: product/inventory-assets/stock-management.md
37+
- Payroll & HR:
38+
- Employee Management: product/payroll/employee-management.md
39+
- Attendance: product/payroll/attendance.md
40+
- Salary Processing: product/payroll/salary-processing.md
41+
- Statutory Compliance: product/payroll/statutory-compliance.md
42+
- Water Management:
43+
- Meter Reading: product/water-management/meter-reading.md
44+
- Water Billing: product/water-management/water-billing.md
45+
- Consumption Reports: product/water-management/consumption-reports.md
46+
- Reports & Analytics: product/reports-analytics.md
47+
- Integrations:
48+
- Payment Gateways: product/integrations/payment-gateways.md
49+
- Email Providers: product/integrations/email-providers.md
50+
- SMS Gateways: product/integrations/sms-gateways.md
51+
- Accounting Export: product/integrations/accounting-export.md
52+
- Mobile Applications:
53+
- Resident App: product/mobile-app/resident-app.md
54+
- Guard App: product/mobile-app/guard-app.md
55+
- Audit & Compliance:
56+
- Audit Trails: product/audit-compliance/audit-trails.md
57+
- Compliance Reports: product/audit-compliance/compliance-reports.md
58+
- Document Management: product/audit-compliance/document-management.md
59+
- Settings & Configuration:
60+
- User & Roles: product/users-roles.md
61+
- Global Configuration: product/settings-configuration.md
62+
63+
theme:
64+
name: material
65+
logo: images/dhanman-docs.png
66+
favicon: images/dhanman-docs.png
67+
features:
68+
- navigation.instant
69+
- navigation.sections
70+
- navigation.prune
71+
72+
plugins:
73+
- search
74+
75+
markdown_extensions:
76+
- admonition
77+
- codehilite
78+
- toc:
79+
permalink: true
80+
- plantuml_markdown:
81+
server: http://www.plantuml.com/plantuml
82+
- pymdownx.superfences
83+
84+
extra_javascript:
85+
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js
86+
- js/extra.js
87+
- https://cdn.jsdelivr.net/npm/glightbox/dist/js/glightbox.min.js
88+
- https://unpkg.com/mermaid@10/dist/mermaid.min.js
89+
- js/mermaid-init.js
90+
91+
extra_css:
92+
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/default.min.css
93+
- extra.css
94+
- https://cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css

docs/mkdocs.system.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
site_name: Dhanman System Documentation
2+
3+
nav:
4+
- Home: index.md
5+
6+
# === SYSTEM DOCUMENTATION ===
7+
- System:
8+
- Overview: system/index.md
9+
- Architecture:
10+
- Overview: system/architecture/overview.md
11+
- Design Decisions: system/architecture/design-decisions.md
12+
- Deployment & Scalability: system/architecture/deployment-scalability.md
13+
- Security Architecture: system/architecture/security-architecture.md
14+
- Acknowledgment Event Pattern: system/architecture/AcknowledgmentEventPattern.md
15+
- Messaging Architecture: system/architecture/dhanman-messaging-architecture.md
16+
- Scheduling Architecture: system/architecture/adr/Sequential_Scheduling_Execution.md
17+
- Principles: system/architecture/principles.md
18+
- ADR: system/architecture/adr/
19+
- Diagrams: system/architecture/diagrams/
20+
- Modules: system/architecture/modules/
21+
- Patterns:
22+
- CQRS: system/architecture/patterns/cqrs.md
23+
- Domain-Driven Design: system/architecture/patterns/domain-driven-design.md
24+
- Event Sourcing & Messaging: system/architecture/patterns/event-sourcing.md
25+
- Communication Patterns: system/architecture/patterns/communication-patterns.md
26+
- Scheduled Jobs (Hangfire): system/architecture/patterns/scheduled-jobs.md
27+
- Resilience & Fault Tolerance: system/architecture/patterns/resilience.md
28+
- Infrastructure:
29+
- Overview: system/infrastructure/overview.md
30+
- Database: system/infrastructure/database/postgresql-setup.md
31+
- Messaging: system/infrastructure/messaging/rabbitmq-setup.md
32+
- Monitoring: system/infrastructure/monitoring/grafana-loki.md
33+
- Storage: system/infrastructure/storage/minio-setup.md
34+
- Development:
35+
- Overview: system/development/index.md
36+
- Getting Started: system/development/getting-started.md
37+
- Standards:
38+
- Backend Principles: system/development/standards/cc_principle_backend.md
39+
- Frontend Principles: "system/development/standards/clean code principle - front end.md"
40+
- Code Review Checklist: system/development/standards/code-review-checklist.md
41+
- Git Workflow: system/development/standards/git-workflow.md
42+
- Project Structure:
43+
- Create New Project: system/development/project-structure/create-new-project.md
44+
- Repository Conventions: system/development/project-structure/repository-conventions.md
45+
- API Internal:
46+
- Event Schemas: system/development/api-internal/event-schemas.md
47+
- Service Contracts: system/development/api-internal/service-contracts.md
48+
- Testing:
49+
- Troubleshooting: system/development/testing/troubleshooting.md
50+
- Test ID Strategy: system/development/testing/testid-strategy.md
51+
- Operations:
52+
- Commands & Service Management: system/operations/commands.md
53+
- Deployment:
54+
- QA Deployment Guide: system/operations/deployment/qa_deployment_guide.md
55+
- QA-PROD Deployment: system/operations/deployment/qa_prod_deployment_guide.md
56+
- Data Backup & Restore: system/operations/deployment/dump_restore_clean.md
57+
- Monitoring:
58+
- Dashboards: system/operations/monitoring/dashboards.md
59+
- Setup: system/operations/monitoring/smonitoring-setup-guide.md
60+
- Runbooks: system/operations/runbooks/qa-refresh-procedure.md
61+
- Onboarding:
62+
- Developer Onboarding: system/onboarding/developer-onboarding.md
63+
- First Contribution: system/onboarding/first-contribution.md
64+
- Security:
65+
- Overview: system/security/index.md
66+
- Authentication Flow: system/security/authentication-flow.md
67+
- Permissions Guidelines: system/security/permissions-naming-guidelines.md
68+
- Secrets Management: system/security/secrets-management.md
69+
- Office Etiquette Policy: system/security/office_etiquette_policy.md
70+
71+
theme:
72+
name: material
73+
logo: images/dhanman-docs.png
74+
favicon: images/dhanman-docs.png
75+
features:
76+
- navigation.instant
77+
- navigation.sections
78+
- navigation.prune
79+
80+
plugins:
81+
- search
82+
83+
markdown_extensions:
84+
- admonition
85+
- codehilite
86+
- toc:
87+
permalink: true
88+
- plantuml_markdown:
89+
server: http://www.plantuml.com/plantuml
90+
- pymdownx.superfences
91+
92+
extra_javascript:
93+
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js
94+
- js/extra.js
95+
- https://cdn.jsdelivr.net/npm/glightbox/dist/js/glightbox.min.js
96+
- https://unpkg.com/mermaid@10/dist/mermaid.min.js
97+
- js/mermaid-init.js
98+
99+
extra_css:
100+
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/default.min.css
101+
- extra.css
102+
- https://cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css

reorganize-docs.ps1

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# reorganize-docs.ps1
2+
# 🧩 Reorganizes dhanman-docs repo into a single clean MkDocs-ready structure
3+
4+
Write-Host "🔹 Starting reorganization..." -ForegroundColor Cyan
5+
6+
# Ensure mkdocs.yml exists
7+
if (-not (Test-Path "./mkdocs.yml")) {
8+
Write-Host "⚙️ Creating mkdocs.yml..."
9+
@"
10+
site_name: Dhanman Documentation
11+
repo_url: https://github.com/b2atech/dhanman-docs
12+
theme:
13+
name: material
14+
features:
15+
- navigation.sections
16+
- navigation.tabs
17+
- content.code.copy
18+
- search.suggest
19+
nav:
20+
- Product:
21+
- Overview: docs/product/getting-started/index.md
22+
- System:
23+
- Infrastructure: docs/system/infrastructure/overview/infra-service-map.md
24+
- Architecture: docs/system/architecture/overview/index.md
25+
- Development: docs/system/development/getting-started/index.md
26+
- Operations: docs/system/operations/deployment/qa_deployment_guide/index.md
27+
"@ | Out-File -Encoding UTF8 "./mkdocs.yml"
28+
}
29+
30+
# Cleanup old site builds
31+
if (Test-Path "./site") {
32+
Write-Host "🧹 Cleaning old site folder..."
33+
Remove-Item -Recurse -Force "./site"
34+
}
35+
36+
# Consolidate docs into clean root
37+
Write-Host "📁 Consolidating docs..."
38+
New-Item -ItemType Directory -Force "./docs" | Out-Null
39+
40+
# Move product docs
41+
if (Test-Path "./docs/product") {
42+
Write-Host "📦 Moving product docs..."
43+
Move-Item -Force "./docs/product" "./docs/Product" -ErrorAction SilentlyContinue
44+
}
45+
46+
# Move system docs
47+
if (Test-Path "./docs/system") {
48+
Write-Host "📦 Moving system (tech) docs..."
49+
Move-Item -Force "./docs/system" "./docs/System" -ErrorAction SilentlyContinue
50+
}
51+
52+
# Create top-level index
53+
Write-Host "📝 Creating index.md..."
54+
@"
55+
# 🏗 Dhanman Documentation
56+
57+
Welcome to the **Dhanman Documentation Portal**.
58+
59+
## Sections
60+
- [Product Documentation](Product/)
61+
- [System & Technical Documentation](System/)
62+
63+
---
64+
> Maintained by **B2A Technologies Pvt. Ltd.**
65+
"@ | Out-File -Encoding UTF8 "./docs/index.md"
66+
67+
# Optional cleanup of redundant assets folders
68+
if (Test-Path "./assets") {
69+
Write-Host "🧹 Moving global assets into docs/assets..."
70+
Move-Item -Force "./assets" "./docs/assets" -ErrorAction SilentlyContinue
71+
}
72+
73+
Write-Host "✅ Reorganization complete."
74+
Write-Host "You can now run: mkdocs serve"

0 commit comments

Comments
 (0)