Skip to content

Commit

Permalink
add algolia js in sphinx config
Browse files Browse the repository at this point in the history
  • Loading branch information
iishiishii committed Dec 19, 2024
1 parent 9283514 commit bb44db2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 26 deletions.
12 changes: 10 additions & 2 deletions books/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ only_build_toc_files: true
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: force
allow_errors: true
allow_errors: false
timeout: 45000
stderr_output: show
run_in_temp: true
Expand All @@ -37,13 +37,21 @@ html:
use_repository_button: true
use_download_button: true
use_edit_page_button: true
google_analytics_id: G-4Z9774J59Y
analytics:
google_analytics_id: G-4Z9774J59Y

sphinx:
config:
nb_code_prompt_hide: "outputs"
nb_merge_streams: true
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
html_css_files: ['algolia.css', 'https://cdn.jsdelivr.net/npm/@docsearch/css@3']
html_js_files: [
'https://cdn.jsdelivr.net/npm/@docsearch/[email protected]/dist/umd/index.js',
'algolia.js'
]
html_static_path: ['_static']
html_extra_path: ['_static']

parse:
myst_enable_extensions:
Expand Down
8 changes: 0 additions & 8 deletions books/_static/docsearch.css

This file was deleted.

3 changes: 0 additions & 3 deletions books/_static/docsearch.js

This file was deleted.

13 changes: 0 additions & 13 deletions books/diffusion_imaging/MRtrix_Preprocessing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -465,19 +465,6 @@
"To see how this works, navigate to the folder sub-CON02/ses-preop/dwi, which contains the diffusion data. One of the first steps for preprocessing your data is converting the diffusion data to a format that MRtrix understands; we will use the command ```mrconvert``` to combine the raw diffusion data with its corresponding ```.bval``` and ```.bvec files```, so that we can use the combined file for future preprocessing steps:"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"# Save the original directory\n",
"# original_dir = os.getcwd()\n",
"# Navigate to the diffusion data\n",
"# os.chdir(\"ds001226/sub-CON02/ses-preop/dwi\")\n",
"# os.getcwd()"
]
},
{
"cell_type": "code",
"execution_count": 7,
Expand Down

0 comments on commit bb44db2

Please sign in to comment.