You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FAQ.md
+85-10Lines changed: 85 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,10 @@ The [contributing guide](CONTRIBUTING.md) outlines the basic steps of starting c
23
23
-[How do I add definitions to the glossary / display definitions as tooltips?](#how-do-i-add-definitions-to-the-glossary--display-definitions-as-tooltips)
24
24
-[How do I use the announcement bar?](#how-do-i-use-the-announcement-bar)
25
25
-[How do I include a new software page on the "Applications" index pages](#how-do-i-add-a-new-applications-page)
26
-
-[How do I add a license tag to an application page?](#how-do-I-add-a-license-tag-to-an-application-page)
27
-
-[How do I tag an application as available under a web interface?](#how-do-i-tag-an-application-as-available-under-a-web-interface)
26
+
-[How do I add a license tag to an application page?](#how-do-I-add-a-license-tag-to-an-application-page)
27
+
-[How do I tag an application as available under a web interface?](#how-do-i-tag-an-application-as-available-under-a-web-interface)
28
+
-[How do I add scientific disciplines to an application page?](#how-do-i-add-scientific-disciplines-to-an-application-page)
29
+
-[What if there is no application page, but the application still needs to be listed on the index pages?](#what-if-there-is-no-application-page-but-the-application-still-needs-to-be-listed-on-the-index-pages)
28
30
-[How do I make footnotes?](#how-do-i-make-footnotes)
29
31
-[How do I improve search results?](#how-do-i-improve-search-results)
30
32
-[How do I redirect incoming links](#how-do-i-redirect-incoming-links)
@@ -229,10 +231,10 @@ mkdocs serve --dirtyreload
229
231
You can also run the tests locally with
230
232
231
233
```bash
232
-
bash tests/run_tests.sh
234
+
MKDOCS_ENV=test bash tests/run_tests.sh
233
235
```
234
236
235
-
The tests depend on the Conda environment, so remember to activate it before running them, or use `conda run -n docs-env bash tests/run_tests.sh`.
237
+
The tests depend on the Conda environment, so remember to activate it before running them, or use `conda run -n docs-env MKDOCS_ENV=test bash tests/run_tests.sh`.
236
238
237
239
#### Scripts
238
240
@@ -356,7 +358,7 @@ Documentation for _Material for MkDocs_ has a [search feature](https://squidfunk
356
358
## How do I add a new "Applications" page?
357
359
358
360
To include a new software page on the "Applications" index pages
you must add a YAML front matter at the beginning of the file (before the page title)
361
363
with appropriate metadata. The frontmatter should look like this:
362
364
@@ -405,18 +407,47 @@ catalog:
405
407
---
406
408
```
407
409
410
+
A missing name causes even preview builds to stop immediately with an error:
411
+
412
+
```text
413
+
ERROR - Error reading page 'apps/doom.md':
414
+
ERROR - Every application in the Software Catalog must have a name
415
+
```
416
+
417
+
Other missing values in the front matter will generate a warning:
418
+
419
+
```text
420
+
WARNING - catalog-hook: Doc file 'apps/doom.md' is for an application, but the YAML front matter does not ...
421
+
```
422
+
423
+
> [!WARNING]
424
+
> Warnings are **not** allowed in the test automation, so while the site can be built with warnings for a preview (local or Rahti), all of the fields must be defined for a branch to be merged into the master branch.
425
+
426
+
To include an app page without warnings for missing fields, the app may be marked as "unchecked".
427
+
by defining a boolean-valued key `unchecked: true` inside `catalog:`.:
428
+
429
+
```yaml
430
+
---
431
+
catalog:
432
+
name: A name is still required
433
+
# ...
434
+
unchecked: true
435
+
---
436
+
```
437
+
408
438
> [!IMPORTANT]
409
-
> **Do not** edit the indexpages by hand, as they are populated automatically by a script using the front matter data when the website is built.
439
+
> **Do not** attempt to _include apps_ on `apps/index.md`, `apps/by_discipline`, `apps/by_availability.md`, `apps/by_license.md` pages by hand, as the indices are populated automatically by a script using the front matter data when the website is built.
410
440
411
441
See also:
412
442
413
443
* [How do I add a license tag to an application page?](#how-do-i-add-a-license-tag-to-an-application-page)
414
444
* [How do I tag an application as available under a web interface?](#how-do-i-tag-an-application-as-available-under-a-web-interface)
## How do I add a license tag to an application page?
447
+
### How do I add a license tag to an application page?
417
448
418
449
The license tag is added inside the YAML front matter. Temporarily, the license type should be placed as a
419
-
list item under `tags:` _and_ as a string in `license_type:`:
450
+
single list item under `tags:` _and_ as a string in `license_type:`:
420
451
421
452
```yaml
422
453
---
@@ -432,9 +463,10 @@ catalog:
432
463
where `<license>` is one of the predefined license categories: `Academic`, `Free`, `Non-commercial` or
433
464
`Other`; case sensitive, without the angle brackets.
434
465
435
-
The application will then be included on the Applications by license page automatically.
466
+
The application will then be included under the appropriate license category on the
467
+
[Applications by license page](https://docs.csc.fi/apps/by_license) automatically.
436
468
437
-
## How do I tag an application as available under a web interface?
469
+
### How do I tag an application as available under a web interface?
438
470
439
471
In the YAML front matter. The following would, for example, tag the application as available on
440
472
Puhti, Mahti _and_ Puhti web interface.
@@ -452,6 +484,49 @@ catalog:
452
484
---
453
485
```
454
486
487
+
### How do I add scientific disciplines to an application page?
488
+
489
+
Similarly to license and availability above. The disciplines are to be listed under `disciplines:`:
490
+
491
+
```yaml
492
+
---
493
+
catalog:
494
+
# ...
495
+
disciplines:
496
+
- Biosciences
497
+
- Chemistry
498
+
# - ...
499
+
# ...
500
+
---
501
+
```
502
+
503
+
The application will then be listed under each of those disciplines on the
504
+
[Applications by discipline page](https://docs.csc.fi/apps/by_discipline) automatically.
505
+
506
+
See [the 'catalog-hook' configuration file](hooks/catalog/config.yml) for a list of predefined
507
+
disciplines.
508
+
509
+
### What if there is no application page, but the application still needs to be listed on the index pages?
510
+
511
+
There is an appendix for including such applications. It resides in [the 'catalog-hook' configuration file](hooks/catalog/config.yml). The list `appendix:` contains entries such as
512
+
513
+
```yaml
514
+
appendix:
515
+
- name: "Chipster"
516
+
description: "Easy-to-use analysis platform for RNA-seq, single cell RNA-seq and other NGS data"
517
+
disciplines:
518
+
- "Biosciences"
519
+
doc: "https://chipster.csc.fi/"
520
+
- name: "MaxQuant"
521
+
description: "A proteomics software for processing of Mass-spectromtery data"
522
+
disciplines:
523
+
- "Biosciences"
524
+
doc: "support/tutorials/MaxQuant-tutorial.md"
525
+
# - ...
526
+
```
527
+
528
+
where `doc:` can point either to an external page or a `.md` source file on Docs. For the other fields, see the instructions for application pages above. The fields `name:`, `description:`, `disciplines:` and `doc:` are all required and no other fields are allowed.
Copy file name to clipboardExpand all lines: csc-overrides/partials/announcement.html
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
a comment (#) to a statement (%)) a line below. Only a
5
5
single line can be uncommented at a time.
6
6
#}
7
-
{# import ".icons/material/coffee.svg" as icon #}
7
+
{% import ".icons/material/coffee.svg" as icon %}
8
8
{# import ".icons/material/chat.svg" as icon #}
9
9
{# import ".icons/material/information.svg" as icon #}
10
10
{# import ".icons/material/alert.svg" as icon #}
@@ -15,11 +15,11 @@
15
15
{# import ".icons/material/dna.svg" as icon #}
16
16
{# import ".icons/material/atom.svg" as icon #}
17
17
{# import ".icons/material/telescope.svg" as icon #}
18
-
{% import ".icons/material/fire.svg" as icon %}
18
+
{# import ".icons/material/fire.svg" as icon #}
19
19
<divclass="announcement-icon">{{ icon }}</div>
20
20
{# Put the announcement, in HTML, right under this comment! #}
21
21
<p>
22
-
Call for Roihu pilot projects is now open! <ahref="https://research.csc.fi/2025/10/07/roihu-pilot/" target="_blank">Read the article to learn more & apply for early access</a>.
22
+
Welcome to our weekly research support coffee hour on Zoom! <ahref="https://csc.fi/en/training-calendar/csc-research-support-coffee-every-wednesday-at-1400-finnish-time-2-2/" target="_blank">Click here for more information.</a>
0 commit comments