@@ -58,96 +58,6 @@ Make sure that `Docker <https://www.docker.com/>`__ is installed on your system.
5858
5959.. include :: /_Includes/_LocalRendering.rst.txt
6060
61- .. _rendering-wysiwyg :
62-
63- Rendering with more WYSIWYG-feeling (automatic re-rendering)
64- ------------------------------------------------------------
65-
66- You want to write complex `reST ` markup and directly see the
67- rendered output, browser side-by-side with your editor? Then
68- this section is for you!
69-
70- Often, especially in the later stages of creating documentation, you
71- just edit small parts of the reST files, render the outcome manually
72- and happily commit your changes.
73-
74- However, in cases you write larger sections of text, you may want
75- to get more immediate visual feedback on your changes, but do not
76- want to manually trigger the rendering time and again.
77-
78- To make this easier, the project `garvinhicking/typo3-documentation-browsersync
79- <https://github.com/garvinhicking/typo3-documentation-browsersync> `__
80- has been created. This docker container solution provides an environment
81- which permanently watches changes to any of the reST files and automatically
82- triggers a re-rendering. The generated HTML output is then served with a
83- local web server (vite-based) in which your browser automatically hot-reloads
84- all changes and keeps the scroll position.
85-
86- This allows you to have a browser window next to your reST file editor
87- to view progress.
88-
89- Since that whole environment is based on the official
90- :ref: `TYPO3 documentation rendering container <t3renderguides:start >`
91- and utilizes a docker container, it is simple to use. Also, all updates
92- to the `render-guides ` project are automatically merged into that
93- project, so all bugfixes and new features of the PHP-based rendering always
94- are in sync with this WYSIWYG-project, with a possibility of this becoming
95- a regular TYPO3-documentation project (given positive feedback).
96-
97- The project itself has `documentation on the technical details
98- <https://github.com/garvinhicking/typo3-documentation-browsersync/blob/main/README.md> `__
99- but all you need is this docker/podman command:
100-
101- .. tabs ::
102-
103- .. group-tab :: Linux
104-
105- .. code-block :: bash
106-
107- docker run --rm -it --pull always \
108- -v " ./Documentation:/project/Documentation" \
109- -v " ./Documentation-GENERATED-temp:/project/Documentation-GENERATED-temp" \
110- -p 5173:5173 ghcr.io/garvinhicking/typo3-documentation-browsersync:latest
111- xdg-open " http://localhost:5173/Documentation-GENERATED-temp/Index.html"
112-
113- .. group-tab :: MacOS
114-
115- .. code-block :: bash
116-
117- docker run --rm -it --pull always \
118- -v " ./Documentation:/project/Documentation" \
119- -v " ./Documentation-GENERATED-temp:/project/Documentation-GENERATED-temp" \
120- -p 5173:5173 ghcr.io/garvinhicking/typo3-documentation-browsersync:latest
121- open " http://localhost:5173/Documentation-GENERATED-temp/Index.html"
122-
123- .. group-tab :: Windows
124-
125- .. code-block :: powershell
126-
127- docker run -- rm - it -- pull always \
128- - v " ./Documentation:/project/Documentation" \
129- - v " ./Documentation-GENERATED-temp:/project/Documentation-GENERATED-temp" \
130- - p 5173 :5173 ghcr.io/ garvinhicking/ typo3- documentation- browsersync:latest
131- start " http://localhost:5173/Documentation-GENERATED-temp/Index.html"
132-
133- The command above can also be added to your project's `Makefile ` or
134- you can create a bash alias like:
135-
136- .. code :: bash
137-
138- alias render-wysiwyg=" docker run --rm -it --pull always \
139- -v './Documentation:/project/Documentation' \
140- -v './Documentation-GENERATED-temp:/project/Documentation-GENERATED-temp' \
141- -p 5173:5173 ghcr.io/garvinhicking/typo3-documentation-browsersync:latest'"
142-
143- .. note ::
144-
145- If anything on your host operating system already utilizes the TCP port
146- `5173 ` you need to adapt that command to use another free TCP port for you,
147- and adapt the port in the web-browser URL.
148-
149- .. _publish-documentation :
150-
15161Publishing extension documentation to docs.typo3.org
15262====================================================
15363
@@ -213,3 +123,8 @@ documentation automatically:
213123 - mkdir -p Documentation-GENERATED-temp
214124 - /opt/guides/entrypoint.sh --config=Documentation --no-progress --minimal-test
215125
126+ .. toctree ::
127+ :maxdepth: 1
128+ :hidden:
129+
130+ Watch
0 commit comments