瀏覽代碼

Move tutorial ZIPs to a dedicated repository

Yuri Sizov 2 年之前
父節點
當前提交
0606a8ed38

+ 21 - 5
contributing/documentation/contributing_to_the_documentation.rst

@@ -165,15 +165,31 @@ a meaningful name and include them in your page with:
 
 .. code:: rst
 
-   .. image:: img/image_name.png
+   .. image:: img/image_name.webp
 
-Similarly, you can include attachments, like assets as support material for a
-tutorial, by placing them into a ``files/`` folder next to the ``.rst`` file, and
-using this inline markup:
+Alternatively, you can use the `figure` directive, which gives the image a contrasting
+border and allows centering it on the page.
 
 .. code:: rst
 
-   :download:`myfilename.zip <files/myfilename.zip>`
+    .. figure:: img/image_name.webp
+        :align: center
+
+You can also include attachments as support material for a tutorial, by placing them
+into a ``files/`` folder next to the ``.rst`` file, and using this inline markup:
+
+.. code:: rst
+
+   :download:`file_name.zip <files/file_name.zip>`
+
+Consider using the `godot-docs-project-starters <https://github.com/godotengine/godot-docs-project-starters>`
+repository for hosting support materials, such as project templates and asset packs.
+You can use a direct link to the generated archive from that repository with the regular
+link markup:
+
+.. code:: rst
+
+   `file_name.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/file_name.zip>`_
 
 
 License

+ 2 - 2
getting_started/first_2d_game/01.project_setup.rst

@@ -12,14 +12,14 @@ Launch Godot and create a new project.
 .. tabs::
  .. tab:: GDScript
 
-    Download :download:`dodge_assets.zip <files/dodge_assets.zip>`.
+    Download `dodge_the_creeps_2d_assets.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/dodge_the_creeps_2d_assets.zip>`_.
     The archive contains the images and sounds you'll be using
     to make the game. Extract the archive and move the ``art/``
     and ``fonts/`` directories to your project's directory.
 
  .. tab:: C#
 
-    Download :download:`dodge_assets.zip <files/dodge_assets.zip>`.
+    Download `dodge_the_creeps_2d_assets.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/dodge_the_creeps_2d_assets.zip>`_.
     The archive contains the images and sounds you'll be using
     to make the game. Extract the archive and move the ``art/``
     and ``fonts/`` directories to your project's directory.

二進制
getting_started/first_2d_game/files/dodge_assets.zip


+ 2 - 2
getting_started/first_2d_game/index.rst

@@ -17,7 +17,7 @@ a 2D game.
           programming entirely, you should start here: :ref:`doc_scripting`.
 
 The game is called "Dodge the Creeps!". Your character must move and avoid the
-enemies for as long as possible. 
+enemies for as long as possible.
 
 You will learn to:
 
@@ -57,7 +57,7 @@ the code.
 
 You can download them by clicking the link below.
 
-:download:`dodge_assets.zip <files/dodge_assets.zip>`.
+`dodge_the_creeps_2d_assets.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/dodge_the_creeps_2d_assets.zip>`_.
 
 Contents
 --------

二進制
getting_started/step_by_step/files/instancing.zip


二進制
getting_started/step_by_step/files/pong_assets.zip


+ 1 - 1
getting_started/step_by_step/instancing.rst

@@ -42,7 +42,7 @@ In practice
 
 Let's use instancing in practice to see how it works in Godot. We invite
 you to download the ball's sample project we prepared for you:
-:download:`instancing.zip <files/instancing.zip>`.
+`instancing_starter.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/instancing_starter.zip>`_.
 
 Extract the archive on your computer. To import it, you need the Project Manager.
 The Project Manager is accessed by opening Godot, or if you already have Godot opened, click on *Project -> Quit to Project List* (:kbd:`Ctrl + Shift + Q`, :kbd:`Ctrl + Option + Cmd + B` on macOS)

+ 1 - 1
tutorials/2d/2d_movement.rst

@@ -289,4 +289,4 @@ You may find these code samples useful as starting points for your own projects.
 Feel free to use them and experiment with them to see what you can make.
 
 You can download this sample project here:
