Spaces:
Running
Running
MilesCranmer
commited on
Commit
β’
ec6cde5
1
Parent(s):
ed4f1ee
Move header out of docs dir
Browse files
docs/generate_papers.py
CHANGED
@@ -34,9 +34,10 @@ Sergiy Verstyuk<sup>1</sup>, Michael R. Douglas.<sup>1</sup><br><sup>1</sup>Harv
|
|
34 |
|
35 |
import yaml
|
36 |
from textwrap import dedent
|
|
|
37 |
|
38 |
data_file = "papers.yml"
|
39 |
-
papers_header = "papers_header.md"
|
40 |
output_file = "papers.md"
|
41 |
|
42 |
# Load YAML file:
|
|
|
34 |
|
35 |
import yaml
|
36 |
from textwrap import dedent
|
37 |
+
from pathlib import Path
|
38 |
|
39 |
data_file = "papers.yml"
|
40 |
+
papers_header = Path("headers") / "papers_header.md"
|
41 |
output_file = "papers.md"
|
42 |
|
43 |
# Load YAML file:
|
docs/{papers_header.md β headers/papers_header.md}
RENAMED
File without changes
|
gen_docs.sh
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
#!/bin/bash -e
|
2 |
|
3 |
cat README.md | grep -v 'pysr_logo.svg' | grep -E -v '\<.*div.*\>' > docs/index.md
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
#!/bin/bash -e
|
2 |
|
3 |
cat README.md | grep -v 'pysr_logo.svg' | grep -E -v '\<.*div.*\>' > docs/index.md
|
4 |
+
# Transform "## Test status" to "**Test status**":
|
5 |
+
cd docs
|
6 |
+
sed -i.bak 's/\#\# Test status/**Test status**/g' index.md
|
7 |
+
# Change '# ' to '## ':
|
8 |
+
sed -i.bak '10,$s/^\# /## /g' index.md
|
9 |
+
python generate_papers.py
|