-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from ocaisa/reduce_module_update_impact
Use a time template in module documentation generation
- Loading branch information
Showing
7 changed files
with
58 additions
and
1 deletion.
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
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
25 changes: 25 additions & 0 deletions
25
scripts/available_software/tests/data/test_md_template_detailed_science_sol.md
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,25 @@ | ||
--- | ||
hide: | ||
- toc | ||
--- | ||
|
||
science | ||
======= | ||
|
||
# Available modules | ||
|
||
|
||
The overview below shows which science installations are available per target architecture in EESSI, ordered based on software version (new to old). | ||
|
||
To start using science, load one of these modules using a `module load` command like: | ||
|
||
```shell | ||
module load science/7.2.0 | ||
``` | ||
|
||
*(This data was automatically generated on {{ generated_date }})* | ||
|
||
| |aarch64/generic|x86_64/amd/zen2| | ||
| :---: | :---: | :---: | | ||
|science/7.2.0|x|x| | ||
|science/5.3.0|x|x| |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Get the new date | ||
NEW_DATE="$(date '+%a, %d %b %Y at %H:%M:%S %Z')" | ||
# Inject it into the target file | ||
sed -i 's/\(generated_time: "\)[^"]*\(".*\)/\1'"${NEW_DATE}"'\2/' $1 |