Skip to content

Commit

Permalink
Remove separate quantsim v2 doc build
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Tuttle <quic_mtuttle@quicinc.com>
  • Loading branch information
quic-mtuttle authored Oct 28, 2024
1 parent bb18c5d commit 0c2eded
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 283 deletions.
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.

0 comments on commit 0c2eded

Please sign in to comment.