Просмотр исходного кода

Move snippets.md docs to its own directory

Sage Abdullah 1 год назад
Родитель
Сommit
939b14b33c
3 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      docs/index.rst
  2. 1 1
      docs/topics/index.md
  3. 1 1
      docs/topics/snippets/index.md

+ 1 - 0
docs/index.rst

@@ -21,6 +21,7 @@ If you'd like to get a quick feel for Wagtail, try spinning up a `temporary deve
   * :doc:`topics/writing_templates`
   * :doc:`topics/images`
   * :doc:`topics/search/index`
+  * :doc:`topics/snippets/index`
   * :doc:`advanced_topics/third_party_tutorials`
 
 

+ 1 - 1
docs/topics/index.md

@@ -9,7 +9,7 @@ pages
 writing_templates
 images
 search/index
-snippets
+snippets/index
 streamfield
 permissions
 ```

+ 1 - 1
docs/topics/snippets.md → docs/topics/snippets/index.md

@@ -439,7 +439,7 @@ If you use the other mixins, make sure to apply `LockableMixin` after the other
 
 The `LockableMixin` includes additional fields that need to be added to your database table. Make sure to run the `makemigrations` and `migrate` management commands after making the above changes to apply the changes to your database.
 
-Locking and unlocking a snippet instance requires `lock` and `unlock` permissions on the snippet model, respectively. For models with `LockableMixin` applied, Wagtail automatically creates the corresponding `lock` and `unlock` permissions and display them in the 'Groups' area of the Wagtail admin interface. For more details on how to configure the permission, see [](permissions).
+Locking and unlocking a snippet instance requires `lock` and `unlock` permissions on the snippet model, respectively. For models with `LockableMixin` applied, Wagtail automatically creates the corresponding `lock` and `unlock` permissions and display them in the 'Groups' area of the Wagtail admin interface. For more details on how to configure the permission, see [](permissions_overview).
 
 (wagtailsnippets_enabling_workflows)=