Use this repository and :code:docker build
to build the TYPO3 official Docker
image :code:t3docs/render-documentation
for rendering TYPO3 documentation <https://docs.typo3.org/>
. You may as well skip building and use ready
made containers from ghcr.io <https://ghcr.io/>
.
What for?
TYPO3 uses plain UTF-8 text files with reStructuredText (reST) markup
for documentation. Such documentation is readable by itself to some extend.
However, the Sphinx documentation tool <https://www.sphinx-doc.org/>
__ is used to produce the final html result.
This DRC bundles everything that's needed for generating the final
documentation. All it takes is a simple command at the command line.
However, having Docker installed is a requirement.
:Repository: https://github.com/t3docs/docker-render-documentation
:Branches: "main" for image tagged "latest", "develop" for image
tagged "develop"
:Releases: See Releases <https://github.com/t3docs/docker-render-documentation/releases>
for more tags
:Version: See VERSION.txt <VERSION.txt>
:Authors: TYPO3 Documentation Team
:Main caretaker: Martin Bless martin.bless@mbless.de
:License: MIT
Docker is required on your machine. You can use Linux-like systems like Mac, Linux, WSL2.
Windows with Docker installed (no WSL2) is also possible. Important: Use the older
:code:command line
window and NOT Powershell.
At the command line::
docker pull ghcr.io/t3docs/render-documentation[:tag]
docker tag ghcr.io/t3docs/render-documentation[:tag] ghcr.io/t3docs/render-documentation[:tag]
docker run --rm t3docs/render-documentation[:tag] docker run --rm t3docs/render-documentation[:tag] --help docker run --rm t3docs/render-documentation[:tag] --version docker run --rm t3docs/render-documentation[:tag] show-shell-commands
dockrun_t3rd
eval "$(docker run --rm t3docs/render-documentation[:tag] show-shell-commands)"
docker run --rm t3docs/render-documentation[:tag] show-windows-bat > dockrun_t3rd.bat
To update to a newer container version just repeat these steps.
Open terminal window
Prepare::
eval "$(docker run --rm t3docs/render-documentation[:tag] show-shell-commands)"
Verify::
dockrun_t3rd --help
Render documentation::
cd PROJECT
dockrun_t3rd makehtml
Find rendering results in :code:PROJECT/Documentation-GENERATED-temp
Optionally, try these examples::
T3DOCS_DEBUG=1 dockrun_t3rd T3DOCS_DEBUG=1 dockrun_t3rd makehtml T3DOCS_DEBUG=1 dockrun_t3rd makehtml-no-cache -c make_singlehtml 1
The T3DocsRenderingContainer (Draft) <https://docs.typo3.org/m/typo3/T3DocsRenderingContainer/draft/en-us/>
__
Release notes and What's new? <https://docs.typo3.org/m/typo3/T3DocsRenderingContainer/draft/en-us/Whatsnew/Index.html>
__
What markup can you use?
The DRC bundles the Sphinx tool, Sphinx extensions, a Sphinx TYPO3 theme, a toolchain and some
logic and user interface components. We are using a "stress test" demonstration manual (GitHub repository <https://github.com/TYPO3-Documentation/sphinx_typo3_theme_rendering_test>
)
to test that everything works as expected.
Check the rendering result Sphinx TYPO3 Theme Rendering Test <https://typo3-documentation.github.io/sphinx_typo3_theme_rendering_test/>
of this repository to find out what markup you can use and how it will look like when rendered.
Contributions are always welcome! Please use
GitHub issues <https://github.com/t3docs/docker-render-documentation/issues>
or
GitHub pull requests <https://github.com/t3docs/docker-render-documentation/pulls>
.
Enjoy!