Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Latest commit

 

History

History

convert

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TYPO3 Wiki Conversion

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)
docs/exception_page_wiki.png docs/exception_page_docs.png

Installation

  1. Install Docker and Docker-Compose.

  2. Build the environment by

    # Linux
    make build
    
    # MacOS and Windows
    docker-compose build --force-rm
    docker-compose run --rm composer-install

Conversion of TYPO3 Wiki Exception Pages

  1. Run conversion script by

    # Linux
    make exceptions
    
    # MacOS and Windows
    SCOPE=exceptions docker-compose run --rm convert
  2. 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.

  3. Check file _warnings.txt for conversion warnings which should be handled.

  4. Edit reST files of folder output_exceptions manually to make them ready for use in docs.typo3.org.

Conversion of TYPO3 Wiki Pages

  1. Run conversion script by

    # Linux
    make pages
    
    # MacOS and Windows
    SCOPE=pages docker-compose run --rm convert
  2. 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.

  3. Check file _warnings.txt for conversion warnings which should be handled.

  4. Edit reST files of folder output_pages manually to make them ready for use in docs.typo3.org.

Conversion of MediaWiki Pages

This scope is to test this tool with another MediaWiki instance - mediawiki.org - and added here as inspiration only.

  1. Run conversion script by

    # Linux
    make mediawiki
    
    # MacOS and Windows
    SCOPE=mediawiki docker-compose run --rm convert
  2. Check folder output_mediawiki.

Developing

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.

Uninstallation

Remove the environment from your operating system by

# Linux
make clean

# MacOS and Windows
docker-compose down --rmi all --volumes