Commit 5b6441fa authored by Tristan Van Berkom's avatar Tristan Van Berkom

doc: Use consistent titles when referring to files in an example project

Use the following form across the board:


  .. literalinclude:: ../path/to/foo.bst
     :language: yaml

Always use an example project relative path, too.
parent 48b4cb5c
Pipeline #24108260 canceled with stages
in 5 minutes and 2 seconds
......@@ -18,8 +18,8 @@ Project structure
The following is a simple :ref:`project <projectconf>` definition:
.. literalinclude:: ../../examples/flatpak-autotools/project.conf
......@@ -34,8 +34,8 @@ Note that we've added a :ref:`source alias <project_source_aliases>` for
the ```` repository to download the SDK from.
This is the :mod:`import <elements.import>` element used to import the
actual Flatpak SDK, it uses an :mod:`ostree <sources.ostree>` source to
download the Flatpak since these are hosted in OSTree repositories.
......@@ -66,8 +66,8 @@ it's important to note two things:
with the appropriate symlinks setup from ``/``.
This is another :mod:`import <elements.import>` element, and it uses
the :mod:`local <sources.local>` source type so that we can stage files
literally stored in the same repository as the project.
......@@ -84,8 +84,8 @@ As suggested by the ``.bst`` file, the symlinks themselves are a part
of the project and they are stored in the ``files/links`` directory.
This is just a :mod:`stack <elements.stack>` element for convenience sake.
.. literalinclude:: ../../examples/flatpak-autotools/elements/base.bst
......@@ -97,8 +97,8 @@ your elements to depend on without needing to know about the inner workings
of the base system build.
Finally, we show an example of an :mod:`autotools <elements.autotools>` element
to build our sample "Hello World" program.
......@@ -23,8 +23,12 @@ command to create a little project structure:
.. raw:: html
:file: ../sessions/first-project-init.html
This will give you a :ref:`project.conf <projectconf>` which will look like this:
.. literalinclude:: ../../examples/first-project/project.conf
:language: yaml
......@@ -49,6 +53,10 @@ which will import the ```` file we've created in the previous step.
Create ``elements/hello.bst`` with the following content:
.. literalinclude:: ../../examples/first-project/elements/hello.bst
:language: yaml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment