Merging upstream version 1.3.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
5b922100c9
commit
8a6a3342fc
337 changed files with 16571 additions and 4891 deletions
29
docs/scripts/generate_doc_snippets.py
Executable file
29
docs/scripts/generate_doc_snippets.py
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env python
|
||||
# Copyright (c) 2024-2025 Arista Networks, Inc.
|
||||
# Use of this source code is governed by the Apache License 2.0
|
||||
# that can be found in the LICENSE file.
|
||||
"""Generates SVG for documentation purposes."""
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# TODO: svg in another PR
|
||||
from generate_snippet import main as generate_snippet
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parents[2]))
|
||||
|
||||
COMMANDS = [
|
||||
"anta --help",
|
||||
"anta nrfu --help",
|
||||
"anta nrfu csv --help",
|
||||
"anta nrfu json --help",
|
||||
"anta nrfu table --help",
|
||||
"anta nrfu text --help",
|
||||
"anta nrfu tpl-report --help",
|
||||
"anta nrfu md-report --help",
|
||||
"anta get tags --help",
|
||||
]
|
||||
|
||||
for command in COMMANDS:
|
||||
# TODO: svg in another PR
|
||||
generate_snippet(command.split(" "), output="txt")
|
Loading…
Add table
Add a link
Reference in a new issue