Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Brynn Yin <biyi@microsoft.com>
  • Loading branch information
brynn-code committed Nov 20, 2023
1 parent 1ecb9db commit afc9a05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/docs/_static/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ window.onload = () => {
};
};

if (window.location.pathname === "/promptflow/" || window.location.pathname === "/promptflow/index.html") {
if (DOCUMENTATION_OPTIONS.pagename === "index") {
// This is used to control homepage background
let observer = new MutationObserver(function(mutations) {
const dark = document.documentElement.dataset.theme == 'dark';
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
json_url = "https://raw.githubusercontent.com/microsoft/promptflow/brynn/add-version-filter/scripts/docs/_static/switcher.json"

# Define the version we use for matching in the version switcher.
version_match = os.environ.get("READTHEDOCS_VERSION") or "Python"
version_match = os.environ.get("DOC_VERSION") or "JavaScript"

html_theme_options = {
"github_url": "https://github.com/microsoft/promptflow",
Expand Down

0 comments on commit afc9a05

Please sign in to comment.