* refactor toc * refactor toc * Change to pydata-sphinx-theme and update packages requirement list for ReadtheDocs * Remove customized css for old theme * Add index page to each top bar section and limit dropdown maximum to be 4 * Use js to change 'More' to 'Libraries' * Add custom.css to conf.py for further css changes * Add BigDL logo and search bar * refactor toc * refactor toc and add overview * refactor toc and add overview * refactor toc and add overview * refactor get started * add paper and video section * add videos * add grid columns in landing page * add document roadmap to index * reapply search bar and github icon commit * reorg orca and chronos sections * Test: weaken ads by js * update: change left attrbute * update: add comments * update: change opacity to 0.7 * Remove useless theme template override for old theme * Add sidebar releases component in the home page * Remove sidebar search and restore top nav search button * Add BigDL handouts * Add back to homepage button to pages except from the home page * Update releases contents & styles in left sidebar * Add version badge to the top bar * Test: weaken ads by js * update: add comments * remove landing page contents * rfix chronos install * refactor install * refactor chronos section titles * refactor nano index * change chronos landing * revise chronos landing page * add document navigator to nano landing page * revise install landing page * Improve css of versions in sidebar * Make handouts image pointing to a page in new tab * add win guide to install * add dliib installation * revise title bar * rename index files * add index page for user guide * add dllib and orca API * update user guide landing page * refactor side bar * Remove extra style configuration of card components & make different card usage consistent * Remove extra styles for Nano how-to guides * Remove extra styles for Chronos how-to guides * Remove dark mode for now * Update index page description * Add decision tree for choosing BigDL libraries in index page * add dllib models api, revise core layers formats * Change primary & info color in light mode * Restyle card components * Restructure Chronos landing page * Update card style * Update BigDL library selection decision tree * Fix failed Chronos tutorials filter * refactor PPML documents * refactor and add friesian documents * add friesian arch diagram * update landing pages and fill key features guide index page * Restyle link card component * Style video frames in PPML sections * Adjust Nano landing page * put api docs to the last in index for convinience * Make badge horizontal padding smaller & small changes * Change the second letter of all header titles to be small capitalizd * Small changes on Chronos index page * Revise decision tree to make it smaller * Update: try to change the position of ads. * Bugfix: deleted nonexist file config * Update: update ad JS/CSS/config * Update: change ad. * Update: delete my template and change files. * Update: change chronos installation table color. * Update: change table font color to --pst-color-primary-text * Remove old contents in landing page sidebar * Restyle badge for usage in card footer again * Add quicklinks template on landing page sidebar * add quick links * Add scala logo * move tf, pytorch out of the link * change orca key features cards * fix typo * fix a mistake in wording * Restyle badge for card footer * Update decision tree * Remove useless html templates * add more api docs and update tutorials in dllib * update chronos install using new style * merge changes in nano doc from master * fix quickstart links in sidebar quicklinks * Make tables responsive * Fix overflow in api doc * Fix list indents problems in [User guide] section * Further fixes to nested bullets contents in [User Guide] section * Fix strange title in Nano 5-min doc * Fix list indent problems in [DLlib] section * Fix misnumbered list problems and other small fixes for [Chronos] section * Fix list indent problems and other small fixes for [Friesian] section * Fix list indent problem and other small fixes for [PPML] section * Fix list indent problem for developer guide * Fix list indent problem for [Cluster Serving] section * fix dllib links * Fix wrong relative link in section landing page Co-authored-by: Yuwen Hu <yuwen.hu@intel.com> Co-authored-by: Juntao Luo <1072087358@qq.com>
177 lines
No EOL
7.9 KiB
JavaScript
177 lines
No EOL
7.9 KiB
JavaScript
$(document).ready(function(){
|
|
$("#tutorial details").attr("open",true);
|
|
});
|
|
|
|
//func to show a tutorial
|
|
function showTutorials(ids){
|
|
ids.forEach(id => {
|
|
$("#"+id).css("display","block");
|
|
$("#"+id).attr("open","true");
|
|
$("#"+id).next().css("display","block");
|
|
});
|
|
}
|
|
|
|
//func to disable checkbox and button
|
|
function disCheck(ids){
|
|
ids.forEach(id => {
|
|
$("#"+id).prop("disabled", true);
|
|
$("#"+id).parent().css("color","#c5c5c5");
|
|
$("button[value='"+id+"']").prop("disabled",true);
|
|
$("button[value='"+id+"']").css("color","#c5c5c5");
|
|
});
|
|
}
|
|
|
|
//event when click the checkboxes
|
|
$(".checkboxes").click(function(){
|
|
//get all checked values
|
|
//class checkboxes is specified to avoid selecting toctree checkboxes (arrows)
|
|
var vals = [];
|
|
$('.checkboxes:input:checkbox:checked').each(function (index, item) {
|
|
vals.push($(this).val());
|
|
});
|
|
|
|
//reset display
|
|
$("#tutorial details").css("display","none");
|
|
$("#tutorial hr").css("display","none");
|
|
//reset checkbox and button
|
|
$("#tutorial button").prop("disabled",false);
|
|
$("#tutorial input[type='checkbox']").prop("disabled",false);
|
|
$("#tutorial input[type='checkbox']").parent().css("color","#404040");
|
|
$("#tutorial button").css("color","#404040");
|
|
|
|
//show tutorial according to checked values
|
|
if(vals.length==0){
|
|
//choose noting, show all tutorials
|
|
$("#tutorial details").css("display","block");
|
|
$("#tutorial details").attr("open",true);
|
|
$("#tutorial hr").css("display","block");
|
|
}
|
|
//chose something, disable invalid checkboxes and buttons accordingly.
|
|
else if(vals.length==1){
|
|
if(vals.includes("forecast")){
|
|
var ids = ["ChronosForecaster","TuneaForecasting","AutoTSEstimator","AutoWIDE",
|
|
"MultvarWIDE","MultstepWIDE","LSTMForecaster","AutoProphet","AnomalyDetection",
|
|
"DeepARmodel","TFTmodel","hyperparameter","taxiDataset","distributedFashion",
|
|
"ONNX","Quantize","TCMFForecaster","PenalizeUnderestimation",
|
|
"GPUtrainingCPUacceleration"];
|
|
showTutorials(ids);
|
|
var disIds = ["simulation"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("anomaly_detection")){
|
|
var ids = ["DetectAnomaly","Unsupervised","AnomalyDetection"];
|
|
showTutorials(ids);
|
|
var disIds = ["simulation","hyperparameter_tuning","onnxruntime","quantization","distributed","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("simulation")){
|
|
var ids = ["SimualateTimeSeriesData"];
|
|
showTutorials(ids);
|
|
var disIds = ["forecast","anomaly_detection","hyperparameter_tuning","onnxruntime","quantization","distributed","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("hyperparameter_tuning")){
|
|
var ids = ["TuneaForecasting","AutoTSEstimator","AutoWIDE","AutoProphet",
|
|
"hyperparameter","taxiDataset","ONNX"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","quantization","distributed"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("onnxruntime")){
|
|
var ids = ["ONNX"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","quantization","distributed","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("quantization")){
|
|
var ids = ["Quantize"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","hyperparameter_tuning","onnxruntime","distributed","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("distributed")){
|
|
var ids = ["distributedFashion","TCMFForecaster"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","hyperparameter_tuning","onnxruntime","quantization","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("customized_model")){
|
|
var ids = ["AutoTSEstimator","DeepARmodel","TFTmodel", "GPUtrainingCPUacceleration"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","onnxruntime","quantization","distributed"];
|
|
disCheck(disIds);
|
|
}
|
|
}
|
|
else if(vals.length==2){
|
|
if(vals.includes("forecast") && vals.includes("hyperparameter_tuning")){
|
|
var ids = ["TuneaForecasting","AutoTSEstimator","AutoWIDE","AutoProphet","hyperparameter","taxiDataset","ONNX","AutoTSEstimator"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","quantization","distributed"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("forecast") && vals.includes("anomaly_detection")){
|
|
var ids = ["AnomalyDetection"];
|
|
showTutorials(ids);
|
|
var disIds = ["simulation","hyperparameter_tuning","onnxruntime","quantization","distributed","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("forecast") && vals.includes("customized_model")){
|
|
var ids = ["DeepARmodel","TFTmodel","AutoTSEstimator","GPUtrainingCPUacceleration"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","onnxruntime","quantization","distributed"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("forecast") && vals.includes("distributed")){
|
|
var ids = ["distributedFashion","TCMFForecaster"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","hyperparameter_tuning","onnxruntime","quantization","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("forecast") && vals.includes("quantization")){
|
|
var ids = ["Quantize"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","hyperparameter_tuning","onnxruntime","distributed","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("hyperparameter_tuning") && vals.includes("customized_model")){
|
|
var ids = ["AutoTSEstimator"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","onnxruntime","quantization","distributed"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("forecast") && vals.includes("onnxruntime")){
|
|
var ids = ["ONNX"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","quantization","distributed","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("hyperparameter_tuning") && vals.includes("onnxruntime")){
|
|
var ids = ["ONNX"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","quantization","distributed","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
}
|
|
else if(vals.length==3){
|
|
if(vals.includes("forecast") && vals.includes("hyperparameter_tuning") && vals.includes("customized_model")){
|
|
var ids = ["AutoTSEstimator"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","onnxruntime","quantization","distributed"];
|
|
disCheck(disIds);
|
|
}
|
|
else if(vals.includes("forecast") && vals.includes("hyperparameter_tuning") && vals.includes("onnxruntime")){
|
|
var ids = ["ONNX"];
|
|
showTutorials(ids);
|
|
var disIds = ["anomaly_detection","simulation","quantization","distributed","customized_model"];
|
|
disCheck(disIds);
|
|
}
|
|
}
|
|
});
|
|
|
|
//event when click the tags' buttons
|
|
$("details p button").click(function(){
|
|
var id = $(this).val();
|
|
$("#"+id).trigger("click");
|
|
});
|
|
|
|
// var allIds = ["forecast","anomaly_detection","simulation","hyperparameter_tuning","onnxruntime","quantization","distributed","customized_model"];
|