diff --git a/docs/index.rst b/docs/index.rst index 72936fc417..0c7fcc1485 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -18,3 +18,4 @@ Tutorial tutorial_mist.rst tutorial_debug.rst + tutorial_import.rst diff --git a/docs/tuto_basicimport.png b/docs/tuto_basicimport.png new file mode 100644 index 0000000000..81a8009336 Binary files /dev/null and b/docs/tuto_basicimport.png differ diff --git a/docs/tuto_importgit.png b/docs/tuto_importgit.png new file mode 100644 index 0000000000..022eb4b011 Binary files /dev/null and b/docs/tuto_importgit.png differ diff --git a/docs/tuto_importswarm.png b/docs/tuto_importswarm.png new file mode 100644 index 0000000000..01fba3e646 Binary files /dev/null and b/docs/tuto_importswarm.png differ diff --git a/docs/tutorial_import.rst b/docs/tutorial_import.rst new file mode 100644 index 0000000000..dd0bbe7315 --- /dev/null +++ b/docs/tutorial_import.rst @@ -0,0 +1,31 @@ +Using the Solidity ``import`` +======================= + +.. _tutorial-import: + +This tutorial will show how to import local file and external file. + +The compilation result will contain contracts implemented in imported file. + +For a detailed explanation of the ``import`` keyword. see the ``Solidity`` `documentation `_ + +Importing a local file +---------------------- + +That is the common way. + +.. image:: tuto_basicimport.png + +Importing from Github +---------------------- + +.. image:: tuto_importgit.png + +the URL should be like: ``http://github.com///`` + +Importing from Swarm +-------------------- + +.. image:: tuto_importswarm.png + +