Benoît Allard  committed 8ac171c

Add doc about the `page` rst role

  • Participants
  • Parent commits 01d423f

Comments (0)

Files changed (1)

File docs/write.rst

 This directive will just show the files from the root of the directory. It's not recursive.
+Interpreted Text Role ``page``
+Interpreted Text Role that generates a link to the given page. The
+text displayed is by default the title of the linked page. You can
+replace it by a custom title using this syntax: ``:page:`Link title
+Usage example:
+.. code-block:: rest
+    This is the :page:`posts/my-first-blog-post`
+    This is my :page:`Introduction Post <posts/my-first-blog-post>`
 Previewing your post/page