Skip to content

Commit

Permalink
[TASK] Improve menu structure and navigation titles
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Jul 28, 2024
1 parent caa4058 commit db2495d
Show file tree
Hide file tree
Showing 110 changed files with 116 additions and 104 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Example:
.. code-block:: rst
:linenos:
.. image:: /Images/a4.jpg
.. image:: /_Images/a4.jpg
:alt: Left floating image
:target: https://typo3.org
:class: with-shadow
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ To get the icons
----------------

Either download the zipfile and extract it.
You can find the download link on https://github.com/TYPO3-Documentation/Images,
You can find the download link on https://github.com/TYPO3-Documentation/_Images,

Or clone the repository:

.. code-block:: bash
git clone https://github.com/TYPO3-Documentation/Images
git clone https://github.com/TYPO3-Documentation/_Images
The icons will be in images/final/icons.
Expand Down Expand Up @@ -168,7 +168,7 @@ Examples

SVG image with rectangles and numbers

.. figure:: /Images/edit_me_on_github+shadow.svg
.. figure:: /_Images/edit_me_on_github+shadow.svg
:class: with-shadow
:alt: Image with arrow

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ example:

.. group-tab:: With placeholders

.. include:: /CodeSnippets/FileStructure/ReadmeRst.rst.txt
.. include:: /_CodeSnippets/FileStructure/ReadmeRst.rst.txt

.. group-tab:: Third-party extension

.. include:: /CodeSnippets/FileStructure/Examples/IndexRst.rst.txt
.. include:: /_CodeSnippets/FileStructure/Examples/IndexRst.rst.txt

.. group-tab:: System extension

.. include:: /CodeSnippets/FileStructure/Dashboard/IndexRst.rst.txt
.. include:: /_CodeSnippets/FileStructure/Dashboard/IndexRst.rst.txt

.. group-tab:: Official manual

.. include:: /CodeSnippets/FileStructure/GettingStarted/IndexRst.rst.txt
.. include:: /_CodeSnippets/FileStructure/GettingStarted/IndexRst.rst.txt

.. group-tab:: Markdown

.. include:: /CodeSnippets/FileStructure/ReadmeMd.rst.txt
.. include:: /_CodeSnippets/FileStructure/ReadmeMd.rst.txt


.. _readme-rst-badges:
Expand All @@ -50,11 +50,11 @@ monthly download rate and the supported TYPO3 versions:

.. group-tab:: reStructured Text

.. include:: /CodeSnippets/FileStructure/Badges.rst.txt
.. include:: /_CodeSnippets/FileStructure/Badges.rst.txt

.. group-tab:: Markdown

.. include:: /CodeSnippets/FileStructure/BadgesMd.rst.txt
.. include:: /_CodeSnippets/FileStructure/BadgesMd.rst.txt


Remove this field if the project is no extension or package.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:navigation-title: Help

.. include:: /Includes.rst.txt

.. _docs-official-how-you-can-help:
Expand Down Expand Up @@ -130,7 +132,7 @@ Here are some examples:

* :ref:`Check out sequence diagram on new page about request handling <t3coreapi:request-handling>`

.. figure:: /Images/diagram.png
.. figure:: /_Images/diagram.png
:alt: Example of a sequence diagram about request handling
:class: with-shadow

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:navigation-title: Contribute

.. include:: /Includes.rst.txt
.. index:: Official documentation
.. _contribute:
Expand Down Expand Up @@ -50,9 +52,8 @@ There are two different ways in which you can make your changes before submittin
:ref:`docs-contribute-git-docker`


.. toctree::
:hidden:
.. toctree::
:hidden:
:glob:

GithubMethod
LocalEditing
HowYouCanHelp
*
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:navigation-title: Edit Locally

.. include:: /Includes.rst.txt
.. index:: Official documentation; Local editing
.. _docs-contribute-git-docker:
Expand Down Expand Up @@ -28,7 +30,7 @@ the ability to experiment and preview your changes locally before submitting the

From here, select the "Fork" button in the upper right corner of the page.

.. image:: /Images/github-fork.png
.. image:: /_Images/github-fork.png
:class: with-shadow

3. Clone the forked repository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:navigation-title: Edit on GitHub

.. include:: /Includes.rst.txt
.. index:: pair: Official documentation; "Edit on GitHub"
.. _docs-contribute-github-method:
Expand Down Expand Up @@ -28,15 +30,15 @@ Workflow #1: "Edit on GitHub"
At the top right of every page you will find an icon that says "Edit me on Github".
Selecting this link will take you to that pages repository on GitHub.

.. image:: /Images/edit_me_on_github.png
.. image:: /_Images/edit_me_on_github.png
:class: with-border with-shadow

4. Fork the repository:

Click on the green button to fork the repository. This will clone the repository
into your GitHub account, ready for you to make your changes in your browser.

.. image:: /Images/github-edit-fork.png
.. image:: /_Images/github-edit-fork.png
:class: with-border with-shadow

5. Make your changes:
Expand All @@ -45,7 +47,7 @@ Workflow #1: "Edit on GitHub"
The *"Indent mode: Spaces"* and *"Indent size: 4"*
values should already be set - do not alter these.

.. image:: /Images/github-edit-window.png
.. image:: /_Images/github-edit-window.png
:class: with-border with-shadow


