Unverified Commit fac7364a authored by Yuge Zhang's avatar Yuge Zhang Committed by GitHub
Browse files

Isolate toctree from overview (#4747)

parent 47c77363
......@@ -49,26 +49,30 @@ function expand_link() {
return $(".md-nav__link--active", this).length >= 1;
}).addClass("md-nav__expand--active");
function toggleExpand(event) {
event.preventDefault();
$(event.target)
.closest(".md-nav__expand")
.toggleClass("md-nav__expand--active");
return false;
}
// bind click events
$(".md-nav__expand > a").click(function (e) {
if (window.matchMedia("only screen and (min-width: 76.2em)").matches) {
// not a drawer
e.preventDefault();
const target = $(e.target).parent();
if (target.hasClass("md-nav__expand--active")) {
target.removeClass("md-nav__expand--active");
} else {
target.addClass("md-nav__expand--active");
}
$(".md-nav__expand > a").click(toggleExpand);
$(".md-nav__expand > a > .md-nav__tocarrow").click(toggleExpand);
}
return false;
}
return true;
// Propagate card link from another element
function propagate_card_link() {
$(".card-link-clickable").each(function() {
$(this).attr("href", $(this).next("a.reference").attr("href"));
});
}
$(document).ready(function() {
hide_nav();
expand_link();
propagate_card_link();
});
{%- if nav_bar_tabs and (parents or theme_nav_links) %}
{%- if nav_bar_tabs and pagename != 'index' %}
<nav class="md-tabs" data-md-component="tabs">
<div class="md-tabs__inner md-grid">
<ul class="md-tabs__list">
......
......@@ -191,7 +191,8 @@ class PBTTuner(Tuner):
1. **Provide checkpoint directory**. Since some trials need to load other trial's checkpoint,
users should provide a directory (i.e., ``all_checkpoint_dir``) which is accessible by every trial.
It is easy for local mode, users could directly use the default directory or specify any directory on the local machine.
For other training services, users should follow :doc:`the document of those training services <../experiment/training_service>`
For other training services, users should follow
:doc:`the document of those training services </experiment/training_service/shared_storage>`
to provide a directory in a shared storage, such as NFS, Azure storage.
2. **Modify your trial code**. Before running a step, a trial needs to load a checkpoint,
......
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