comparison doc/libervia-cli/blog.rst @ 3573:813595f88612

merge changes from main branch
author Goffi <goffi@goffi.org>
date Thu, 17 Jun 2021 13:05:58 +0200
parents 267e4987b58b
children 76fb0739cc9c
comparison
equal deleted inserted replaced
3541:888109774673 3573:813595f88612
241 syntax_ext_dict = {"markdown": "markdown"} 241 syntax_ext_dict = {"markdown": "markdown"}
242 242
243 the first ``markdown`` is the name of the syntax (could be an other syntax like ``xhtml``), 243 the first ``markdown`` is the name of the syntax (could be an other syntax like ``xhtml``),
244 while the second if the file extension. 244 while the second if the file extension.
245 245
246 rename
247 ======
248
249 Move a item to a new ID. This works the same as :ref:`li-pubsub_rename`, the only
250 difference is that node defaults to microblog default namespace.
251
252 example
253 -------
254
255 After a typo, a use want to rename the blog item with ID ``my_great_tittle_123a`` to
256 ``my_great_title_123a``::
257
258 $ li blog rename -i my_great_tittle_123a my_great_title_123a
259
246 preview 260 preview
247 ======= 261 =======
248 262
249 This command will show the specified file in browser, and refresh it when changes are 263 This command will show the specified file in browser, and refresh it when changes are
250 detected. Configuration is the same as for `edit preview <edit_preview_>`_. This can be 264 detected. Configuration is the same as for `edit preview <edit_preview_>`_. This can be
251 used if you have already started an edition with ``li blog edit`` but forgot to use the ``-P, --preview`` arguments. 265 used if you have already started an edition with ``li blog edit`` but forgot to use the ``-P, --preview`` arguments.
252 266
253 example: 267 example
254 -------- 268 -------
255 269
256 Preview the draft at ``~/local/sat/blog/some_name/blog_something.md``:: 270 Preview the draft at ``~/.local/share/libervia/blog/some_name/blog_something.md``::
257 271
258 $ li blog preview ~/local/sat/blog/some_name/blog_something.md 272 $ li blog preview ~/.local/share/libervia/blog/some_name/blog_something.md
259 273
260 .. _libervia-cli_blog_import: 274 .. _libervia-cli_blog_import:
261 275
262 import 276 import
263 ====== 277 ======