mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Markdown datatype support.
With test tools demonstrating HTML and Markdown outputs from tools. Implements #3396 as part of the Qiime hackathon.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<tool id="creates_html" name="creates_html" version="1.0.0" profile="16.04">
|
||||
<command>
|
||||
mkdir '$output.extra_files_path';
|
||||
cp '$__tool_directory__/creates_html_index.html' '$output';
|
||||
cp '$__tool_directory__/creates_html_image.png' '$output.extra_files_path/image.png';
|
||||
</command>
|
||||
<inputs>
|
||||
<param name="inttest" type="integer" value="7" />
|
||||
</inputs>
|
||||
<outputs>
|
||||
<data format="html" name="output" label="Output HTML">
|
||||
</data>
|
||||
</outputs>
|
||||
</tool>
|
||||
@@ -0,0 +1,12 @@
|
||||
<html>
|
||||
<body>
|
||||
<p>Hello World!</p>
|
||||
<p>Some of this sentence is <b>bold</b> and some is <i>italic</i>.</p>
|
||||
<ul>
|
||||
<li>A list element.</li>
|
||||
<li>Another list element.</li>
|
||||
<li>Last list element.</li>
|
||||
</ul>
|
||||
<img src="image.png" alt="An Image">
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,14 @@
|
||||
<tool id="creates_markdown" name="creates_markdown" version="1.0.0" profile="16.04">
|
||||
<command>
|
||||
mkdir '$output.extra_files_path';
|
||||
cp '$__tool_directory__/creates_markdown_index.md' '$output';
|
||||
cp '$__tool_directory__/creates_html_image.png' '$output.extra_files_path/image.png'
|
||||
</command>
|
||||
<inputs>
|
||||
<param name="inttest" type="integer" value="7" />
|
||||
</inputs>
|
||||
<outputs>
|
||||
<data format="markdown" name="output" label="Output Markdown">
|
||||
</data>
|
||||
</outputs>
|
||||
</tool>
|
||||
@@ -0,0 +1,9 @@
|
||||
Hello World!
|
||||
|
||||
Some of this sentence is **bold** and some is *italic*.
|
||||
|
||||
* A list element.
|
||||
* Another list element.
|
||||
* Last list element.
|
||||
|
||||

|
||||
@@ -18,5 +18,7 @@
|
||||
<datatype extension="biom1" type="galaxy.datatypes.text:Biom1" display_in_upload="True" subclass="True" mimetype="application/json"/>
|
||||
<datatype extension="bed" type="galaxy.datatypes.interval:Bed" display_in_upload="true" description="BED format provides a flexible way to define the data lines that are displayed in an annotation track. BED lines have three required columns and nine additional optional columns. The three required columns are chrom, chromStart and chromEnd." description_url="https://wiki.galaxyproject.org/Learn/Datatypes#Bed">
|
||||
</datatype>
|
||||
<datatype extension="html" type="galaxy.datatypes.text:Html" mimetype="text/html"/>
|
||||
<datatype extension="markdown" type="galaxy.datatypes.text:Markdown" mimetype="text/markdown"/>
|
||||
</registration>
|
||||
</datatypes>
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
<tool file="upload.xml"/>
|
||||
<tool file="simple_constructs.xml" />
|
||||
<tool file="color_param.xml" />
|
||||
<tool file="creates_html.xml" />
|
||||
<tool file="creates_markdown.xml" />
|
||||
<tool file="inheritance_simple.xml" />
|
||||
<tool file="boolean_conditional.xml" />
|
||||
<tool file="composite.xml" />
|
||||
|
||||
Reference in New Issue
Block a user