comparison doc/jp/blog.rst @ 2954:5e72efd2f95d

doc: minor fixes + use ".pot" extension instead of ".po" for template in README4TRANSLATORS
author Goffi <goffi@goffi.org>
date Sun, 26 May 2019 22:21:56 +0200
parents ce16847a7b6d
children afad95f257c7
comparison
equal deleted inserted replaced
2953:3caf460bc125 2954:5e72efd2f95d
28 $ echo "This is a **rich** body" | jp blog set -S markdown 28 $ echo "This is a **rich** body" | jp blog set -S markdown
29 29
30 get 30 get
31 === 31 ===
32 32
33 get command retrieves one or move blog post from specified location (by default the 33 get command retrieves one or more blog post(s) from specified location (by default the
34 personal blog of the profile). 34 personal blog of the profile).
35 35
36 output can be customised to only retrieve some keys, or to use a specific template. 36 output can be customised to only retrieve some keys, or to use a specific template.
37 37
38 :ref:`pubsub_common` commands are used to specify the blog location. 38 :ref:`pubsub_common` commands are used to specify the blog location.
189 To set the preview, you can use the options ``blog_preview_open_cmd`` and 189 To set the preview, you can use the options ``blog_preview_open_cmd`` and
190 ``blog_preview_update_cmd`` in your ``[jp]`` section. the former is the command to use to 190 ``blog_preview_update_cmd`` in your ``[jp]`` section. the former is the command to use to
191 open your browser when edition starts, and the later is the command to use when a 191 open your browser when edition starts, and the later is the command to use when a
192 modification is saved. In both cases you may use ``{url}`` to set the location of local HTML file. 192 modification is saved. In both cases you may use ``{url}`` to set the location of local HTML file.
193 193
194 This can be use to activate automatic refreshing of the page. 194 This can be used to activate automatic refreshing of the page.
195 195
196 For **Konqueror**, you can use its D-Bus API to do refreshing. Ensure that ``qdbus`` is 196 For **Konqueror**, you can use its D-Bus API to do refreshing. Ensure that ``qdbus`` is
197 installed on your system, and enter the following lines in your ``sat.conf``: 197 installed on your system, and enter the following lines in your ``sat.conf``:
198 198
199 .. sourcecode:: cfg 199 .. sourcecode:: cfg
227 .. sourcecode:: cfg 227 .. sourcecode:: cfg
228 228
229 [jp] 229 [jp]
230 syntax_ext_dict = {"markdown": "markdown"} 230 syntax_ext_dict = {"markdown": "markdown"}
231 231
232 the first ``markdown`` is the name of the syntax (could an other syntax like ``xhtml``), 232 the first ``markdown`` is the name of the syntax (could be an other syntax like ``xhtml``),
233 while the second if the file extension. 233 while the second if the file extension.
234 234
235 preview 235 preview
236 ======= 236 =======
237 237
238 This command will show the specified file in browser, and refresh it when changes are 238 This command will show the specified file in browser, and refresh it when changes are
239 detected. Configuration is the same as for `edit preview <edit_preview_>`_. This is can be 239 detected. Configuration is the same as for `edit preview <edit_preview_>`_. This can be
240 used if you have already started an edition with ``jp blog edit`` but forgot to use the ``-P, --preview`` arguments. 240 used if you have already started an edition with ``jp blog edit`` but forgot to use the ``-P, --preview`` arguments.
241 241
242 example: 242 example:
243 -------- 243 --------
244 244