diff --git a/source/tutorials/gui-programming.rst b/source/tutorials/gui-programming.rst new file mode 100644 index 0000000..3509805 --- /dev/null +++ b/source/tutorials/gui-programming.rst @@ -0,0 +1,10 @@ +GUI Programming +=============== + +.. toctree:: + :maxdepth: 1 + :glob: + + gui-programming/* + GNOME Developer Documenation - Tutorials + elementary OS - Writing Apps diff --git a/source/tutorials/index.rst b/source/tutorials/index.rst index be9783e..9d916f0 100644 --- a/source/tutorials/index.rst +++ b/source/tutorials/index.rst @@ -2,18 +2,7 @@ Tutorials ========== .. toctree:: - :hidden: + :maxdepth: 2 + :glob: - main/index - - -Programming Language --------------------- - -- `Vala Main Tutorial
`_ - -GUI Programming ---------------- - -- `GNOME Developer Documenation - Tutorials `_ -- `elementary OS - Writing Apps `_ + * diff --git a/source/tutorials/programming-language.rst b/source/tutorials/programming-language.rst new file mode 100644 index 0000000..73a9e11 --- /dev/null +++ b/source/tutorials/programming-language.rst @@ -0,0 +1,8 @@ +Programming Language +==================== + +.. toctree:: + :maxdepth: 1 + :glob: + + programming-language/* diff --git a/source/tutorials/main/index.rst b/source/tutorials/programming-language/main.rst similarity index 99% rename from source/tutorials/main/index.rst rename to source/tutorials/programming-language/main.rst index ee09f96..c99c16d 100644 --- a/source/tutorials/main/index.rst +++ b/source/tutorials/programming-language/main.rst @@ -45,4 +45,4 @@ At some point I will add in references to the Vala documentation, but that isn't :maxdepth: 1 :glob: - * + main/* diff --git a/source/tutorials/main/01-00-first-program.rst b/source/tutorials/programming-language/main/01-00-first-program.rst similarity index 97% rename from source/tutorials/main/01-00-first-program.rst rename to source/tutorials/programming-language/main/01-00-first-program.rst index e154cc6..ce79f96 100644 --- a/source/tutorials/main/01-00-first-program.rst +++ b/source/tutorials/programming-language/main/01-00-first-program.rst @@ -64,5 +64,5 @@ Assuming you have Vala installed, then all it takes to compile and execute this *valac* is the Vala compiler, which will compile your Vala code into a binary. The resulting binary will have the same name as the source file and can then be directly executed on the machine. You can probably guess the output. -If you get some warnings from a C language compiler, please jump to :doc:`/tutorials/main/07-00-tools/07-01-valac` for the reason and solution. +If you get some warnings from a C language compiler, please jump to :doc:`07-00-tools/07-01-valac` for the reason and solution. diff --git a/source/tutorials/main/02-00-basics.rst b/source/tutorials/programming-language/main/02-00-basics.rst similarity index 100% rename from source/tutorials/main/02-00-basics.rst rename to source/tutorials/programming-language/main/02-00-basics.rst diff --git a/source/tutorials/main/02-00-basics/02-01-source-files-and-compilation.rst b/source/tutorials/programming-language/main/02-00-basics/02-01-source-files-and-compilation.rst similarity index 100% rename from source/tutorials/main/02-00-basics/02-01-source-files-and-compilation.rst rename to source/tutorials/programming-language/main/02-00-basics/02-01-source-files-and-compilation.rst diff --git a/source/tutorials/main/02-00-basics/02-02-syntax-overview.rst b/source/tutorials/programming-language/main/02-00-basics/02-02-syntax-overview.rst similarity index 100% rename from source/tutorials/main/02-00-basics/02-02-syntax-overview.rst rename to source/tutorials/programming-language/main/02-00-basics/02-02-syntax-overview.rst diff --git a/source/tutorials/main/02-00-basics/02-03-comments.rst b/source/tutorials/programming-language/main/02-00-basics/02-03-comments.rst similarity index 100% rename from source/tutorials/main/02-00-basics/02-03-comments.rst rename to source/tutorials/programming-language/main/02-00-basics/02-03-comments.rst diff --git a/source/tutorials/main/02-00-basics/02-04-data-types.rst b/source/tutorials/programming-language/main/02-00-basics/02-04-data-types.rst similarity index 100% rename from source/tutorials/main/02-00-basics/02-04-data-types.rst rename to source/tutorials/programming-language/main/02-00-basics/02-04-data-types.rst diff --git a/source/tutorials/main/02-00-basics/02-05-operators.rst b/source/tutorials/programming-language/main/02-00-basics/02-05-operators.rst similarity index 100% rename from source/tutorials/main/02-00-basics/02-05-operators.rst rename to source/tutorials/programming-language/main/02-00-basics/02-05-operators.rst diff --git a/source/tutorials/main/02-00-basics/02-06-control-structures.rst b/source/tutorials/programming-language/main/02-00-basics/02-06-control-structures.rst similarity index 100% rename from source/tutorials/main/02-00-basics/02-06-control-structures.rst rename to source/tutorials/programming-language/main/02-00-basics/02-06-control-structures.rst diff --git a/source/tutorials/main/02-00-basics/02-07-language-elements.rst b/source/tutorials/programming-language/main/02-00-basics/02-07-language-elements.rst similarity index 100% rename from source/tutorials/main/02-00-basics/02-07-language-elements.rst rename to source/tutorials/programming-language/main/02-00-basics/02-07-language-elements.rst diff --git a/source/tutorials/main/02-00-basics/02-08-code-attributes.rst b/source/tutorials/programming-language/main/02-00-basics/02-08-code-attributes.rst similarity index 100% rename from source/tutorials/main/02-00-basics/02-08-code-attributes.rst rename to source/tutorials/programming-language/main/02-00-basics/02-08-code-attributes.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-01-basics.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-01-basics.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-01-basics.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-01-basics.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-02-construction.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-02-construction.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-02-construction.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-02-construction.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-03-destruction.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-03-destruction.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-03-destruction.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-03-destruction.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-04-signals.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-04-signals.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-04-signals.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-04-signals.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-05-properties.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-05-properties.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-05-properties.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-05-properties.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-06-inheritance.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-06-inheritance.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-06-inheritance.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-06-inheritance.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-07-abstract-classes.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-07-abstract-classes.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-07-abstract-classes.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-07-abstract-classes.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-08-interfaces.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-08-interfaces.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-08-interfaces.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-08-interfaces.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-09-polymorphism.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-09-polymorphism.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-09-polymorphism.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-09-polymorphism.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-10-method-hiding.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-10-method-hiding.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-10-method-hiding.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-10-method-hiding.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-11-run-time-type-information.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-11-run-time-type-information.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-11-run-time-type-information.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-11-run-time-type-information.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-12-dynamic-type-casting.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-12-dynamic-type-casting.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-12-dynamic-type-casting.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-12-dynamic-type-casting.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-13-generics.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-13-generics.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-13-generics.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-13-generics.rst diff --git a/source/tutorials/main/03-00-object-oriented-programming/03-14-gobject-style-construction.rst b/source/tutorials/programming-language/main/03-00-object-oriented-programming/03-14-gobject-style-construction.rst similarity index 100% rename from source/tutorials/main/03-00-object-oriented-programming/03-14-gobject-style-construction.rst rename to source/tutorials/programming-language/main/03-00-object-oriented-programming/03-14-gobject-style-construction.rst diff --git a/source/tutorials/main/04-00-advanced-features.rst b/source/tutorials/programming-language/main/04-00-advanced-features.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features.rst rename to source/tutorials/programming-language/main/04-00-advanced-features.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-01-assertions-and-contract-programming.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-01-assertions-and-contract-programming.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-01-assertions-and-contract-programming.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-01-assertions-and-contract-programming.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-02-error-handling.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-02-error-handling.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-02-error-handling.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-02-error-handling.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-03-parameter-directions.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-03-parameter-directions.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-03-parameter-directions.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-03-parameter-directions.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-04-collections.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-04-collections.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-04-collections.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-04-collections.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-05-methods-with-syntax-support.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-05-methods-with-syntax-support.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-05-methods-with-syntax-support.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-05-methods-with-syntax-support.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-06-multi-threading.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-06-multi-threading.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-06-multi-threading.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-06-multi-threading.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-07-the-main-loop.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-07-the-main-loop.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-07-the-main-loop.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-07-the-main-loop.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-08-asynchronous-methods.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-08-asynchronous-methods.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-08-asynchronous-methods.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-08-asynchronous-methods.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-09-weak-references.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-09-weak-references.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-09-weak-references.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-09-weak-references.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-10-ownership.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-10-ownership.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-10-ownership.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-10-ownership.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-11-variable-length-argument-lists.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-11-variable-length-argument-lists.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-11-variable-length-argument-lists.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-11-variable-length-argument-lists.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-12-pointers.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-12-pointers.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-12-pointers.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-12-pointers.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-13-non-object-classes.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-13-non-object-classes.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-13-non-object-classes.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-13-non-object-classes.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-14-d-bus-integration.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-14-d-bus-integration.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-14-d-bus-integration.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-14-d-bus-integration.rst diff --git a/source/tutorials/main/04-00-advanced-features/04-15-profiles.rst b/source/tutorials/programming-language/main/04-00-advanced-features/04-15-profiles.rst similarity index 100% rename from source/tutorials/main/04-00-advanced-features/04-15-profiles.rst rename to source/tutorials/programming-language/main/04-00-advanced-features/04-15-profiles.rst diff --git a/source/tutorials/main/05-00-experimental-features.rst b/source/tutorials/programming-language/main/05-00-experimental-features.rst similarity index 100% rename from source/tutorials/main/05-00-experimental-features.rst rename to source/tutorials/programming-language/main/05-00-experimental-features.rst diff --git a/source/tutorials/main/05-00-experimental-features/05-01-chained-relational-expressions.rst b/source/tutorials/programming-language/main/05-00-experimental-features/05-01-chained-relational-expressions.rst similarity index 100% rename from source/tutorials/main/05-00-experimental-features/05-01-chained-relational-expressions.rst rename to source/tutorials/programming-language/main/05-00-experimental-features/05-01-chained-relational-expressions.rst diff --git a/source/tutorials/main/05-00-experimental-features/05-02-regular-expression-literals.rst b/source/tutorials/programming-language/main/05-00-experimental-features/05-02-regular-expression-literals.rst similarity index 100% rename from source/tutorials/main/05-00-experimental-features/05-02-regular-expression-literals.rst rename to source/tutorials/programming-language/main/05-00-experimental-features/05-02-regular-expression-literals.rst diff --git a/source/tutorials/main/05-00-experimental-features/05-03-strict-non-null-mode.rst b/source/tutorials/programming-language/main/05-00-experimental-features/05-03-strict-non-null-mode.rst similarity index 100% rename from source/tutorials/main/05-00-experimental-features/05-03-strict-non-null-mode.rst rename to source/tutorials/programming-language/main/05-00-experimental-features/05-03-strict-non-null-mode.rst diff --git a/source/tutorials/main/06-00-libraries.rst b/source/tutorials/programming-language/main/06-00-libraries.rst similarity index 100% rename from source/tutorials/main/06-00-libraries.rst rename to source/tutorials/programming-language/main/06-00-libraries.rst diff --git a/source/tutorials/main/06-00-libraries/06-01-using-libraries.rst b/source/tutorials/programming-language/main/06-00-libraries/06-01-using-libraries.rst similarity index 100% rename from source/tutorials/main/06-00-libraries/06-01-using-libraries.rst rename to source/tutorials/programming-language/main/06-00-libraries/06-01-using-libraries.rst diff --git a/source/tutorials/main/06-00-libraries/06-02-creating-a-library.rst b/source/tutorials/programming-language/main/06-00-libraries/06-02-creating-a-library.rst similarity index 100% rename from source/tutorials/main/06-00-libraries/06-02-creating-a-library.rst rename to source/tutorials/programming-language/main/06-00-libraries/06-02-creating-a-library.rst diff --git a/source/tutorials/main/06-00-libraries/06-03-binding-libraries-with-vapi-files.rst b/source/tutorials/programming-language/main/06-00-libraries/06-03-binding-libraries-with-vapi-files.rst similarity index 100% rename from source/tutorials/main/06-00-libraries/06-03-binding-libraries-with-vapi-files.rst rename to source/tutorials/programming-language/main/06-00-libraries/06-03-binding-libraries-with-vapi-files.rst diff --git a/source/tutorials/main/07-00-tools.rst b/source/tutorials/programming-language/main/07-00-tools.rst similarity index 100% rename from source/tutorials/main/07-00-tools.rst rename to source/tutorials/programming-language/main/07-00-tools.rst diff --git a/source/tutorials/main/07-00-tools/07-01-valac.rst b/source/tutorials/programming-language/main/07-00-tools/07-01-valac.rst similarity index 84% rename from source/tutorials/main/07-00-tools/07-01-valac.rst rename to source/tutorials/programming-language/main/07-00-tools/07-01-valac.rst index cbadbfc..4de6273 100644 --- a/source/tutorials/main/07-00-tools/07-01-valac.rst +++ b/source/tutorials/programming-language/main/07-00-tools/07-01-valac.rst @@ -8,7 +8,7 @@ Vala has better information than the C compiler, so it knows certain things are Unfortunately we can't just add casts everywhere since there are situations where we can't generate a valid cast (and, what's more, no way to know what those situations are). -For example, compiling the :doc:`Hello World program ` will give us some warnings because ``valac`` by default generates code which is compatible with older versions of the ``GLib``.Some methods may have been deprecated in your new version of GLib so that C language compiler will warn you. +For example, compiling the :doc:`Hello World program ` will give us some warnings because ``valac`` by default generates code which is compatible with older versions of the ``GLib``.Some methods may have been deprecated in your new version of GLib so that C language compiler will warn you. Imagine a machine with older glib version want to run your vala program! diff --git a/source/tutorials/main/07-00-tools/07-02-vapigen.rst b/source/tutorials/programming-language/main/07-00-tools/07-02-vapigen.rst similarity index 100% rename from source/tutorials/main/07-00-tools/07-02-vapigen.rst rename to source/tutorials/programming-language/main/07-00-tools/07-02-vapigen.rst diff --git a/source/tutorials/main/07-00-tools/07-03-vala-gen-introspect.rst b/source/tutorials/programming-language/main/07-00-tools/07-03-vala-gen-introspect.rst similarity index 100% rename from source/tutorials/main/07-00-tools/07-03-vala-gen-introspect.rst rename to source/tutorials/programming-language/main/07-00-tools/07-03-vala-gen-introspect.rst diff --git a/source/tutorials/main/08-00-techniques.rst b/source/tutorials/programming-language/main/08-00-techniques.rst similarity index 100% rename from source/tutorials/main/08-00-techniques.rst rename to source/tutorials/programming-language/main/08-00-techniques.rst diff --git a/source/tutorials/main/08-00-techniques/08-01-debugging.rst b/source/tutorials/programming-language/main/08-00-techniques/08-01-debugging.rst similarity index 100% rename from source/tutorials/main/08-00-techniques/08-01-debugging.rst rename to source/tutorials/programming-language/main/08-00-techniques/08-01-debugging.rst diff --git a/source/tutorials/main/08-00-techniques/08-02-using-glib.rst b/source/tutorials/programming-language/main/08-00-techniques/08-02-using-glib.rst similarity index 100% rename from source/tutorials/main/08-00-techniques/08-02-using-glib.rst rename to source/tutorials/programming-language/main/08-00-techniques/08-02-using-glib.rst