[gnome-devel-docs] style-guide/markup: Added common markup for install links
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] style-guide/markup: Added common markup for install links
- Date: Wed, 29 Feb 2012 14:33:16 +0000 (UTC)
commit 813175f34ba136ec93ae7a5d0f491b86e5d15489
Author: Shaun McCance <shaunm gnome org>
Date: Wed Feb 29 09:32:46 2012 -0500
style-guide/markup: Added common markup for install links
style-guide/C/markup.page | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/style-guide/C/markup.page b/style-guide/C/markup.page
index d3e1727..dd0021d 100644
--- a/style-guide/C/markup.page
+++ b/style-guide/C/markup.page
@@ -74,4 +74,31 @@ tab in the second step:</p>
</example>
</section> <!-- system-settings -->
+<section id="install" rev:date="2012-02-29" rev:status="proposed">
+<title>Install a package</title>
+
+<p>When the user may need to install a package to complete some task, use the following:</p>
+
+<example>
+<code><![CDATA[
+<note style="info package">
+ <p>You must have the <sys>PACKAGE</sys> package installed to use FUNCTIONALITY.</p>
+ <if:choose xmlns:if="http://projectmallard.org/if/1.0/">
+ <if:when test="action:install">
+ <p><link action="install:PACKAGE" style="button">Install PACKAGE</link></p>
+ </if:when>
+ </if:choose>
+</note>
+]]></code>
+<note style="info package">
+ <p>You must have the <sys>PACKAGE</sys> package installed to use FUNCTIONALITY.</p>
+ <if:choose xmlns:if="http://projectmallard.org/if/1.0/">
+ <if:when test="target:html">
+ <p><link action="install:PACKAGE" style="button">Install PACKAGE</link></p>
+ </if:when>
+ </if:choose>
+</note>
+</example>
+</section> <!-- install -->
+
</page>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]