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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user