Skip to content

Commit

Permalink
Fixed install process
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Jun 11, 2024
1 parent d4c02c0 commit af3b52b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions install.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: mkdocs

pre_install_actions:
project_files:
- docker-compose.mkdocs.yaml
- docs

post_install_actions:
- test -d ${DDEV_APPROOT}/docs || mkdir -p ${DDEV_APPROOT}/docs
- test -d ${DDEV_APPROOT}/docs/docs || mkdir -p ${DDEV_APPROOT}/docs/docs
- test -f ${DDEV_APPROOT}/docs/mkdocs.yml || cp docs/mkdocs.yml ${DDEV_APPROOT}/docs/mkdocs.yml
- test -f ${DDEV_APPROOT}/docs/docs/index.md || echo "## Welcome to Mkdocs" > ${DDEV_APPROOT}/docs/docs/index.md

project_files:
- docker-compose.mkdocs.yaml
- docs

post_install_actions:
- echo "Mkdocs install finished. Please restart ddev with 'ddev restart'"
- echo "Mkdocs install finished. Please restart ddev with 'ddev restart'"

0 comments on commit af3b52b

Please sign in to comment.