mirror of https://github.com/ceph/go-ceph
contrib/apiage: Do not leave empty sections for packages in markdown
For those packages without any preview/deprecated APIs we used to include a header despite any content under it. We could instead mention the state in a meaningful sentence. Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
This commit is contained in:
parent
0660d68b6f
commit
a79b4614d6
|
@ -184,6 +184,10 @@ def format_markdown(tracked, outfh):
|
|||
outfh=outfh,
|
||||
)
|
||||
print("", file=outfh)
|
||||
if all(x not in pkg_api for x in ("preview_api", "deprecated_api")):
|
||||
print("No Preview/Deprecated APIs found. "
|
||||
"All APIs are considered stable.", file=outfh)
|
||||
print("", file=outfh)
|
||||
|
||||
|
||||
def _table(data, columns, outfh):
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
## Package: cephfs
|
||||
|
||||
No Preview/Deprecated APIs found. All APIs are considered stable.
|
||||
|
||||
## Package: cephfs/admin
|
||||
|
||||
### Preview APIs
|
||||
|
@ -47,6 +49,8 @@ Snapshot.Set | v0.10.0 | |
|
|||
|
||||
## Package: rbd/admin
|
||||
|
||||
No Preview/Deprecated APIs found. All APIs are considered stable.
|
||||
|
||||
## Package: rgw/admin
|
||||
|
||||
### Preview APIs
|
||||
|
@ -66,6 +70,8 @@ API.SetIndividualBucketQuota | v0.17.0 | v0.19.0 |
|
|||
|
||||
## Package: common/admin/manager
|
||||
|
||||
No Preview/Deprecated APIs found. All APIs are considered stable.
|
||||
|
||||
## Package: common/log
|
||||
|
||||
### Preview APIs
|
||||
|
|
Loading…
Reference in New Issue