# 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.
#

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

__all__ = ["ViewportDocsWindow"]


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

    def __init__(self, title: str, **kwargs):
        module_root = Path(__file__).parent
        docs_root = module_root.parent.parent.parent.parent.joinpath("docs")
        pages = ['overview.md', 'window.md', 'widget.md', 'viewport_api.md', 'capture.md', 'camera_manipulator.md']

        filenames = [f'{docs_root.joinpath(page_source)}' for page_source in pages]
        super().__init__(title, filenames=filenames, **kwargs)
