Skip to content

Commit 349feeb

Browse files
authored
Standardize Markdown headings; enforce MD003 with markdownlint (#11688)
1 parent cdb0604 commit 349feeb

File tree

11 files changed

+45
-63
lines changed

11 files changed

+45
-63
lines changed

.github/linters/.markdown-lint.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
# MD001/heading-increment Heading levels should only increment by one level at a time
1919
MD001: false
2020

21-
# MD003/heading-style Heading style
22-
MD003: false
23-
2421
# MD004/ul-style Unordered list style
2522
MD004: false
2623

.markdownlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGES.md

CONTRIBUTING.md

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,36 @@
1-
Contributing to Apache CloudStack (ACS)
2-
=======================================
1+
# Contributing to Apache CloudStack (ACS)
2+
3+
## Summary
34

4-
Summary
5-
-------
65
This document covers how to contribute to the ACS project. ACS uses GitHub PRs to manage code contributions.
76
These instructions assume you have a GitHub.com account, so if you don't have one you will have to create one. Your proposed code changes will be published to your own fork of the ACS project, and you will submit a Pull Request for your changes to be added.
87

98
_Let's get started!!!_
109

11-
Bug fixes
12-
---------
10+
## Bug fixes
1311

1412
It's very important that we can easily track bug fix commits, so their hashes should remain the same in all branches.
1513
Therefore, a pull request (PR) that fixes a bug, should be sent against a release branch.
1614
This can be either the "current release" or the "previous release", depending on which ones are maintained.
1715
Since the goal is a stable main, bug fixes should be "merged forward" to the next branch in order: "previous release" -> "current release" -> main (in other words: old to new)
1816

19-
Developing new features
20-
-----------------------
17+
## Developing new features
2118

2219
Development should be done in a feature branch, branched off of main.
2320
Send a PR(steps below) to get it into main (2x LGTM applies).
2421
PR will only be merged when main is open, will be held otherwise until main is open again.
2522
No back porting / cherry-picking features to existing branches!
2623

27-
PendingReleaseNotes file
28-
------------------------
24+
## PendingReleaseNotes file
25+
2926
When developing a new feature or making a (major) change to an existing feature you are encouraged to append this to the PendingReleaseNotes file so that the Release Manager can
3027
use this file as a source of information when compiling the Release Notes for a new release.
3128

3229
When adding information to the PendingReleaseNotes file make sure that you write a good and understandable description of the new feature or change which you have developed.
3330

3431
Updating the PendingReleaseNotes file is preferably a part of the original Pull Request, but that is up to the developers' discretion.
3532

36-
Fork the code
37-
-------------
33+
## Fork the code
3834

3935
In your browser, navigate to: [https://github.com/apache/cloudstack](https://github.com/apache/cloudstack)
4036

@@ -51,8 +47,7 @@ $ git fetch upstream
5147
$ git rebase upstream/main
5248
```
5349

54-
Making changes
55-
--------------
50+
## Making changes
5651

5752
It is important that you create a new branch to make changes on and that you do not change the `main` branch (other than to rebase in changes from `upstream/main`). In this example I will assume you will be making your changes to a branch called `feature_x`. This `feature_x` branch will be created on your local repository and will be pushed to your forked repository on GitHub. Once this branch is on your fork you will create a Pull Request for the changes to be added to the ACS project.
5853

@@ -68,8 +63,7 @@ $ git commit -a -m "descriptive commit message for your changes"
6863

6964
> The `-b` specifies that you want to create a new branch called `feature_x`. You only specify `-b` the first time you checkout because you are creating a new branch. Once the `feature_x` branch exists, you can later switch to it with only `git checkout feature_x`.
7065
71-
Rebase `feature_x` to include updates from `upstream/main`
72-
------------------------------------------------------------
66+
## Rebase `feature_x` to include updates from `upstream/main`
7367

7468
It is important that you maintain an up-to-date `main` branch in your local repository. This is done by rebasing in the code changes from `upstream/main` (the official ACS project repository) into your local repository. You will want to do this before you start working on a feature as well as right before you submit your changes as a pull request. I recommend you do this process periodically while you work to make sure you are working off the most recent project code.
7569

@@ -89,8 +83,7 @@ $ git rebase main
8983

9084
> Now your `feature_x` branch is up-to-date with all the code in `upstream/main`.
9185
92-
Make a GitHub Pull Request to contribute your changes
93-
-----------------------------------------------------
86+
## Make a GitHub Pull Request to contribute your changes
9487

9588
When you are happy with your changes, and you are ready to contribute them, you will create a Pull Request on GitHub to do so. This is done by pushing your local changes to your forked repository (default remote name is `origin`) and then initiating a pull request on GitHub.
9689

@@ -114,8 +107,7 @@ To initiate the pull request, do the following:
114107

115108
If you are requested to make modifications to your proposed changes, make the changes locally on your `feature_x` branch, re-push the `feature_x` branch to your fork. The existing pull request should automatically pick up the change and update accordingly.
116109

117-
Cleaning up after a successful pull request
118-
-------------------------------------------
110+
## Cleaning up after a successful pull request
119111

120112
Once the `feature_x` branch has been committed into the `upstream/main` branch, your local `feature_x` branch and the `origin/feature_x` branch are no longer needed. If you want to make additional changes, restart the process with a new branch.
121113

@@ -129,6 +121,6 @@ $ git branch -D feature_x
129121
$ git push origin :feature_x
130122
```
131123

132-
Release Principles
133-
------------------
124+
## Release Principles
125+
134126
Detailed information about ACS release principles is available at https://cwiki.apache.org/confluence/display/CLOUDSTACK/Release+principles+for+Apache+CloudStack+4.6+and+up

plugins/storage/volume/storpool/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,6 @@ corresponding system disk offering.
341341

342342
CloudStack has no way to specify max BW. Do they want to be able to specify max BW only is sufficient.
343343

344-
================================================================================
345-
346344
StorPool provides the ‘storpool_qos’ service ([QoS user guide](https://kb.storpool.com/storpool_misc/qos.html#storpool-qos-user-guide)) that tracks and configures the storage tier for all volumes based on a specifically provided `qc` tag specifying the storage tier for each volume.
347345

348346
To manage the QoS limits with a `qc` tag, you have to add a `qc` tag resource detail to each disk offering to which a tier should be applied, with a key `SP_QOSCLASS` and the value from the configuration file for the `storpool_qos` service:

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@
10241024
<exclude>.git/**</exclude>
10251025
<exclude>.github/linters/codespell.txt</exclude>
10261026
<exclude>.gitignore</exclude>
1027+
<exclude>.markdownlintignore</exclude>
10271028
<exclude>CHANGES.md</exclude>
10281029
<exclude>CONTRIBUTING.md</exclude>
10291030
<exclude>README.md</exclude>

test/integration/plugins/linstor/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Linstor storage plugin
2-
==================================
2+
33
This directory contains the basic VM, Volume life cycle tests for Linstor storage pool (in KVM hypervisor).
44

5-
# Running tests
6-
===============
5+
## Running tests
6+
77
To run the basic volume tests, first update the below test data of the CloudStack environment
88

99
```

test/integration/plugins/scaleio/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# PowerFlex/ScaleIO storage plugin
2-
==================================
2+
33
This directory contains the basic VM, Volume life cycle tests for PowerFlex/ScaleIO storage pool (in KVM hypervisor).
44

5-
# Running tests
6-
===============
5+
## Running tests
6+
77
To run the basic volume tests, first update the below test data of the CloudStack environment
88

99
```

test/systemvm/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
Requirements
2-
============
1+
# Requirements
2+
33
To run these tests, first get the vagrant setup for the systemvm working,
44
see ../../tools/vagrant/systemvm.
55

66
Then, install dependencies
77

88
pip install nose paramiko python-vagrant envassert cuisine fabric
99

10-
Running tests
11-
=============
10+
## Running tests
11+
1212
Then run the tests using your favorite python unittest runner
1313

1414
nosetests-2.7
@@ -22,8 +22,8 @@ not recommended.
2222

2323
You can also run these tests out of the box with PyDev or PyCharm or whatever.
2424

25-
Adding tests
26-
============
25+
## Adding tests
26+
2727
Simply create new test_xxx.py files with test cases that extend from
2828
SystemVMTestCase.
2929

@@ -55,8 +55,8 @@ class HelloSystemVMTestCase(SystemVMTestCase):
5555
assert something_to_do('foo')
5656
```
5757

58-
Edit, test, edit, test
59-
======================
58+
## Edit, test, edit, test
59+
6060
The SystemVM Vagrantfile sets up rsync from systemvm/patches. These rsyncs run
6161
once, when you type 'vagrant up'. To do these rsyncs every time you change a
6262
patch file, run 'vagrant rsync-auto'. With that, your development process can

tools/appliance/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--
12
Licensed to the Apache Software Foundation (ASF) under one
23
or more contributor license agreements. See the NOTICE file
34
distributed with this work for additional information
@@ -14,8 +15,7 @@ software distributed under the License is distributed on an
1415
KIND, either express or implied. See the License for the
1516
specific language governing permissions and limitations
1617
under the License.
17-
18-
===========================================================
18+
-->
1919

2020
# Introduction
2121

tools/devcloud-kvm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--
12
Licensed to the Apache Software Foundation (ASF) under one
23
or more contributor license agreements. See the NOTICE file
34
distributed with this work for additional information
@@ -14,8 +15,7 @@ software distributed under the License is distributed on an
1415
KIND, either express or implied. See the License for the
1516
specific language governing permissions and limitations
1617
under the License.
17-
18-
===========================================================
18+
-->
1919

2020
This directory hosts configs for setting up the devcloud-kvm
2121
environment.

0 commit comments

Comments
 (0)