1
0
mirror of https://github.com/minio/docs.git synced 2025-07-30 07:03:26 +03:00

Fixing multiple issues (#906)

DOCS-902: Add "M' and "Mi" units to --limit-upload and --limit-download
DOCS-895: Take Bucket/IAM snapshot before site replication config
DOCS-886: Add audit_kafka config settings and envvars.
This commit is contained in:
Ravind Kumar
2023-06-30 16:06:48 -04:00
committed by GitHub
parent 9302e4fd86
commit c6b87ee0ee
10 changed files with 432 additions and 14 deletions

View File

@ -268,6 +268,8 @@ class MinioObject(ObjectDescription):
'noindexentry': directives.flag,
'noprefix': directives.flag,
'delimiter': directives.unchanged,
'optional': directives.flag,
'required': directives.flag,
}
def handle_signature(self, sig: str, signode: desc_signature) -> Tuple[str, str]:
@ -386,6 +388,13 @@ class MinioObject(ObjectDescription):
objects = self.env.ref_context.setdefault('minio:objects', [])
objects.append(prefix)
def transform_content(self, contentnode: addnodes.desc_content) -> None:
if ('optional' in self.options):
contentnode.children = [emphasis(None,Text("Optional"))] + contentnode.children
elif ('required' in self.options):
contentnode.children = [emphasis(None,Text("Required"))] + contentnode.children
pass
def after_content(self) -> None:
"""Handle object de-nesting after content