Skip to content

Commit

Permalink
[TASK] Create reference section in the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Jul 28, 2024
1 parent 84a6e86 commit d2ece6e
Show file tree
Hide file tree
Showing 54 changed files with 54 additions and 31 deletions.
2 changes: 0 additions & 2 deletions Documentation/GeneralConventions/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ be found in the subchapters.
ReviewPolicy
ContentStyleGuide
Glossary
FileStructure
GuidesXml
Format
CodingGuidelines
GuidelinesForImages
Expand Down
9 changes: 9 additions & 0 deletions Documentation/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ reStructuredText (reST).
GeneralConventions/Index
WritingReST/Index


.. toctree::
:hidden:
:caption: REFERENCE
:glob:

Reference/*
Reference/ReStructuredText/Index

.. toctree::
:hidden:
:caption: HOWTOS
Expand Down
14 changes: 14 additions & 0 deletions Documentation/Reference/DockerRendering.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.. include:: /Includes.rst.txt

.. _rendering:

===================
Rendering container
===================

For local rendering you can use the following command in the directory that
contains the :path:`Documentation` folder:

.. include:: /_Includes/_LocalRendering.rst.txt

.. todo: Document rendering container options here
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
:navigation-title: reStructuredText

.. include:: /Includes.rst.txt
.. index:: reST; Reference
.. _rest-reference:

===========================
Reference: reStructuredText
===========================
==========================
reStructuredText Reference
==========================

.. toctree::
:titlesonly:
Expand Down
File renamed without changes.
26 changes: 1 addition & 25 deletions Documentation/RenderingDocs/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,7 @@ Make sure that `Docker <https://www.docker.com/>`__ is installed on your system.
the mentioned containers by replacing all :bash:`docker` commands in the
following steps with :bash:`podman`.

.. tabs::

.. group-tab:: Linux

.. code-block:: bash
mkdir -p Documentation-GENERATED-temp
docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
xdg-open "Documentation-GENERATED-temp/Index.html"
.. group-tab:: MacOS

.. code-block:: bash
mkdir -p Documentation-GENERATED-temp
docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
open "Documentation-GENERATED-temp/Index.html"
.. group-tab:: Windows

.. code-block:: powershell
New-Item -ItemType Directory -Force -Path ".\Documentation-GENERATED-temp"
docker run --rm --pull always -v ${PWD}:/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
start "Documentation-GENERATED-temp/Index.html"
.. include:: /_Includes/_LocalRendering.rst.txt

.. _rendering-wysiwyg:

Expand Down
1 change: 0 additions & 1 deletion Documentation/WritingReST/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ available. For more information, see other resources, such as:
Introduction
BasicRestSyntax
CheatSheet
Reference/Index
25 changes: 25 additions & 0 deletions Documentation/_Includes/_LocalRendering.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.. tabs::

.. group-tab:: Linux

.. code-block:: bash
mkdir -p Documentation-GENERATED-temp
docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
xdg-open "Documentation-GENERATED-temp/Index.html"
.. group-tab:: MacOS

.. code-block:: bash
mkdir -p Documentation-GENERATED-temp
docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
open "Documentation-GENERATED-temp/Index.html"
.. group-tab:: Windows

.. code-block:: powershell
New-Item -ItemType Directory -Force -Path ".\Documentation-GENERATED-temp"
docker run --rm --pull always -v ${PWD}:/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
start "Documentation-GENERATED-temp/Index.html"

0 comments on commit d2ece6e

Please sign in to comment.