-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more template for the pelican static website
- Loading branch information
Mark Fiers
committed
Sep 5, 2012
1 parent
80a1463
commit 1bee14d
Showing
2 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html> | ||
<head> | ||
<title>Moa pelican page for {{ WD }}</title> | ||
<meta http-equiv="REFRESH" content="0;url=./doc/pelican/index.html"></HEAD> | ||
<BODY> | ||
..should have redirected... | ||
</BODY> | ||
</HTML> |
42 changes: 42 additions & 0 deletions
42
lib/python/moa/plugin/system/doc/templates/template.page.jinja2
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,42 @@ | ||
Title: template "{{ t.moa_id }}" | ||
|
||
{{ t.description }} | ||
|
||
{% macro printpar(p) -%} | ||
{{ "%24s"|format('**' + p + '**') }} | | ||
{%- if t.parameters[p]['optional'] == False %} M {% else %} O {% endif %}| | ||
{%- if t.parameters[p]['type'] %}{{ "%10s"|format(t.parameters[p].type)}} {% else %} - {% endif -%} | ||
|{% if t.parameters[p].help %}{{t.parameters[p].help}}{%endif%} | ||
{% endmacro -%} | ||
|
||
{%- macro printfs(f) -%} | ||
{{ "%24s"|format('**' + f + '**') }} |{%- set strip='yes' -%} | ||
{% if t.filesets[f].optional%} O {% else %} M {% endif %}|{%- set strip='yes' -%} | ||
{{ "%10s"|format(t.filesets[f].category) }}|{%- set strip='yes' -%} | ||
{{ "%10s"|format(t.filesets[f].type) }}|{%- set strip='yes' -%} | ||
{% if t.filesets[f].help %}{{ t.filesets[f].help }}{% endif %} | ||
{% endmacro -%} | ||
|
||
### Filesets | ||
|
||
Name | O | category | type | help | ||
-------------------------|---|----------|----------|------------------------------------------------------------- | ||
{% for p in t.filesets -%} | ||
{{ printfs(p) }} | ||
{%- endfor %} | ||
|
||
### Parameters | ||
|
||
Name | O | type | help | ||
-------------------------|---|-----------|------------------------------------------------------------- | ||
{% for p in t.parameters -%} | ||
{%- if p[0] != "_" and p[:4] != "moa" %}{{printpar(p)}}{% endif %} | ||
{%- endfor %} | ||
|
||
|
||
|
||
### General | ||
|
||
* Author: {{ t.author }} | ||
* Backend: {{ t.backend }} | ||
* |