Skip to content

Commit

Permalink
Tutorials section dynamic adds pages and creates sections through glo…
Browse files Browse the repository at this point in the history
…bbing
  • Loading branch information
colinkiama committed May 3, 2024
1 parent c4f3a47 commit d224ac1
Show file tree
Hide file tree
Showing 60 changed files with 24 additions and 17 deletions.
10 changes: 10 additions & 0 deletions source/tutorials/gui-programming.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
GUI Programming
===============

.. toctree::
:maxdepth: 1
:glob:

gui-programming/*
GNOME Developer Documenation - Tutorials <https://developer.gnome.org/documentation/tutorials.html>
elementary OS - Writing Apps <https://docs.elementary.io/develop/writing-apps/the-basic-setup>
17 changes: 3 additions & 14 deletions source/tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@ Tutorials
==========

.. toctree::
:hidden:
:maxdepth: 2
:glob:

main/index


Programming Language
--------------------

- `Vala Main Tutorial <main>`_

GUI Programming
---------------

- `GNOME Developer Documenation - Tutorials <https://developer.gnome.org/documentation/tutorials.html>`_
- `elementary OS - Writing Apps <https://docs.elementary.io/develop/writing-apps/the-basic-setup>`_
*
8 changes: 8 additions & 0 deletions source/tutorials/programming-language.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Programming Language
====================

.. toctree::
:maxdepth: 1
:glob:

programming-language/*
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ At some point I will add in references to the Vala documentation, but that isn't
:maxdepth: 1
:glob:

*
main/*
Original file line number Diff line number Diff line change
Expand Up @@ -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.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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 </tutorials/main/01-00-first-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 </../01-00-first-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!

Expand Down
File renamed without changes.

0 comments on commit d224ac1

Please sign in to comment.