-:download:`2D_movement_demo.zip <files/2D_movement_demo.zip>`
+`2d_movement_starter.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/2d_movement_starter.zip>`_

+ 1 - 1
tutorials/2d/2d_sprite_animation.rst

@@ -28,7 +28,7 @@ animation:
 .. image:: img/2d_animation_run_preview.gif
 
 You can download the images here:
-:download:`run_animation.zip <files/run_animation.zip>`
+`2d_sprite_animation_assets.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/2d_sprite_animation_assets.zip>`_
 
 Unzip the images and place them in your project folder. Set up your scene tree
 with the following nodes:

二進制
tutorials/2d/files/2D_movement_demo.zip


二進制
tutorials/2d/files/run_animation.zip


二進制
tutorials/3d/files/gridmap_demo.zip


+ 1 - 1
tutorials/3d/using_gridmaps.rst

@@ -19,7 +19,7 @@ Example project
 ---------------
 
 To learn how GridMaps work, start by downloading the sample project:
-:download:`gridmap_demo.zip <files/gridmap_demo.zip>`.
+`gridmap_starter.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/gridmap_starter.zip>`_.
 
 Unzip this project and add it to the Project Manager using the "Import"
 button.

+ 2 - 1
tutorials/animation/cutout_animation.rst

@@ -59,7 +59,8 @@ character, created by Andreas Esau.
 
 .. image:: img/tuto_cutout_walk.gif
 
-Get your assets: :download:`gbot_resources.zip <files/gbot_resources.zip>`.
+Get your assets:
+`cutout_animation_assets.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/cutout_animation_assets.zip>`_.
 
 Setting up the rig
 ~~~~~~~~~~~~~~~~~~

二進制
tutorials/animation/files/gbot_resources.zip


二進制
tutorials/physics/files/kbscene.zip


二進制
tutorials/physics/files/using_area_2d.zip


二進制
tutorials/physics/files/using_kinematic2d.zip


+ 3 - 2
tutorials/physics/kinematic_character_2d.rst

@@ -77,8 +77,9 @@ Scene setup
 ~~~~~~~~~~~
 
 To have something to test, here's the scene (from the tilemap tutorial):
-:download:`kbscene.zip <files/kbscene.zip>`. We'll be creating a new scene
-for the character. Use the robot sprite and create a scene like this:
+`kinematic_character_2d_starter.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/kinematic_character_2d_starter.zip>`_.
+We'll be creating a new scene for the character. Use the robot sprite and
+create a scene like this:
 
 .. image:: img/kbscene.png
 

+ 1 - 1
tutorials/physics/using_area_2d.rst

@@ -139,4 +139,4 @@ override.
 .. image:: img/area2d_override.gif
 
 You can download this project here:
-:download:`using_area_2d.zip <files/using_area_2d.zip>`
+`area_2d_starter.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/area_2d_starter.zip>`_

+ 1 - 1
tutorials/physics/using_character_body_2d.rst

@@ -218,7 +218,7 @@ Examples
 --------
 
 To see these examples in action, download the sample project:
-:download:`using_kinematic2d.zip <files/using_kinematic2d.zip>`.
+`character_body_2d_starter.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/character_body_2d_starter.zip>`_
 
 Movement and walls
 ~~~~~~~~~~~~~~~~~~

二進制
tutorials/scripting/files/autoload.zip


+ 2 - 1
tutorials/scripting/singletons_autoload.rst

@@ -120,7 +120,8 @@ method (see :ref:`doc_scene_tree` for details). However, if you need more
 complex behavior when changing scenes, this method provides more functionality.
 
 To begin, download the template from here:
-:download:`autoload.zip <files/autoload.zip>` and open it in Godot.
+`singleton_autoload_starter.zip <https://github.com/godotengine/godot-docs-project-starters/releases/download/latest-4.x/singleton_autoload_starter.zip>`_
+and open it in Godot.
 
 The project contains two scenes: ``Scene1.tscn`` and ``Scene2.tscn``. Each
 scene contains a label displaying the scene name and a button with its