Mercurial > libervia-backend
comparison doc/libervia-cli/blog.rst @ 3563:267e4987b58b
doc: fix remaining SàT references/typos + add `libervia-cli` missing commands
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 Jun 2021 09:21:41 +0200 |
parents | 0985c47ffd96 |
children | 76fb0739cc9c |
comparison
equal
deleted
inserted
replaced
3562:9f599ccbea4e | 3563:267e4987b58b |
---|---|
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 ====== |