Skip to content

Commit 46a1e76

Browse files
authored
Add markdownlint (hestiacp#3107)
1 parent 10552ba commit 46a1e76

File tree

19 files changed

+237
-85
lines changed

19 files changed

+237
-85
lines changed

.github/workflows/lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ jobs:
1919
with:
2020
severity: error
2121

22+
markdownlint:
23+
name: markdownlint
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v3
28+
29+
- name: Run markdownlint
30+
uses: avto-dev/markdown-lint@v1
31+
with:
32+
args: "*.md docs/**/*.md"
33+
2234
prettier:
2335
name: Prettier
2436
runs-on: ubuntu-latest

.lintstagedrc.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
module.exports = {
2+
// Run markdownlint on MD files
3+
'*.md': 'markdownlint --fix',
24
// Run Stylelint on CSS files
35
'*.css': 'stylelint --fix',
46
// Run ESLint on TS, TSX, JS, JSX files

.markdownlint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# MD010/no-hard-tabs - Hard tabs
2+
MD010: false
3+
4+
# MD013/line-length - Line length
5+
MD013: false
6+
7+
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
8+
MD024: false
9+
10+
# MD033/no-inline-html - Inline HTML
11+
MD033: false

.vscode/extensions.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"recommendations": [
3-
"mrmlnc.vscode-apache",
43
"editorconfig.editorconfig",
4+
"DavidAnson.vscode-markdownlint",
55
"dbaeumer.vscode-eslint",
6+
"timonwong.shellcheck",
67
"esbenp.prettier-vscode",
7-
"bmewburn.vscode-intelephense-client",
8+
"mrmlnc.vscode-apache",
89
"william-voyek.vscode-nginx",
9-
"timonwong.shellcheck"
10+
"bmewburn.vscode-intelephense-client"
1011
]
1112
}

CHANGELOG.md

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ A bug in v-update-sys-hestia caused auto update to be not working. Please run: `
334334
- Update zlib to 1.2.12
335335
- Update PCRE to 10.40
336336
- Update hestia-php to 8.1.7
337-
- Updated phpMyAdmin to 5.2.0 (https://www.phpmyadmin.net/files/5.2.0/)
337+
- Updated phpMyAdmin to 5.2.0 (<https://www.phpmyadmin.net/files/5.2.0/>)
338338
- Update Filegator to 7.8.1
339339
- Update PHPmailer to 6.6.2
340340
- Update composer dependencies
@@ -347,7 +347,7 @@ A bug in v-update-sys-hestia caused auto update to be not working. Please run: `
347347

348348
### Dependencies
349349

350-
- Update phpMyAdmin to 5.1.4 (https://www.phpmyadmin.net/files/5.1.4/) (#2529)
350+
- Update phpMyAdmin to 5.1.4 (<https://www.phpmyadmin.net/files/5.1.4/>) (#2529)
351351

352352
## [1.5.14] - Service release
353353

@@ -402,8 +402,8 @@ A bug in v-update-sys-hestia caused auto update to be not working. Please run: `
402402

403403
### Dependencies
404404

405-
- Update PHPMailer to 6.6.0 (https://github.com/PHPMailer/PHPMailer/releases/tag/v6.6.0)
406-
- Update Filegator to 7.7.2 (https://github.com/filegator/filegator/releases/tag/v7.7.2)
405+
- Update PHPMailer to 6.6.0 (<https://github.com/PHPMailer/PHPMailer/releases/tag/v6.6.0>)
406+
- Update Filegator to 7.7.2 (<https://github.com/filegator/filegator/releases/tag/v7.7.2>)
407407

408408
## [1.5.8] - Service release
409409

@@ -421,11 +421,11 @@ A bug in v-update-sys-hestia caused auto update to be not working. Please run: `
421421
- Fixed an issue where users were being redirected to login page when visiting /reset/ endpoint #2401
422422
- Fixed an issue where deleting sftp jail did not revert back permissions of said user. #2143
423423
- Fixed an issue where "REDIRECT" variable wasn't cleared correctly causing other sites to redirect to the domain after v-update-letsencrypt-ssl
424-
- Changed repository url MariaDB for new installs to https://wdlm.mariadb.com/repo/mariadb-server
424+
- Changed repository url MariaDB for new installs to <https://wdlm.mariadb.com/repo/mariadb-server>
425425

426426
### Dependencies
427427

428-
- Update phpMyAdmin to 5.1.3 (https://github.com/phpmyadmin/phpmyadmin/releases/tag/RELEASE_5_1_3)
428+
- Update phpMyAdmin to 5.1.3 (<https://github.com/phpmyadmin/phpmyadmin/releases/tag/RELEASE_5_1_3>)
429429

430430
## [1.5.7] - Service release
431431

@@ -435,13 +435,13 @@ A bug in v-update-sys-hestia caused auto update to be not working. Please run: `
435435

436436
If you have to following error
437437

438-
```
438+
```bash
439439
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A189E93654F0B0E5
440440
```
441441
442442
Follow the following instructions
443443
444-
```
444+
```bash
445445
rm /usr/share/keyrings/hestia-keyring.gpg
446446
mkdir /root/.gnupg/
447447
gpg --no-default-keyring --keyring /usr/share/keyrings/hestia-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys A189E93654F0B0E5
@@ -454,16 +454,16 @@ After that run apt update && apt upgrade
454454
### Bugfixes
455455
456456
- Fixed an issue with the installer. system.pkg didn't allow for a Web alias #2381
457-
- Fixed an issue with upgrade script causing command to to be executed (https://forum.hestiacp.com/t/upgrading-to-1-5-5-error-line/5449/3)
457+
- Fixed an issue with upgrade script causing command to to be executed (<https://forum.hestiacp.com/t/upgrading-to-1-5-5-error-line/5449/3>)
458458

459459
## [1.5.5] - Service release
460460

461461
### Features
462462

463463
- Improve default php-fpm.conf files. (#2318, #2343)
464464
- Notify user when a suspended user tries to login (#2310, #2345)
465-
- Allow setting default web install templates for Quick install (#2344) (https://github.com/hestiacp/hestia-quick-install)
466-
- Improve security how apt keys are downloaded #2299 (https://blog.cloudflare.com/dont-use-apt-key/)
465+
- Allow setting default web install templates for Quick install (#2344) (<https://github.com/hestiacp/hestia-quick-install>)
466+
- Improve security how apt keys are downloaded #2299 (<https://blog.cloudflare.com/dont-use-apt-key/>)
467467
- Allow users to set system php version in Web GUI (#2357)
468468
- Added a link to the firewall in list services (#2371) @fra81
469469

@@ -487,9 +487,9 @@ After that run apt update && apt upgrade
487487

488488
### Dependencies
489489

490-
- Update PHPmyadmin to 5.1.2 (https://www.phpmyadmin.net/files/5.1.2/)
491-
- Update Filegator to 7.7.1 (https://github.com/filegator/filegator/releases/tag/v7.7.1)
492-
- Update B2CLI to 3.2.0 (https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.2.0) (#2349) @ptrinh
490+
- Update PHPmyadmin to 5.1.2 (<https://www.phpmyadmin.net/files/5.1.2/>)
491+
- Update Filegator to 7.7.1 (<https://github.com/filegator/filegator/releases/tag/v7.7.1>)
492+
- Update B2CLI to 3.2.0 (<https://github.com/Backblaze/B2_Command_Line_Tool/releases/tag/v3.2.0>) (#2349) @ptrinh
493493

494494
## [1.5.4] - Service release
495495

@@ -628,7 +628,7 @@ After that run apt update && apt upgrade
628628

629629
### Dependencies
630630

631-
- Update Roundcube to 1.5.0 https://roundcube.net/news/2021/10/18/roundcube-1.5.0-released
631+
- Update Roundcube to 1.5.0 <https://roundcube.net/news/2021/10/18/roundcube-1.5.0-released>
632632
- Update jQuery UI to the last version [CVE-2021-41182](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41182)
633633

634634
## [1.4.17] - Service release
@@ -834,7 +834,7 @@ After that run apt update && apt upgrade
834834
835835
- Improve the calculated disk size of a new backup estimated by excluding the exclude folders, mail accounts and database in backups (#1616) @Myself5
836836
- Improve v-update-firewall / v-stop-firewall to make it self healing (#1892) @myrevery
837-
- Update phpMyAdmin version to 1.5.1 (See https://www.phpmyadmin.net/news/2021/6/4/phpmyadmin-511-released/)
837+
- Update phpMyAdmin version to 1.5.1 (See <https://www.phpmyadmin.net/news/2021/6/4/phpmyadmin-511-released/>)
838838
- Fixed a bug after rebuilding mail with Exim4 and suspended domains (#1886)
839839
- Fixed "Allowed IP addresses for API" field with strange behaviour #1866
840840
- Fixed an issue where the "Saved confirmation" was not set due to a redirect #1879
@@ -854,14 +854,14 @@ After that run apt update && apt upgrade
854854
855855
- **NOTE:** During the 1.4.1 / 1.4.0 release we have introduced a bug for Ubuntu 20.04 and 18.04 users with multiple network ports on the server. This release will solve the problems caused by this bug! If you are unable to download the Hestia packages via apt. Run the following command via CLI or SSH as root
856856
857-
```
858-
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
857+
```bash
858+
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
859859
```
860860
861861
Then run the update via
862862
863-
```
864-
apt update && apt upgrade
863+
```bash
864+
apt update && apt upgrade
865865
```
866866
867867
### Bugfixes
@@ -887,7 +887,7 @@ Then run the update via
887887
888888
- **NOTE:** Ubuntu 16.04 (Xenial) is no longer supported as it has reached EOL (end-of-life) status.
889889
- **NOTE:** Apache in "standalone" mode is no longer actively supported and has been removed from installer options. Nginx (Proxy) + Apache2 will remain supported.
890-
- **NOTE:** Custom "quick installer apps" will not work anymore due to changes in how we handle quick installer apps. Minimal changes to the Quick installer apps are required! Please check https://github.com/hestiacp/hestia-quick-install for how to migrate!
890+
- **NOTE:** Custom "quick installer apps" will not work anymore due to changes in how we handle quick installer apps. Minimal changes to the Quick installer apps are required! Please check <https://github.com/hestiacp/hestia-quick-install> for how to migrate!
891891
- **NOTE:** Manual upgrade scripts are available to update Roundcube, Rainloop and PHPmyadmin to the last version they can be found in /usr/local/hestia/install/upgrade/manual/
892892
893893
### Features
@@ -987,7 +987,7 @@ Then run the update via
987987

988988
### Bugfixes
989989

990-
- Updated APT repository key for PHP from packages.sury.org (https://forum.hestiacp.com/t/apt-upgrade-failed-gpg-error-packages-sury-org)
990+
- Updated APT repository key for PHP from packages.sury.org (<https://forum.hestiacp.com/t/apt-upgrade-failed-gpg-error-packages-sury-org>)
991991
- Updated phpMyAdmin to v5.1.0.
992992

993993
## [1.3.4] - Service Release
@@ -1306,7 +1306,7 @@ Then run the update via
13061306
- Fixed wrong quotes used for default keys folder location in v-generate-api-key backend script.
13071307
- Fixed permissions to allow access for FTP users created in web domains under admin account.
13081308
- Check if user home directory exists before setting permissions on SFTP fail2ban jail.
1309-
- Fixed several reported security issues, thanks to Andrea Cardaci (https://cardaci.xyz/)
1309+
- Fixed several reported security issues, thanks to Andrea Cardaci (<https://cardaci.xyz/>)
13101310
- Security fix: Command line arguments arguments were glob expanded when written to log file.
13111311
- Ensure that SFTP accounts remain configured in sshd when removing web domains/
13121312
- Improved security by ensuring that file operations in user home folder will be executed as the real user.
@@ -1359,7 +1359,7 @@ Then run the update via
13591359
13601360
### Bugfixes
13611361
1362-
- Fixed several security issues, thanks to Andrea Cardaci (https://cardaci.xyz/)
1362+
- Fixed several security issues, thanks to Andrea Cardaci (<https://cardaci.xyz/>)
13631363
- Rework Let's Encrypt ACME staging to use hestia conform standard.
13641364
- Fixed if condition, use nginx for Let's Encrypt ACME request if present.
13651365
@@ -1422,7 +1422,6 @@ Then run the update via
14221422
14231423
-
14241424
1425-
[current]: https://github.com/hestiacp/hestiacp
14261425
[1.0.4]: https://github.com/hestiacp/hestiacp/releases/tag/1.0.4
14271426
[1.0.3]: https://github.com/hestiacp/hestiacp/releases/tag/1.0.3
14281427
[1.0.1]: https://github.com/hestiacp/hestiacp/releases/tag/1.0.1

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Hestia Control Panel - Contribution Guidelines
1+
# Hestia Control Panel - Contribution Guidelines
22

33
## Ways to contribute
44

@@ -38,7 +38,7 @@ The first step is to create a fork of the `hestiacp/hestiacp` repository under y
3838

3939
Once you've created your fork, clone the repository to your computer and make sure that you've checked out the `main` branch. **Always** create a new topic branch for your work.
4040

41-
### Branch naming convention:
41+
### Branch naming convention
4242

4343
- **Prefix:** `topic/` (such as **fix**, **feature**, **refactor**, etc.)
4444
- **ID**: `888` (GitHub Issue ID if an issue exists)
@@ -64,7 +64,7 @@ To aid other developers and keep the project's commit history clean, please **sq
6464

6565
All pull requests must include a brief but descriptive title, and a detailed description of the changes that you've made. **Only include commits that are related to your feature, bug fix, or patch in your pull request!**
6666

67-
## Thank you!
67+
## Thank you
6868

6969
We appreciate **all** contributions no matter what size; your feedback and input directly shapes the future of Hestia Control Panel and we could not do it without your support.
7070

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
![Hestia screenshot](https://hestiacp.com/img/screen_HestiaServer-dark.png)
2-
31
# [Hestia Control Panel](https://www.hestiacp.com/)
42

3+
![Hestia screenshot](https://hestiacp.com/img/screen_HestiaServer-dark.png)
4+
55
**Latest stable release:** Version 1.6.11 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md) | [![Build Status](https://drone.hestiacp.com/api/badges/hestiacp/hestiacp/status.svg?ref=refs/heads/main)](https://drone.hestiacp.com/hestiacp/hestiacp) <br>
66

77
**Web:** [www.hestiacp.com](https://www.hestiacp.com/)<br>
@@ -29,7 +29,7 @@ Hestia Control Panel is designed to provide administrators an easy to use web an
2929
- Let's Encrypt SSL support with wildcard certificates
3030
- Firewall with brute-force attack detection and IP lists (iptables, fail2ban, and ipset).
3131

32-
# Supported platforms and operating systems
32+
## Supported platforms and operating systems
3333

3434
- **NOTE:** Hestia Control Panel does not support 32 bit operating systems!
3535

@@ -38,21 +38,21 @@ Hestia Control Panel is designed to provide administrators an easy to use web an
3838

3939
- **NOTE:** Hestia Control Panel in combination with OpenVZ 7 or lower might have issue Bind9 server not starting or issues with Firewall. If you use a Virtual Private Server we strongly advice you to use something based on KVM or LXC!
4040

41-
# Installing Hestia Control Panel
41+
## Installing Hestia Control Panel
4242

4343
- **NOTE:** Hestia Control Panel must be installed on top of a fresh operating system installation to ensure proper functionality.
4444

4545
While we have taken every effort to make the installation process and the control panel interface as friendly as possible (even for new users), it is assumed that you will have some prior knowledge and understanding in the basics how to set up a Linux server before continuing.
4646

47-
## Step 1: Log in
47+
### Step 1: Log in
4848

4949
To start the installation, you will need to be logged in as **root** or a user with super-user privileges. You can perform the installation either directly from the command line console or remotely via SSH:
5050

5151
```bash
5252
ssh root@your.server
5353
```
5454

55-
## Step 2: Download
55+
### Step 2: Download
5656

5757
Download the installation script for the latest release:
5858

@@ -66,7 +66,7 @@ If the download fails due to an SSL validation error, please be sure you've inst
6666
apt-get update && apt-get install ca-certificates
6767
```
6868

69-
## Step 3: Run
69+
### Step 3: Run
7070

7171
To begin the installation process, simply run the script and follow the on-screen prompts:
7272

@@ -76,17 +76,17 @@ bash hst-install.sh
7676

7777
You will receive a welcome email at the address specified during installation (if applicable) and on-screen instructions after the installation is completed to log in and access your server.
7878

79-
## Custom installation:
79+
### Custom installation
8080

8181
You may specify a number of various flags during installation to only install the features in which you need. To view a list of available options, run:
8282

8383
```bash
8484
bash hst-install.sh -h
8585
```
8686

87-
Alternatively, @gabizz has made available a command-line script generator at https://gabizz.github.io/hestiacp-scriptline-generator/ which allows you to easily generate the installation command via GUI.
87+
Alternatively, @gabizz has made available a command-line script generator at <https://gabizz.github.io/hestiacp-scriptline-generator/> which allows you to easily generate the installation command via GUI.
8888

89-
# How to upgrade an existing installation
89+
## How to upgrade an existing installation
9090

9191
Automatic Updates are enabled by default on new installations of Hestia Control Panel and can be managed from **Server Settings > Updates**. To manually check for and install available updates, use the apt package manager:
9292

@@ -95,18 +95,18 @@ apt-get update
9595
apt-get upgrade
9696
```
9797

98-
# Issues & Support Requests
98+
## Issues & Support Requests
9999

100100
- If you encounter a general problem while using Hestia Control Panel and need help, please [visit our forum](https://forum.hestiacp.com/) to search for potential solutions or post a new thread where community members can assist.
101101
- Bugs and other reproducible issues should be filed via GitHub by [creating a new issue report](https://github.com/hestiacp/hestiacp/issues) so that our developers can investigate further. Please note that requests for support will be redirected to our forum.
102102

103103
**IMPORTANT: We _cannot_ provide support for requests that do not describe the troubleshooting steps that have already been performed, or for third-party applications not related to Hestia Control Panel (such as WordPress). Please make sure that you include as much information as possible in your forum posts or issue reports!**
104104

105-
# Contributions
105+
## Contributions
106106

107107
If you would like to contribute to the project, please [read our Contribution Guidelines](https://github.com/hestiacp/hestiacp/blob/release/CONTRIBUTING.md) for a brief overview of our development process and standards.
108108

109-
# Copyright
109+
## Copyright
110110

111111
"Hestia Control Panel", "HestiaCP", and the Hestia logo are original copyright of hestiacp.com and the following restrictions apply:
112112

@@ -120,6 +120,6 @@ If you would like to contribute to the project, please [read our Contribution Gu
120120
- use the names "Hestia Control Panel", "HestiaCP", or the Hestia logo in any context that is not related to the project,
121121
- alter the name "Hestia Control Panel", "HestiaCP", or the Hestia logo in any way.
122122

123-
# License
123+
## License
124124

125125
Hestia Control Panel is licensed under [GPL v3](https://github.com/hestiacp/hestiacp/blob/release/LICENSE) license, and is based on the [VestaCP](https://www.vestacp.com/) project.<br>

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ With that, good luck hacking us ;)
2323

2424
## Qualifying Vulnerabilities
2525

26-
### Vulnerabilities we really care about!
26+
### Vulnerabilities we really care about
2727

2828
- Remote command execution
2929
- Code/SQL Injection

bin/v-list-sys-ips

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# example: v-list-sys-ips
66
#
7-
# This function for obtaining the list of system ip adresses.
7+
# This function for obtaining the list of system ip addresses.
88

99
#----------------------------------------------------------#
1010
# Variables & Functions #

0 commit comments

Comments
 (0)