Skip to content
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

Remove separate quantsim v2 doc build #3447

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions Docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,5 @@ add_custom_target(doc
add_dependencies(doc
copy_doc_source copy_examples)

# Only build torch v2 documentation if torch is enabled
if(ENABLE_TORCH)
# Separate build for v2 documentation
# This prevents v1 documents from appearing in the TOC and search results of the v2 documentation
# Specify the config file for the v2 docs as Docs/torch_docs instead of the default source path
add_custom_target(doc_v2
COMMAND ${CMAKE_COMMAND} -E env
"${AIMET_PYTHONPATH}"
"SW_VERSION=${SW_VERSION}"
sphinx-build -v -T -b html ${CMAKE_BINARY_DIR}/Docs_SOURCE ${CMAKE_CURRENT_BINARY_DIR}/torch_v2 -c ${CMAKE_BINARY_DIR}/Docs_SOURCE/torch_docs)

add_dependencies(doc_v2
copy_doc_source)

add_dependencies(doc
doc_v2)
endif(ENABLE_TORCH)

add_custom_target(copy_doc_source
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/Docs_SOURCE)
31 changes: 0 additions & 31 deletions Docs/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,37 +221,6 @@ padding: .4045em 1.618em;
font-size: 14px;
}


/*
* Version selector color configuration
*/
.rst-versions {
position: sticky;
background: var(--aimet-white);
}

.rst-versions .rst-current-version {
text-align: center;
background-color: var(--aimet-white);
color: black;
}

.rst-versions .rst-current-version-name {
color: var(--aimet-menu-font-active);
}

.rst-versions .rst-current-version .fa-caret-down {
color: black;
}

.rst-versions .rst-other-versions dd a {
color: var(--aimet-menu-font-active)
}

.rst-versions .rst-other-versions dt {
color: black;
}

/*
* Highlight color for code segments
*/
Expand Down
32 changes: 0 additions & 32 deletions Docs/_templates/layout.html

This file was deleted.

17 changes: 0 additions & 17 deletions Docs/_templates/variants.html

This file was deleted.

10 changes: 0 additions & 10 deletions Docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,6 @@ def setup(app):
nbsphinx_allow_errors = True
nbsphinx_execute = 'never'

docs_root_url = "https://quic.github.io/aimet-pages/releases/latest/"

# Version here refers to the AIMET torch v1/v2 version, not the AIMET release number
html_context = {
'current_version' : "Universal",
'versions' : [["Universal", docs_root_url + "user_guide/index.html"],
["PyTorch", docs_root_url + "torch_v2/torch_docs/index.html"]],
'display_version_tab': False
}

autosummary_generate = False

# contains a list of modules to be mocked up which are not available during docs build time
Expand Down
70 changes: 0 additions & 70 deletions Docs/torch_docs/conf.py

This file was deleted.

105 changes: 0 additions & 105 deletions Docs/torch_docs/index.rst

This file was deleted.

Loading