-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOC] Migrate to TYPO3 documentation rendering
- Loading branch information
Showing
24 changed files
with
616 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
/.php-cs-fixer.cache | ||
/var | ||
/Build/Testing/.phpunit.cache | ||
/Documentation-GENERATED-temp | ||
/fluidDocumentationOutput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "ViteAssetCollector", | ||
"namespaceAlias": "vite", | ||
"targetNamespace": "http://typo3.org/ns/Praetorius/ViteAssetCollector/ViewHelpers" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
.. _configuration: | ||
|
||
============= | ||
Configuration | ||
============= | ||
|
||
If you use the default setup, no configuration should be necessary. | ||
However, you can customize almost everything to create your individual | ||
development setup. | ||
|
||
.. _configuration-devserver: | ||
|
||
Adjust vite dev server | ||
====================== | ||
|
||
The extension has two configuration options to setup the vite dev server. | ||
By default, both are set to `auto`, which means: | ||
|
||
* Dev server will only be used in `Development` context | ||
* Dev server uri will be determined automatically for environments with | ||
`vite-serve for DDEV <https://github.com/torenware/ddev-viteserve>`__ set up | ||
|
||
You can adjust both options in your :php:`$TYPO3_CONF_VARS`, for example: | ||
|
||
.. code-block:: php | ||
:caption: config/system/additional.php | ||
// Setup vite dev server based on configuration in .env file | ||
// TYPO3_VITE_DEV_SERVER='https://localhost:1234' | ||
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['vite_asset_collector']['useDevServer'] = (bool) getenv('TYPO3_VITE_DEV_SERVER'); | ||
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['vite_asset_collector']['devServerUri'] = (string) getenv('TYPO3_VITE_DEV_SERVER'); | ||
.. _configuration-manifest: | ||
|
||
Change location of manifest.json | ||
================================ | ||
|
||
You can specify the path to vite's `manifest.json` in the extension configuration. | ||
By default, this is set to `_assets/vite/.vite/manifest.json`, so it will run | ||
out-of-the-box with vite 5 and the vite TYPO3 plugin. | ||
|
||
If you still use vite < 5, you should to change this to `_assets/vite/manifest.json`. | ||
|
||
.. code-block:: php | ||
:caption: config/system/additional.php | ||
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['vite_asset_collector']['defaultManifest'] = 'EXT:sitepackage/Resources/Public/Vite/.vite/manifest.json'; | ||
If you change the path here, please be aware that you may need to adjust `outDir` in | ||
your `vite.config.js` as well: | ||
|
||
.. code-block:: javascript | ||
:caption: vite.config.js | ||
export default defineConfig({ | ||
// ... | ||
outDir: 'path/to/sitepackage/Resources/Public/Vite/', | ||
}) | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. More information about this file: | ||
https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/GeneralConventions/FileStructure.html#includes-rst-txt | ||
.. ---------- | ||
.. text roles | ||
.. ---------- | ||
.. role:: aspect(emphasis) | ||
.. role:: bash(code) | ||
.. role:: html(code) | ||
.. role:: js(code) | ||
.. role:: php(code) | ||
.. role:: rst(code) | ||
.. role:: sep(strong) | ||
.. role:: sql(code) | ||
|
||
.. role:: tsconfig(code) | ||
:class: typoscript | ||
|
||
.. role:: typoscript(code) | ||
.. role:: xml(code) | ||
:class: html | ||
|
||
.. role:: yaml(code) | ||
|
||
.. default-role:: code | ||
|
||
.. --------- | ||
.. highlight | ||
.. --------- | ||
.. By default, code blocks use PHP syntax highlighting | ||
.. highlight:: php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
.. _start: | ||
|
||
=================== | ||
Vite AssetCollector | ||
=================== | ||
|
||
:Extension key: | ||
vite_asset_collector | ||
|
||
:Package name: | ||
praetorius/vite-asset-collector | ||
|
||
:Version: | ||
|release| | ||
|
||
:Language: | ||
en | ||
|
||
:Author: | ||
Simon Praetorius | ||
|
||
:License: | ||
This document is published under the | ||
`Creative Commons BY 4.0 <https://creativecommons.org/licenses/by/4.0/>`__ | ||
license. | ||
|
||
:Rendered: | ||
|today| | ||
|
||
---- | ||
|
||
Vite AssetCollector allows you to use the modern frontend bundler `vite <https://vitejs.dev/>`__ | ||
to build your TYPO3 project's frontend assets. | ||
|
||
---- | ||
|
||
**Table of Contents:** | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:titlesonly: | ||
|
||
Introduction/Index | ||
Installation/Index | ||
Configuration/Index | ||
Reference/Index | ||
|
||
.. Meta Menu | ||
.. toctree:: | ||
:hidden: | ||
|
||
Sitemap |
Oops, something went wrong.