Skip to content

Commit 98a4f0c

Browse files
committed
generalised README creator
1 parent 1c9cead commit 98a4f0c

6 files changed

Lines changed: 101 additions & 17 deletions

File tree

COMMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
WARNING: DO NOT MODIFY DIRECTLY THE README.md!
33
This README.md file was assembled using the sed command from the files listed in
44
"files.txt". See the script in "generateREADME.sh". To modify the content of
5-
the README.md, modify the files listed in
6-
"files.txt", or add a new file to the list in "files.txt".
5+
the README.md, modify the files listed in "files.txt", or add a new file to the
6+
list in "files.txt".
77
-->

DESCRIPTION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LAMMPS tutorials' special repository
22

3-
The content of the profile/README.md appears on the GitHub profile of the
4-
[LAMMPS tutorials organization](https://github.com/lammpstutorials).
3+
The content of the profile/README.md appears on the GitHub
4+
[profile](https://github.com/lammpstutorials) of the LAMMPS tutorials organization.
55
This repository also contains the list of [authors](AUTHORS.md) from the
66
LAMMPS tutorials initiative, as well as a list of [Acknowledgements](ACKNOWLEDGEMENTS.md).

profile/DESCRIPTION.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# LAMMPS tutorials ![GitHub Org's stars](https://img.shields.io/github/stars/lammpstutorials?style=for-the-badge)
2+
3+
Material and guides for LAMMPS beginner. The main website can be accessed
4+
[from this page](https://lammpstutorials.github.io/). The LAMMPS inputs are
5+
provided in [a dedicated repository](https://github.com/lammpstutorials/lammpstutorials-inputs),
6+
together with the data files, scripts, and parameter files. The functions used for
7+
the Matplotlib graphs are available [here](https://github.com/simongravelle/pyplot-perso).
8+
9+
<p float="left">
10+
<a href="https://lammpstutorials.github.io/sphinx/build/html/tutorials/level1/lennard-jones-fluid.html">
11+
<img src="https://raw.githubusercontent.com/lammpstutorials/lammpstutorials.github.io/2Aug2023/docs/avatars/level1/lennard-jones-fluid/avatar-Lennard-Jones-LAMMPS.png" width="32%" />
12+
</a>
13+
<a href="https://lammpstutorials.github.io/sphinx/build/html/tutorials/level1/breaking-a-carbon-nanotube.html">
14+
<img src="https://raw.githubusercontent.com/lammpstutorials/lammpstutorials.github.io/2Aug2023/docs/avatars/level1/breaking-a-carbon-nanotube/CNT.png" width="32%" />
15+
</a>
16+
<a href="https://lammpstutorials.github.io/sphinx/build/html/tutorials/level3/water-adsorption-in-silica.html">
17+
<img src="https://raw.githubusercontent.com/lammpstutorials/lammpstutorials.github.io/2Aug2023/docs/avatars/level3/water-adsorption-in-silica/water-adsorption.png" width="32%" />
18+
</a>
19+
</p>
20+
21+
Figure: Lennard-Jones fluid mixture from tutorial 1 (left), Carbon nanotube from
22+
tutorial 2 (middle), and water molecules in a cracked silica from tutorial 6 (right).
23+
24+
## The article
25+
26+
An article is in preparation, it can be found [here](https://github.com/lammpstutorials/lammpstutorials-article).

profile/README.md

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1+
<!--
2+
WARNING: DO NOT MODIFY DIRECTLY THE README.md!
3+
This README.md file was assembled using the sed command from the files listed in
4+
"files.txt". See the script in "generateREADME.sh". To modify the content of
5+
the README.md, modify the files listed in "files.txt", or add a new file to the
6+
list in "files.txt".
7+
-->
8+
9+
110
# LAMMPS tutorials ![GitHub Org's stars](https://img.shields.io/github/stars/lammpstutorials?style=for-the-badge)
211

3-
Material and guides for beginner LAMMPS users.
4-
The main website can be accessed [from this page](https://lammpstutorials.github.io/),
5-
and the functions used for the Matplotlib graphs are available [here](https://github.com/simongravelle/pyplot-perso).
12+
Material and guides for LAMMPS beginner. The main website can be accessed
13+
[from this page](https://lammpstutorials.github.io/). The LAMMPS inputs are
14+
provided in [a dedicated repository](https://github.com/lammpstutorials/lammpstutorials-inputs),
15+
together with the data files, scripts, and parameter files. The functions used for
16+
the Matplotlib graphs are available [here](https://github.com/simongravelle/pyplot-perso).
617

718
<p float="left">
819
<a href="https://lammpstutorials.github.io/sphinx/build/html/tutorials/level1/lennard-jones-fluid.html">
@@ -16,24 +27,36 @@ and the functions used for the Matplotlib graphs are available [here](https://gi
1627
</a>
1728
</p>
1829

19-
Figure: (left) Lennard-Jones fluid mixture (middle) Carbon nanotube (right) Water molecules in a cracked silica
20-
21-
## Find all the inputs
22-
23-
The LAMMPS inputs are provided in [a dedicated repository](https://github.com/lammpstutorials/lammpstutorials-inputs),
24-
together with the data files, scripts, and parameter files.
30+
Figure: Lennard-Jones fluid mixture from tutorial 1 (left), Carbon nanotube from
31+
tutorial 2 (middle), and water molecules in a cracked silica from tutorial 6 (right).
2532

2633
## The article
2734

2835
An article is in preparation, it can be found [here](https://github.com/lammpstutorials/lammpstutorials-article).
2936

30-
## People involved
37+
## Authors
3138

3239
### Project creator
3340

34-
- [Simon Gravelle](https://github.com/simongravelle), LiPhy, UGA, CNRS, France.
41+
- [Simon Gravelle](https://github.com/simongravelle),
42+
Univ. Grenoble Alpes, CNRS, LIPhy, 38000 Grenoble, France
3543

3644
### Contributors
3745

38-
- Jacob R. Gissinger, Stevens Institute of Technology, Hoboken, NJ 07030, USA.
39-
- Axel Kohlmeyer, Institute for Computational Molecular Science, Temple University, Philadelphia, PA 19122, USA.
46+
- [Jacob R. Gissinger](https://www.stevens.edu/profile/jgissing),
47+
Stevens Institute of Technology, Hoboken, NJ 07030, USA
48+
- [Axel Kohlmeyer](https://sites.google.com/site/akohlmey),
49+
Institute for Computational Molecular Science, Temple University, Philadelphia,
50+
PA 19122, USA
51+
52+
53+
54+
## Acknowledgements
55+
56+
- Simon Gravelle acknowledges funding from the European Union's Horizon 2020
57+
research and innovation programme under the Marie Skłodowska-Curie grant
58+
agreement No 101065060$.
59+
- Axel Kohlmeyer acknowledges financial support by Sandia National Laboratories
60+
under POs 2149742 and 2407526.
61+
62+

profile/files.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
../COMMENT.md
2+
DESCRIPTION.md
3+
../AUTHORS.md
4+
../ACKNOWLEDGEMENTS.md

profile/generateREADME.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
output_file="README.md"
4+
> "$output_file"
5+
6+
files=()
7+
while IFS= read -r line
8+
do
9+
files+=("$line")
10+
done < "files.txt"
11+
input_files="${files[@]}"
12+
13+
# Loop through each file and append its content to the output file
14+
for file in "${files[@]}"
15+
do
16+
17+
# Check if file exists before attempting to read it
18+
if [ -f "$file" ]
19+
then
20+
21+
# Append file content to the output file
22+
cat "$file" >> "$output_file"
23+
24+
# Append blank line
25+
echo -e "\n" >> "$output_file"
26+
27+
else
28+
echo "WARNING: File '$file' does not exist."
29+
fi
30+
31+
done

0 commit comments

Comments
 (0)