Unverified Commit 80349831 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

[Doc] Fix version control in internal pages (#10124)

parent 698c9e2d
......@@ -132,7 +132,7 @@ function addVersionControl() {
versionIndex = parts.length - 1;
}
// Main classes and models are nested so we need to go deeper
else if (parts[versionIndex] == "main_classes" || parts[versionIndex] == "model_doc") {
else if (parts[versionIndex] == "main_classes" || parts[versionIndex] == "model_doc" || parts[versionIndex] == "internal") {
versionIndex = versionIndex - 1;
}
const version = parts[versionIndex];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment