Skip to content

Commit 5050933

Browse files
authored
Update instructions for adding new apps pages (#2622)
* Update instructions for adding new apps pages! * toc
1 parent 811fc67 commit 5050933

File tree

2 files changed

+63
-2
lines changed

2 files changed

+63
-2
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ must use pull requests.
5858
- Create your own branch from master (or work in an already existing branch, if agreed)
5959
- Create / bring there the content you want to work with. Pay attention to file naming!
6060
- Make sure the data is 100% correct (no Taito or other old references, language is correct, commands work, style is same as in other articles)
61-
- When creating a new article, add it also to the mkdocs.yml navigation OR in the index.md file in that folder (in case of FAQs for example). For new software (=apps) pages, add them to by_discipline.md. **Do not** manually edit by_license.md or index.md files under apps since these are automatically generated. See also the [FAQ](FAQ.md#how-to-include-my-new-page-in-the-navigation-panel).
61+
- When creating a new article, add it also to the mkdocs.yml navigation OR in the index.md file in that folder (in case of FAQs for example). See also the [FAQ](FAQ.md#how-to-include-my-new-page-in-the-navigation-panel).
62+
- For new software (Applications) pages, see [this FAQ entry](FAQ.md#how-do-i-add-a-new-applications-page) on how to include them on the Applications index pages. **Do not edit these index pages by hand!**
6263
- Make a pull request for your work to be added to Master
6364
- Look at the test results of your PR: if they are red, check what's wrong and commit to the PR directly to fix it. See the [FAQ](FAQ.md#my-pr-did-not-pass-the-tests-what-to-do) for instructions.
6465
- Assign one or more reviewers, try to choose someone who knows the _content_. See also the [FAQ](FAQ.md#how-and-who-should-i-ask-to-review-my-pr).

FAQ.md

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ The [contributing guide](CONTRIBUTING.md) outlines the basic steps of starting c
2222
- [Which Markdown features/extensions are available?](#which-markdown-featuresextensions-are-available)
2323
- [How do I add definitions to the glossary / display definitions as tooltips?](#how-do-i-add-definitions-to-the-glossary--display-definitions-as-tooltips)
2424
- [How do I use the announcement bar?](#how-do-i-use-the-announcement-bar)
25+
- [How do I include a new software page on the "Applications" index pages](#how-do-i-add-a-new-applications-page)
2526
- [How do I add a license tag to an application page?](#how-do-I-add-a-license-tag-to-an-application-page)
2627
- [How do I tag an application as available under a web interface?](#how-do-i-tag-an-application-as-available-under-a-web-interface)
2728
- [How do I make footnotes?](#how-do-i-make-footnotes)
2829
- [How do I improve search results?](#how-do-i-improve-search-results)
2930
- [How do I redirect incoming links](#how-do-i-redirect-incoming-links)
3031

31-
3232
## How to include my new page in the navigation panel?
3333

3434
If you add a new page that you want to appear in the left-hand-side navigation panel, you need to edit the `mkdocs.yml` file in the root of the repository. Items appearing in the navigation panel are listed in this file as key/value pairs under the `nav:` key, for example:
@@ -353,6 +353,66 @@ Make sure to "un-uncomment" every other line, since only a single line may be in
353353

354354
Documentation for _Material for MkDocs_ has a [search feature](https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/?h=icon#search) including **previews** for the icon database. The path of the icon file can be determined by examining the shortcode. For example, the path `.icons/material/information.svg` above corresponds to the shortcode `:material-information:` shown in the search.
355355

356+
## How do I add a new "Applications" page?
357+
358+
To include a new software page on the "Applications" index pages
359+
(`apps/index.md`, `apps/by_system.md`, `apps/by_license.md`, `apps/by_discipline`),
360+
you must add a YAML front matter at the beginning of the file (before the page title)
361+
with appropriate metadata. The frontmatter should look like this:
362+
363+
```yaml
364+
---
365+
tags:
366+
- <license type>
367+
catalog:
368+
name: <software name>
369+
description: <short description>
370+
license_type: <license type>
371+
disciplines:
372+
- <discipline a>
373+
- <discipline b>
374+
- ...
375+
available_on:
376+
- web_interfaces:
377+
- <system 1>
378+
- <system 2>
379+
- ...
380+
- <system 1>
381+
- <system 2>
382+
- <system 3>
383+
- ...
384+
---
385+
```
386+
387+
For example, the front matter of MATLAB is:
388+
389+
```yaml
390+
---
391+
tags:
392+
- Academic
393+
catalog:
394+
name: MATLAB
395+
description: High-level technical computing language
396+
license_type: Academic
397+
disciplines:
398+
- Mathematics and Statistics
399+
available_on:
400+
- web_interfaces:
401+
- LUMI
402+
- Puhti
403+
- LUMI
404+
- Puhti
405+
---
406+
```
407+
408+
> [!IMPORTANT]
409+
> **Do not** edit the index pages by hand, as they are populated automatically by a script using the front matter data when the website is built.
410+
411+
See also:
412+
413+
* [How do I add a license tag to an application page?](#how-do-i-add-a-license-tag-to-an-application-page)
414+
* [How do I tag an application as available under a web interface?](#how-do-i-tag-an-application-as-available-under-a-web-interface)
415+
356416
## How do I add a license tag to an application page?
357417

358418
The license tag is added inside the YAML front matter. Temporarily, the license type should be placed as a

0 commit comments

Comments
 (0)