-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add plug-in for dataset management examples auto generation #532
base: main
Are you sure you want to change the base?
docs: add plug-in for dataset management examples auto generation #532
Conversation
# Copyright 2021 Graviti. Licensed under MIT License. | ||
# | ||
|
||
"""plugins.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalized the modulestring
|
||
def _get_label_types(self) -> List[str]: | ||
label_types = self._dataset_client.get_catalog().dumps().keys() | ||
capitalized_types = [type_.capitalize() for type_ in label_types] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build a map for the label_types
transfer?
_SOURCE_PATH = os.path.join(REPO_PATH, "docs", "source") | ||
_EXAMPLES_PATH = os.path.join(_SOURCE_PATH, "examples") | ||
_IMAGES_PATH = os.path.join(_SOURCE_PATH, "images") | ||
_TEMPLATE_PATH = os.path.join(_EXAMPLES_PATH, "template.json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not a good idea to put template into a json file.
self._load_delete_dataset() | ||
|
||
def _load_top(self) -> None: | ||
self._create_and_add_title(self._alias, self._TOPMOST_TITLE_LEVEL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to use docutils
or sphinx
to write the rst file
Pull Request Test Coverage Report for Build 835877504
💛 - Coveralls |
No description provided.