-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rpmd-docs-updates
- Loading branch information
Showing
59 changed files
with
538 additions
and
27 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
function add_text_blocks(file) | ||
preamble = """ | ||
```@setup logging | ||
@info "Expanding $file..." | ||
start_time = time() | ||
``` | ||
""" | ||
|
||
postamble = """ | ||
```@setup logging | ||
runtime = round(time() - start_time; digits=2) | ||
@info "...done after \$runtime s." | ||
``` | ||
""" | ||
|
||
(tmppath, tmpio) = mktemp() | ||
open(file) do io | ||
write(tmpio, preamble) | ||
for line in eachline(io, keep=true) # keep so the new line isn't chomped | ||
write(tmpio, line) | ||
end | ||
write(tmpio, postamble) | ||
end | ||
close(tmpio) | ||
mv(tmppath, file, force=true) | ||
end | ||
|
||
|
||
for (root, dirs, files) in walkdir("src") | ||
for file in files | ||
if splitext(file)[2] == ".md" | ||
filepath = joinpath(root, file) | ||
add_text_blocks(filepath) | ||
end | ||
end | ||
end |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
```@setup logging | ||
@info "Expanding src/api/NQCBase/nqcbase.md..." | ||
start_time = time() | ||
``` | ||
|
||
# NQCBase | ||
|
||
```@autodocs | ||
Modules=[NQCBase] | ||
``` | ||
```@setup logging | ||
runtime = round(time() - start_time; digits=2) | ||
@info "...done after $runtime s." | ||
``` |
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
```@setup logging | ||
@info "Expanding src/api/NQCDistributions/nqcdistributions.md..." | ||
start_time = time() | ||
``` | ||
|
||
# NQCDistributions | ||
|
||
```@autodocs | ||
Modules=[NQCDistributions] | ||
``` | ||
```@setup logging | ||
runtime = round(time() - start_time; digits=2) | ||
@info "...done after $runtime s." | ||
``` |
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
```@setup logging | ||
@info "Expanding src/api/NQCDynamics/calculators.md..." | ||
start_time = time() | ||
``` | ||
# Calculators | ||
|
||
```@autodocs | ||
Modules=[NQCDynamics.Calculators] | ||
``` | ||
```@setup logging | ||
runtime = round(time() - start_time; digits=2) | ||
@info "...done after $runtime s." | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
```@setup logging | ||
@info "Expanding src/api/NQCDynamics/dynamicsutils.md..." | ||
start_time = time() | ||
``` | ||
|
||
# DynamicsUtils | ||
|
||
```@autodocs | ||
Modules=[NQCDynamics.DynamicsUtils] | ||
``` | ||
```@setup logging | ||
runtime = round(time() - start_time; digits=2) | ||
@info "...done after $runtime s." | ||
``` |
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
```@setup logging | ||
@info "Expanding src/api/NQCDynamics/ensembles.md..." | ||
start_time = time() | ||
``` | ||
|
||
# Ensembles | ||
|
||
```@autodocs | ||
Modules=[NQCDynamics.Ensembles] | ||
``` | ||
```@setup logging | ||
runtime = round(time() - start_time; digits=2) | ||
@info "...done after $runtime s." | ||
``` |
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
```@setup logging | ||
@info "Expanding src/api/NQCDynamics/estimators.md..." | ||
start_time = time() | ||
``` | ||
|
||
# Estimators | ||
|
||
```@autodocs | ||
Modules=[NQCDynamics.Estimators] | ||
``` | ||
```@setup logging | ||
runtime = round(time() - start_time; digits=2) | ||
@info "...done after $runtime s." | ||
``` |
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
Oops, something went wrong.