Skip to content

Commit ce7e2a0

Browse files
committed
docs: fix code block formatting in numbered lists
1 parent e602506 commit ce7e2a0

7 files changed

Lines changed: 56 additions & 52 deletions

File tree

docs/configuration/mail.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,14 @@ Check your web server error log or PHP error log for debug output.
8787
If you're experiencing issues with TLS encryption:
8888

8989
1. **Verify encryption setting:**
90-
```php
91-
'encryption' => 'tls', // For STARTTLS on port 587
92-
// or
93-
'encryption' => 'ssl', // For SMTPS on port 465
94-
// or
95-
'encryption' => null, // For unencrypted connections (not recommended)
96-
```
90+
91+
```php
92+
'encryption' => 'tls', // For STARTTLS on port 587
93+
// or
94+
'encryption' => 'ssl', // For SMTPS on port 465
95+
// or
96+
'encryption' => null, // For unencrypted connections (not recommended)
97+
```
9798

9899
2. **Common port and encryption combinations:**
99100
- **Port 587** with `'encryption' => 'tls'` (STARTTLS) - Most common
@@ -119,9 +120,11 @@ This particularly affects:
119120

120121
1. **Verify credentials:** Double-check username and password
121122
2. **Test SMTP connectivity:**
122-
```bash
123-
telnet smtp.example.com 587
124-
```
123+
124+
```bash
125+
telnet smtp.example.com 587
126+
```
127+
125128
3. **Check firewall rules:** Ensure outbound SMTP ports are open
126129
4. **Review server logs:** Enable `'debug' => true` for detailed logging
127130
5. **Try alternative ports:** Test port 465 (SSL) or 25 if 587 fails

docs/installation/debian.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Apache is usually pre-installed and configured on Debian systems. You'll need to
3535

3636
1. Enable the required Apache modules:
3737

38-
```bash
39-
a2enmod rewrite
40-
```
38+
```bash
39+
a2enmod rewrite
40+
```
4141

4242
2. Either place Poweradmin in the default webroot (`/var/www/html/`) or create a virtual host configuration.
4343

docs/installation/ubuntu.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Apache is usually pre-installed and configured on Ubuntu systems. You'll need to
3535

3636
1. Enable the required Apache modules:
3737

38-
```bash
39-
a2enmod rewrite
40-
```
38+
```bash
39+
a2enmod rewrite
40+
```
4141

4242
2. Either place Poweradmin in the default webroot (`/var/www/html/`) or create a virtual host configuration.
4343

docs/maintenance/index.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,26 @@ To prevent logs from consuming excessive disk space:
5050

5151
1. **Database Logs**: Implement a log rotation strategy for Poweradmin's database logs:
5252

53-
```sql
54-
-- Example log cleanup (retain only the last 90 days)
55-
DELETE FROM log_users WHERE created < DATE_SUB(NOW(), INTERVAL 90 DAY);
56-
DELETE FROM log_zones WHERE created < DATE_SUB(NOW(), INTERVAL 90 DAY);
57-
```
53+
```sql
54+
-- Example log cleanup (retain only the last 90 days)
55+
DELETE FROM log_users WHERE created < DATE_SUB(NOW(), INTERVAL 90 DAY);
56+
DELETE FROM log_zones WHERE created < DATE_SUB(NOW(), INTERVAL 90 DAY);
57+
```
5858

5959
2. **System Logs**: Configure log rotation for your web server and PHP logs:
6060

61-
```
62-
# Example logrotate configuration (/etc/logrotate.d/poweradmin)
63-
/var/log/apache2/poweradmin-*.log {
64-
rotate 14
65-
daily
66-
compress
67-
delaycompress
68-
missingok
69-
notifempty
70-
create 640 www-data adm
71-
}
72-
```
61+
```
62+
# Example logrotate configuration (/etc/logrotate.d/poweradmin)
63+
/var/log/apache2/poweradmin-*.log {
64+
rotate 14
65+
daily
66+
compress
67+
delaycompress
68+
missingok
69+
notifempty
70+
create 640 www-data adm
71+
}
72+
```
7373

7474
### Backup Procedures
7575

docs/upgrading/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ For patch releases within the same minor version (e.g., 4.0.0 → 4.0.3, or 4.0.
2323
4. **Check release notes for SQL updates** - Only run database migration scripts if explicitly mentioned in the release notes for that version
2424
5. **Clear PHP opcache** - If your environment uses opcache, restart PHP-FPM or your web server to clear cached bytecode:
2525

26-
```bash
27-
sudo systemctl restart php-fpm
28-
# or
29-
sudo systemctl restart apache2
30-
```
26+
```bash
27+
sudo systemctl restart php-fpm
28+
# or
29+
sudo systemctl restart apache2
30+
```
3131

3232
6. **Verify functionality** - Test login and basic operations
3333

docs/upgrading/v4.0.0.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ After successfully running the migration script and verifying your new configura
4848
- Delete it once you're confident everything works: `rm inc/config.inc.php.bak`
4949

5050
2. **If you kept the original file (answered "n"):**
51-
```bash
52-
# Backup and remove the old config
53-
mv inc/config.inc.php inc/config.inc.php.backup
54-
# Store it safely outside the web root
55-
mv inc/config.inc.php.backup ~/poweradmin-backups/config.inc.php.$(date +%Y%m%d)
56-
```
51+
52+
```bash
53+
# Backup and remove the old config
54+
mv inc/config.inc.php inc/config.inc.php.backup
55+
# Store it safely outside the web root
56+
mv inc/config.inc.php.backup ~/poweradmin-backups/config.inc.php.$(date +%Y%m%d)
57+
```
5758

5859
3. **Clean up other legacy files:**
5960
- You can safely remove `.old`, `.bak`, or other backup files from the `inc/` directory

docs/upgrading/v4.1.0.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,14 @@ If you experience slow queries:
356356

357357
1. Check database indexes are present:
358358

359-
```sql
360-
-- MySQL
361-
SHOW INDEX FROM zones;
362-
SHOW INDEX FROM records;
363-
364-
-- PostgreSQL
365-
\di
366-
```
359+
```sql
360+
-- MySQL
361+
SHOW INDEX FROM zones;
362+
SHOW INDEX FROM records;
363+
364+
-- PostgreSQL
365+
\di
366+
```
367367

368368
2. Analyze query performance: Enable slow query log
369369
3. Consider adding indexes for frequently filtered columns

0 commit comments

Comments
 (0)