Currently the official TYPO3 documentation is spread across different places. To collect all documentation in one place, docs.typo3.org, this folder contains the tools and scripts to support the conversion of original HTML pages to reST pages.
This is the same exception page of the former wiki.typo3.org and the future docs.typo3.org instance:
Wiki (old) | Docs (new) |
---|---|
Install Docker and Docker-Compose.
Build the environment by
# Linux make build # MacOS and Windows docker-compose build --force-rm docker-compose run --rm composer-install
Run conversion script by
# Linux make exceptions # MacOS and Windows SCOPE=exceptions docker-compose run --rm convert
Check and adapt file _map_of_failed_urls.php for outdated links which should be mapped to valid urls. Run the script after adaption again.
Check file _warnings.txt for conversion warnings which should be handled.
Edit reST files of folder output_exceptions manually to make them ready for use in docs.typo3.org.
Run conversion script by
# Linux make pages # MacOS and Windows SCOPE=pages docker-compose run --rm convert
Check and adapt file _map_of_failed_urls.php for outdated links which should be mapped to valid urls. Run the script after adaption again.
Check file _warnings.txt for conversion warnings which should be handled.
Edit reST files of folder output_pages manually to make them ready for use in docs.typo3.org.
This scope is to test this tool with another MediaWiki instance - mediawiki.org - and added here as inspiration only.
Run conversion script by
# Linux make mediawiki # MacOS and Windows SCOPE=mediawiki docker-compose run --rm convert
Check folder
output_mediawiki
.
Debug the conversion script by prepending the Xdebug specific environment variables XDEBUG_CONFIG
and
PHP_IDE_CONFIG
to define the interaction with your IDE.
# Linux
XDEBUG_CONFIG="idekey={idekey}" PHP_IDE_CONFIG="serverName={serverName}" make (exceptions|pages)
# e.g.
XDEBUG_CONFIG="idekey=PHPSTORM" PHP_IDE_CONFIG="serverName=t3docs-wiki-migration" make exceptions
# MacOS and Windows
XDEBUG_CONFIG="idekey={idekey}" PHP_IDE_CONFIG="serverName={serverName}" SCOPE="(exceptions|pages)" docker-compose run --rm convert
# e.g.
XDEBUG_CONFIG="idekey=PHPSTORM" PHP_IDE_CONFIG="serverName=t3docs-wiki-migration" SCOPE="exceptions" docker-compose run --rm convert
Xdebug is configured to communicate via port 9000.
Remove the environment from your operating system by
# Linux
make clean
# MacOS and Windows
docker-compose down --rmi all --volumes