# Copyright (c) 2018-2021, NVIDIA CORPORATION.  All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto.  Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.
#
__all__ = ["UIStyleDocsWindow"]

from omni.kit.documentation.builder import DocumentationBuilderWindow
from pathlib import Path

CURRENT_PATH = Path(__file__).parent
DOCS_PATH = CURRENT_PATH.parent.parent.parent.parent.parent.joinpath("docs")
PAGES = ["overview.md", "styling.md", "shades.md", "fonts.md", "units.md", "shapes.md", "line.md", "buttons.md",
         "sliders.md", "widgets.md", "containers.md", "window.md"]


class UIStyleDocsWindow(DocumentationBuilderWindow):
    """The window with the documentation"""

    def __init__(self, title: str, **kwargs):
        filenames = [f"{DOCS_PATH.joinpath(page_source)}" for page_source in PAGES]
        super().__init__(title, filenames=filenames, **kwargs)
