1 <?xml version="1.0" encoding="utf-8"?>
\r
2 <chapter xml:id="style-template" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"
\r
3 xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">
\r
8 <date>2009-10-13</date>
\r
9 <authorinitials>JB</authorinitials>
\r
10 <revremark>Revised to include example of revhistory element</revremark>
\r
14 <title>Sitka Documentation Template</title>
\r
17 <para>The source xml file for this template page is in the Sitka DocBook directory at
\r
18 <emphasis>www/Sitka/draft/template.xml</emphasis>. To use it as a template for new Sitka
\r
19 documenation follow the steps below.</para>
\r
23 <title>Open <emphasis>template.xml</emphasis></title>
\r
26 <para>Optional intro paragraph for section</para>
\r
30 <para>Open oXygen XML Author or Editor</para>
\r
34 <para>Right-click <guilabel>newProject.xpr</guilabel> (in the left column) and
\r
35 choose <guimenuitem>Import Remote Folders</guimenuitem></para>
\r
39 <para>Enter DocBook server url, username, and password for SFTP connection (not
\r
40 publicly available), then click <guibutton>Browse</guibutton></para>
\r
45 <para>Navigate to /home/jbuhler/www/Sitka/draft. Select this folder, then click
\r
46 <guibutton>OK</guibutton> (ed note: this is also an example of how to
\r
47 keep step text and image together, displaying an image that's less than
\r
51 <alt>screenshot of staff client</alt>
\r
53 <imagedata scalefit="0" fileref="media/style-template-1.png"/>
\r
61 <para>In oXygen, double-click on <guilabel>newProject.xpr*</guilabel>. Navigate to
\r
62 <emphasis>draft/template.xml</emphasis>, then double-click it to open</para>
\r
67 <para><emphasis>template.xml</emphasis> will open in oXygen (ed note: this is
\r
68 also an example of how to keep step text and image together, displaying an
\r
69 image that's wider than 920px)</para>
\r
72 <alt>screenshot of staff client</alt>
\r
74 <imagedata width="100%" scalefit="1" fileref="media/style-template-2.png"/>
\r
86 <title>Save as new xml file</title>
\r
89 <para>Optional intro paragraph for section</para>
\r
93 <para>Make the following changes to <emphasis>template.xml</emphasis></para>
\r
96 <para>Change the chapter xml:id from <emphasis>style-template</emphasis> to
\r
97 a new unique value</para>
\r
100 <para>Change the title from <emphasis>Sitka Documentation
\r
101 Template</emphasis></para>
\r
107 <para>Go to <menuchoice>
\r
108 <guimenu>File</guimenu>
\r
109 <guimenuitem>Save to URL...</guimenuitem>
\r
110 </menuchoice> and save to desired Sitka docs directory (using a newly assigned
\r
111 name, not <emphasis>template.xml</emphasis>)</para>
\r
115 <para>While customizing the file, use <keycombo>
\r
116 <keycap>Ctrl</keycap>
\r
118 </keycombo> to save changes</para>
\r
122 <para>Open <emphasis>root.xml</emphasis> and add a new
\r
123 <emphasis>xi:includes</emphasis> line pointing to the newly created file,
\r
124 adding it to the larger Sitka doc set; save changes</para>
\r
130 <para>Use <keycombo>
\r
131 <keycap>Ctrl</keycap>
\r
132 <keycap>Shift</keycap>
\r
134 </keycombo> to automatically indent and space an xml file in oXygen, making it
\r
135 easier to read and work with</para>
\r