The migration script converts the Jekyll-specific Markdown files as well as the DocuBlocks from the main repository to the Hugo-specific Markdown files that are needed for the new documentation toolchain.
- docker-compose
- Python 3
Create a dedicated folder for testing the migration process.
Setup
.> git clone [email protected]:arangodb/docs-hugo.git
.> cd docs-hugo
docs-hugo> cd migration-tools
docs-hugo/migration-tools> pip3 install pyyaml commonmark python-frontmatter
Execute migration
docs-hugo/migration-tools> ./migration.sh migrate <docsOld> <docsNew> <docublocks> <version>
-
docsOld
: input path to the old toolchain and content in Jekyll's format, pointing to the root of thearangodb/docs
working copy -
docsNew
: output path for the new toolchain and content in Hugo's format, pointing to the root of thearangodb/docs-hugo
working copy (not including/site/content
) -
docublocks
: input path to a working copy of thearangodb/arangodb
repository, needed to read the old DocuBlocks -
version
: the version of the old content to migrate to the new toolchain, indicating a version folder like3.11