|
14 | 14 | "-o", "--outdir", default="source", help="Output directory", show_default=True |
15 | 15 | ) |
16 | 16 | def template(project, outdir): |
17 | | - """Generate myst report template for `repo_owner`/`repo_name`""" |
| 17 | + """Generate myst report templates |
| 18 | +
|
| 19 | + These templates are copied from `devstats`, and still need to be compiled |
| 20 | + to substitute variables. |
| 21 | + """ |
18 | 22 | os.makedirs(outdir, exist_ok=True) |
19 | 23 | os.makedirs(os.path.join(outdir, project), exist_ok=True) |
20 | 24 |
|
@@ -46,7 +50,19 @@ def _include_file(basedir, x): |
46 | 50 | "-o", "--outdir", default="build", help="Output directory", show_default=True |
47 | 51 | ) |
48 | 52 | def publish(project, templatedir, outdir): |
49 | | - """Compile templates into markdown files ready for sphinx / myst""" |
| 53 | + """Compile templates (substitute variables) into markdown files ready for sphinx / myst |
| 54 | +
|
| 55 | + Include sections like the following are executed: |
| 56 | +
|
| 57 | + ``` |
| 58 | + {include} filename.md |
| 59 | + ``` |
| 60 | +
|
| 61 | + Thereafter, the following variables are substituted: |
| 62 | +
|
| 63 | + - `{{ project }}`: Name of the project |
| 64 | +
|
| 65 | + """ |
50 | 66 | os.makedirs(outdir, exist_ok=True) |
51 | 67 | os.makedirs(os.path.join(outdir, project), exist_ok=True) |
52 | 68 |
|
|
0 commit comments