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