Difference between revisions of "Documentation/Nightly/Developers/Extensions/DescriptionFile"

From Slicer Wiki
Jump to: navigation, search
(Created page with 'An extension description file is a text file with <code>s4ext</code> extension allowing to specify metadata associated with an [extension][]. * A metadata is specified using a k…')
 
(Replaced content with "<noinclude>{{documentation/versioncheck}}</noinclude> {{documentation/banner | text = [https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html#extension...")
Tags: 2017 source edit, Replaced
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
An extension description file is a text file with <code>s4ext</code> extension allowing to specify metadata associated with an [extension][].
+
<noinclude>{{documentation/versioncheck}}</noinclude>
 
+
{{documentation/banner
* A metadata is specified using a keyword followed by at least one spaces and the associated value.
+
| text  = [https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html#extension-description-file This page has been moved to read-the-docs.]
* Multiline value are not supported.
+
| background-color = 8FBC8F }}
* Empty line are ignored
 
* Line starting with a <code>#</code> will be considered as comment.
 
 
 
The following code block illustrates how comments, metadata and associated value can be specified:
 
 
 
<pre>
 
# This is a comment
 
metadataname This is the value associated with 'metadataname'
 
 
 
# This is an other comment
 
anothermetadata This is the value associated with 'anothermetadata'
 
</pre>
 
 
 
== The list of supported metadata ==
 
 
 
<table>
 
  <tr>
 
    <th>Name</th>
 
    <th>Description</th>
 
    <th>Mandatory</th>
 
  </tr>
 
  <tr>
 
    <td><code>scm</code></td>
 
    <td>Source code management system: <code>git</code> or <code>svn</code></td>
 
    <td>[[File:Yes_check.png|16px]]</td>
 
  </tr>
 
  <tr>
 
    <td><code>scmurl</code></td>
 
    <td>Read-only url used to checkout the extension source code</td>
 
    <td>[[File:Yes_check.png|16px]]</td>
 
  </tr>
 
  <tr>
 
    <td><code>svnusername</code></td>
 
    <td>Allow to specify username associated with <code>svn</code> checkout</td>
 
    <td></td>
 
  </tr>
 
  <tr>
 
    <td><code>svnpassword</code></td>
 
    <td>Allow to specify password associated with <code>svn</code> checkout</td>
 
    <td></td>
 
  </tr>
 
  <tr>
 
    <td><code>scmrevision</code></td>
 
    <td>Revision allowing to checkout the expected source code</td>
 
    <td>[[File:Yes_check.png|16px]]</td>
 
  </tr>
 
  <tr>
 
    <td><code>depends</code></td>
 
    <td>List of extensions required to build this extension. Specify <code>"NA"</code> if there are no dependency.</td>
 
    <td></td>
 
  </tr>
 
  <tr>
 
    <td><code>build_subdirectory</code></td>
 
    <td>Name of the inner build directory in case of superbuild based extension. Default to <code>.</code></td>
 
    <td></td>
 
  </tr>
 
  <tr>
 
    <td><code>homepage</code></td>
 
    <td>Url of the web page describing the extension. See note [1] reported below.</td>
 
    <td>[[File:Yes_check.png|16px]]</td>
 
  </tr>
 
  <tr>
 
    <td><code>contributors</code></td>
 
    <td>Extension contributor specified as <br><code>Firstname1 Lastname1 ([SubOrg1, ]Org1), Firstname2 Lastname2 ([SubOrg2, ]Org2)</code></td>
 
    <td></td>
 
  </tr>
 
  <tr>
 
    <td><code>category</code></td>
 
    <td>Extension category</td>
 
    <td>[[File:Yes_check.png|16px]]</td>
 
  </tr>
 
  <tr>
 
    <td><code>iconurl</code></td>
 
    <td>Url to an icon (png, size 128x128 pixels). See note [1] reported below.</td>
 
    <td></td>
 
  </tr>
 
  <tr>
 
    <td><code>description</code></td>
 
    <td>One line describing what is the purpose of the extension</td>
 
    <td></td>
 
  </tr>
 
  <tr>
 
    <td><code>screenshoturls</code></td>
 
    <td>Space separated list of urls to images. See note [1] reported below.</td>
 
    <td></td>
 
  </tr>
 
  <tr>
 
    <td><code>enabled</code></td>
 
    <td><code>1</code> or <code>0</code> - Specify if the extension should be enabled after its installation. Default is <code>1</code></td>
 
    <td></td>
 
  </tr>
 
</table>
 
 
 
[1] Parameter like <code>&foo=bar</code> are not supported. Use an url shortener.
 
 
 
== The list of partially supported metadata ==
 
 
 
<table>
 
  <tr>
 
    <th>Name</th>
 
    <th>Description</th>
 
  </tr>
 
  <tr>
 
    <td><code>status</code></td>
 
    <td>Give people an idea what to expect from this code</td>
 
  </tr>
 
</table>
 

Latest revision as of 09:58, 22 December 2021

Home < Documentation < Nightly < Developers < Extensions < DescriptionFile