Expand All @@ -61,7 +63,7 @@ Workflow #1: "Edit on GitHub"

You can go back and make further changes at any time, select the Edit file tab to continue editing.

.. image:: /Images/github-edit-preview.png
.. image:: /_Images/github-edit-preview.png
:class: with-border with-shadow

8. Finalize your changes:
Expand All @@ -70,20 +72,20 @@ Workflow #1: "Edit on GitHub"
a short (but meaningful) description that outlines the changes you have made and click "Propose
file change"

.. image:: /Images/github-propose-file-changes.png
.. image:: /_Images/github-propose-file-changes.png
:class: with-border with-shadow

9. Create pull request:

GitHub will show you an overview of your changes. If you are happy with
them, select "Create pull request".

.. image:: /Images/github-comparing-changes.png
.. image:: /_Images/github-comparing-changes.png
:class: with-border with-shadow

Finally, create your pull request:

.. image:: /Images/github-create-pull-request2.png
.. image:: /_Images/github-create-pull-request2.png
:class: with-border with-shadow

10. You're done!
Expand All @@ -108,13 +110,13 @@ See `June 2018: Developer Appreciation Day
for an example.


.. image:: /Images/dad-with-image.png
.. image:: /_Images/dad-with-image.png
:target: https://typo3.com/blog/june-2018-developer-appreciation-day-dad/?utm_medium=TYPO3%2BBlog&utm_source=Blog%2BPost%2B-%2BJune%2B2018%3A%2BDeveloper%2BAppreciation%2BDay%2B%28DAD%29
:class: with-border with-shadow

Scroll down to "Improving documentation":

.. image:: /Images/dad-improve-docs.png
.. image:: /_Images/dad-improve-docs.png
:target: https://typo3.com/blog/june-2018-developer-appreciation-day-dad/?utm_medium=TYPO3%2BBlog&utm_source=Blog%2BPost%2B-%2BJune%2B2018%3A%2BDeveloper%2BAppreciation%2BDay%2B%28DAD%29
:class: with-border with-shadow

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:navigation-title: Migrate

.. include:: /Includes.rst.txt
.. index::
Documentation; Migration
Expand Down Expand Up @@ -323,7 +325,7 @@ The link is leading to
We have to click the symbol next to the heading and copy the correct link
which is the one for restructured text

.. image:: /Images/get_link.png
.. image:: /_Images/get_link.png
:class: with-shadow
:width: 600px

Expand All @@ -348,7 +350,7 @@ https://github.com/TYPO3-Documentation/render-guides/blob/main/Makefile

A small example :file:`Makefile`:

.. literalinclude:: /CodeSnippets/_Makefile
.. literalinclude:: /_CodeSnippets/_Makefile
:language: plaintext
:caption: Makefile

Expand Down Expand Up @@ -376,7 +378,7 @@ ensure the extension's documentation renders without warnings.
An example workflow on GitHub would be established via this file in
:file:`.github/workflows/documentation.yml`:

.. literalinclude:: /CodeSnippets/_documentation.yml
.. literalinclude:: /_CodeSnippets/_documentation.yml
:caption: .github/workflows/documentation.yml


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:navigation-title: Render

.. include:: /Includes.rst.txt
.. Index::
pair: Documentation; Rendering
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ see :ref:`overview-of-types`.
comment in your pull request with information about where to find your patch
on Gerrit.

.. image:: /Images/github-gerrit.png
.. image:: /_Images/github-gerrit.png
:class: with-shadow
:target: https://github.com/typo3/typo3/pull/172#issuecomment-494721296

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ Method 2: Find the Source on https://extensions.typo3.org
3. Select the extension


.. image:: /Images/ter_news2.png
.. image:: /_Images/ter_news2.png
:alt: Link: Show manual
:target: https://extensions.typo3.org/?L=0&id=1&tx_solr%5Bq%5D=news
:class: with-shadow
:width: 600px

4. Click take a look in the code

.. image:: /Images/take-a-look-in-the-code.png
.. image:: /_Images/take-a-look-in-the-code.png
:alt: Link: Take a look in the code
:target: https://github.com/georgringer/news
:class: with-shadow
Expand Down Expand Up @@ -101,7 +101,7 @@ Method 2: Find rendered manual on https://extensions.typo3.org

3. Click on "Show Manual"

.. image:: /Images/ter_news.png
.. image:: /_Images/ter_news.png
:alt: Link: Show manual
:target: https://docs.typo3.org/typo3cms/extensions/news/
:class: with-shadow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If you are missing documentation for some extension versions we have a
Why Does the Documentation not provide a title?
===============================================

.. image:: /Images/missing-title.png
.. image:: /_Images/missing-title.png
:class: with-shadow

Refer to :ref:`migrate` in order to fix this issue.
Expand Down Expand Up @@ -175,7 +175,7 @@ How do I get an "Edit on GitHub" button?
Why might you want an "Edit on GitHub" button on the rendered pages
of your extension documentation?

.. figure:: /Images/edit_me_on_github+shadow.svg
.. figure:: /_Images/edit_me_on_github+shadow.svg
:class: with-shadow
:alt: "Edit on GitHub" button

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:navigation-title: Document extensions

.. include:: /Includes.rst.txt
.. index:: Documentation; Extension
.. _writing-doc-for-ext-start:
Expand Down
Loading

0 comments on commit db2495d

Please sign in to comment.