-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Finished the evaluation config docs. Added .js to custom behavi…
…or of external links (now open in a new tab). Added sphinx-design for expandable tables.
- Loading branch information
Showing
9 changed files
with
201 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* custom.js | ||
* | ||
* This script contains custom JavaScript modifications for the Sphinx documentation. | ||
* It can be expanded to include additional customizations related to behavior, | ||
* style, and functionality of the generated documentation. | ||
* | ||
* | ||
* Usage: | ||
* - Place this script in the _static directory of your Sphinx project. | ||
* - Include it in the html_js_files configuration in conf.py to load it automatically. | ||
* - Expand this file with other JavaScript customizations as needed. | ||
* | ||
* Author: Pablo Iturrieta | ||
* Date: 28.09.2024 | ||
*/ | ||
|
||
document.addEventListener("DOMContentLoaded", function () { | ||
// - Ensures that all external links open in a new tab by adding the target="_blank" | ||
// attribute to all links with the 'external' class (automatically applied by Sphinx). | ||
// - Adds rel="noopener noreferrer" for security purposes, ensuring the new page | ||
// does not have access to the originating window context (prevents security risks). | ||
// Select all external links in the documentation | ||
const links = document.querySelectorAll('a.external'); | ||
|
||
// Loop through all the links and set them to open in a new tab | ||
links.forEach(function (link) { | ||
link.setAttribute('target', '_blank'); | ||
link.setAttribute('rel', 'noopener noreferrer'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
- Catalog_N-test: | ||
func: catalog_evaluations.number_test | ||
plot_func: | ||
- plot_number_test: | ||
plot_args: | ||
title: 1 | ||
name: 1 | ||
- plot_consistency_test: | ||
plot_kwargs: | ||
one_sided_lower: True | ||
- plot_number_test: | ||
plot_args: | ||
title: Test distribution | ||
- plot_consistency_test: | ||
plot_kwargs: | ||
one_sided_lower: True | ||
- Catalog_S-test: | ||
func: catalog_evaluations.spatial_test | ||
plot_func: | ||
- plot_consistency_test: | ||
plot_kwargs: | ||
one_sided_lower: True | ||
- plot_consistency_test: | ||
plot_kwargs: | ||
one_sided_lower: True | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters