-
Notifications
You must be signed in to change notification settings - Fork 41
Use a time template in module documentation generation #256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a12ecac
4db4968
0fd557d
7e542a3
b716288
1d2dba7
4583294
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
name: Update overview of available software in EESSI | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
# run every 4 hours | ||
|
@@ -34,6 +35,7 @@ jobs: | |
cp docs/available_software/data/json_data.json docs/available_software/data/json_data.json.orig | ||
cp docs/available_software/data/json_data_detail.json docs/available_software/data/json_data_detail.json.orig | ||
|
||
export TIME_GENERATED_TEMPLATE="{{ generated_time }}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the side-step here via this environment variable, why not just "hardcode" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So that others sites can use the script without being forced to take the same approach. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, doesn't hurt I guess. |
||
python scripts/available_software/available_software.py | ||
git status | ||
|
||
|
@@ -47,6 +49,7 @@ jobs: | |
else | ||
echo "JSON files in docs/available_software/data have been changed, PR should be opened" | ||
echo "json_data_changed=yes" >> $GITHUB_OUTPUT | ||
./scripts/update_generated_time.sh mkdocs.yml | ||
fi | ||
|
||
# remove original JSON files, or they'll end up in the PR being opened | ||
|
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| |
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 |
Uh oh!
There was an error while loading. Please reload this page.