Skip to content

Commit 5cbf16a

Browse files
committed
deploy: f54fc7d
1 parent 16d35a8 commit 5cbf16a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1111
-1730
lines changed

_sources/courses/extracellular-analysis.md.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ Students should bring their own laptop with Python installed. If you require any
2323
<a href="mailto:j.ziminski@ucl.ac.uk?subject=SWC/GCNU Software Skills">Joe Ziminski</a> in advance of the course.
2424

2525
## Materials
26-
Wednesday 8th Nov
26+
Tuesday 5th Nov
2727

2828
* [Slides](https://docs.google.com/presentation/d/1VTX5mogZXG-9ssQRjg3d0SCZ_jgR800KfvNfVZOhkUs/edit?usp=sharing)
2929

3030
* [Download Data](https://www.dropbox.com/sh/h782frjxyugifle/AABANGRWOGrtUmpWkJvHON9Ya?dl=0)
3131

32-
Thursday 9th Nov
32+
6th - 7th November
3333

34-
* [Slides](https://docs.google.com/presentation/d/1qS-Ua1qbegiHr-_wCDjGk1dW6ydw09YYdpP0FJpilcQ/edit?usp=drive_link)
34+
* [Slides](https://docs.google.com/presentation/d/1_GMxwcyVmpvXq4BpUYwgDgEKsr23Ifl1oc0mRyWB25s/edit?usp=sharing)
3535

36-
* [Repo](https://github.com/neuroinformatics-unit/extracellular-ephys-analysis-course-2023)
36+
* [Repo](https://github.com/neuroinformatics-unit/course-extracellular-ephys-analysis)

_sources/courses/python-packaging.md.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For this course you will need a very basic knowledge of Python, and a laptop wit
2020

2121

2222
* [Sample .gitignore file](https://gist.githubusercontent.com/adamltyson/4d2b2cab224aeb94701fdddc4b894206/raw/998471179d290cf9204eb8cfe799dc32ef92e292/.gitignore)
23-
* [BSD-3-Clause license](https://opensource.org/licenses/BSD-3-Clause)
23+
* [BSD-3-Clause license](https://opensource.org/license/BSD-3-Clause)
2424
* [GitHub markdown guide](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
2525
* [black config](https://gist.githubusercontent.com/adamltyson/559678f224ae0e1f08cf1768b319793c/raw/db170fde3be3e8511b987fd019d420a52edfb9b9/pyproject.toml)
2626
* [pre-commit config file](https://gist.githubusercontent.com/adamltyson/06dc8f8760feee57a4b41aa66833c835/raw/da2050d7eb4db28f17d28f591fa6eefd98946408/.pre-commit-config.yaml)

_sources/index.md.txt

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ the [Neuroinformatics Unit](https://neuroinformatics.dev).
99
::::{grid} 1 2 2 2
1010
:gutter: 3
1111

12-
13-
:::{grid-item-card} {fas}`server;sd-text-primary` September 30th - October 8th 2024
14-
:link: courses/software-skills
12+
:::{grid-item-card} {fas}`bolt;sd-text-primary` Extracellular electrophysiology analysis
13+
:link: courses/extracellular-analysis
1514
:link-type: doc
1615

17-
General software skills for systems neuroscience
18-
+++
19-
Sainsbury Wellcome Centre, UCL <br>
16+
November 5th - October 7th 2024
17+
2018
:::
2119

2220
::::
@@ -27,6 +25,14 @@ Sainsbury Wellcome Centre, UCL <br>
2725
::::{grid} 1 2 2 3
2826
:gutter: 3
2927

28+
:::{grid-item-card} {fas}`server;sd-text-primary` General software skills for systems neuroscience
29+
:link: courses/software-skills
30+
:link-type: doc
31+
32+
+++
33+
Sainsbury Wellcome Centre, UCL <br>
34+
:::
35+
3036
:::{grid-item-card} {fas}`server;sd-text-primary` Running pose estimation on the SWC HPC system
3137
:link: courses/hpc-behaviour
3238
:link-type: doc
@@ -47,11 +53,6 @@ Sainsbury Wellcome Centre, UCL <br>
4753
:link-type: doc
4854
:::
4955

50-
:::{grid-item-card} {fas}`bolt;sd-text-primary` Extracellular electrophysiology analysis
51-
:link: courses/extracellular-analysis
52-
:link-type: doc
53-
:::
54-
5556
:::{grid-item-card} {fas}`code;sd-text-primary` Collaborative coding and software development good practices
5657
:link: courses/collaborative-coding
5758
:link-type: doc

_static/basic.css

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
/*
2-
* basic.css
3-
* ~~~~~~~~~
4-
*
52
* Sphinx stylesheet -- basic theme.
6-
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
8-
* :license: BSD, see LICENSE for details.
9-
*
103
*/
114

125
/* -- main layout ----------------------------------------------------------- */
@@ -115,15 +108,11 @@ img {
115108
/* -- search page ----------------------------------------------------------- */
116109

117110
ul.search {
118-
margin: 10px 0 0 20px;
119-
padding: 0;
111+
margin-top: 10px;
120112
}
121113

122114
ul.search li {
123-
padding: 5px 0 5px 20px;
124-
background-image: url(file.png);
125-
background-repeat: no-repeat;
126-
background-position: 0 7px;
115+
padding: 5px 0;
127116
}
128117

129118
ul.search li a {

_static/doctools.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
/*
2-
* doctools.js
3-
* ~~~~~~~~~~~
4-
*
52
* Base JavaScript utilities for all Sphinx HTML documentation.
6-
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
8-
* :license: BSD, see LICENSE for details.
9-
*
103
*/
114
"use strict";
125

_static/language_data.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
/*
2-
* language_data.js
3-
* ~~~~~~~~~~~~~~~~
4-
*
52
* This script contains the language-specific data used by searchtools.js,
63
* namely the list of stopwords, stemmer, scorer and splitter.
7-
*
8-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
9-
* :license: BSD, see LICENSE for details.
10-
*
114
*/
125

136
var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"];

_static/scripts/bootstrap.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/scripts/fontawesome.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/scripts/fontawesome.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/scripts/pydata-sphinx-theme.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/scripts/pydata-sphinx-theme.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/searchtools.js

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
/*
2-
* searchtools.js
3-
* ~~~~~~~~~~~~~~~~
4-
*
52
* Sphinx JavaScript utilities for the full-text search.
6-
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
8-
* :license: BSD, see LICENSE for details.
9-
*
103
*/
114
"use strict";
125

@@ -20,7 +13,7 @@ if (typeof Scorer === "undefined") {
2013
// and returns the new score.
2114
/*
2215
score: result => {
23-
const [docname, title, anchor, descr, score, filename] = result
16+
const [docname, title, anchor, descr, score, filename, kind] = result
2417
return score
2518
},
2619
*/
@@ -47,6 +40,14 @@ if (typeof Scorer === "undefined") {
4740
};
4841
}
4942

43+
// Global search result kind enum, used by themes to style search results.
44+
class SearchResultKind {
45+
static get index() { return "index"; }
46+
static get object() { return "object"; }
47+
static get text() { return "text"; }
48+
static get title() { return "title"; }
49+
}
50+
5051
const _removeChildren = (element) => {
5152
while (element && element.lastChild) element.removeChild(element.lastChild);
5253
};
@@ -64,9 +65,13 @@ const _displayItem = (item, searchTerms, highlightTerms) => {
6465
const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY;
6566
const contentRoot = document.documentElement.dataset.content_root;
6667

67-
const [docName, title, anchor, descr, score, _filename] = item;
68+
const [docName, title, anchor, descr, score, _filename, kind] = item;
6869

6970
let listItem = document.createElement("li");
71+
// Add a class representing the item's type:
72+
// can be used by a theme's CSS selector for styling
73+
// See SearchResultKind for the class names.
74+
listItem.classList.add(`kind-${kind}`);
7075
let requestUrl;
7176
let linkUrl;
7277
if (docBuilder === "dirhtml") {
@@ -115,8 +120,10 @@ const _finishSearch = (resultCount) => {
115120
"Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories."
116121
);
117122
else
118-
Search.status.innerText = _(
119-
"Search finished, found ${resultCount} page(s) matching the search query."
123+
Search.status.innerText = Documentation.ngettext(
124+
"Search finished, found one page matching the search query.",
125+
"Search finished, found ${resultCount} pages matching the search query.",
126+
resultCount,
120127
).replace('${resultCount}', resultCount);
121128
};
122129
const _displayNextItem = (
@@ -138,7 +145,7 @@ const _displayNextItem = (
138145
else _finishSearch(resultCount);
139146
};
140147
// Helper function used by query() to order search results.
141-
// Each input is an array of [docname, title, anchor, descr, score, filename].
148+
// Each input is an array of [docname, title, anchor, descr, score, filename, kind].
142149
// Order the results by score (in opposite order of appearance, since the
143150
// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically.
144151
const _orderResultsByScoreThenName = (a, b) => {
@@ -248,6 +255,7 @@ const Search = {
248255
searchSummary.classList.add("search-summary");
249256
searchSummary.innerText = "";
250257
const searchList = document.createElement("ul");
258+
searchList.setAttribute("role", "list");
251259
searchList.classList.add("search");
252260

253261
const out = document.getElementById("search-results");
@@ -318,7 +326,7 @@ const Search = {
318326
const indexEntries = Search._index.indexentries;
319327

320328
// Collect multiple result groups to be sorted separately and then ordered.
321-
// Each is an array of [docname, title, anchor, descr, score, filename].
329+
// Each is an array of [docname, title, anchor, descr, score, filename, kind].
322330
const normalResults = [];
323331
const nonMainIndexResults = [];
324332

@@ -337,6 +345,7 @@ const Search = {
337345
null,
338346
score + boost,
339347
filenames[file],
348+
SearchResultKind.title,
340349
]);
341350
}
342351
}
@@ -354,6 +363,7 @@ const Search = {
354363
null,
355364
score,
356365
filenames[file],
366+
SearchResultKind.index,
357367
];
358368
if (isMain) {
359369
normalResults.push(result);
@@ -475,6 +485,7 @@ const Search = {
475485
descr,
476486
score,
477487
filenames[match[0]],
488+
SearchResultKind.object,
478489
]);
479490
};
480491
Object.keys(objects).forEach((prefix) =>
@@ -585,6 +596,7 @@ const Search = {
585596
null,
586597
score,
587598
filenames[file],
599+
SearchResultKind.text,
588600
]);
589601
}
590602
return results;

_static/styles/bootstrap.css

Lines changed: 0 additions & 6 deletions
This file was deleted.

_static/styles/bootstrap.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

_static/styles/pydata-sphinx-theme.css

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/styles/pydata-sphinx-theme.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)