Skip to content

Commit

Permalink
Try to generate default mkdocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Nov 26, 2023
1 parent 0edf80d commit c92362e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@ name: ddev-mkdocs
pre_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 || echo "site_name: Mkdocs docs\ntheme: material\ndev_addr: '0.0.0.0:8080'\nnav:\n - Home: index.md" > ${DDEV_APPROOT}/docs/mkdocs.yml;
- test -f ${DDEV_APPROOT}/docs/mkdocs.yml || touch ${DDEV_APPROOT}/docs/mkdocs.yml
- |
#ddev-nodisplay
cat <<-END >${DDEV_APPROOT}/docs/mkdocs.yml
site_name: Mkdocs site:
theme: material
dev_addr: '0.0.0.0:8080'
nav:
- Home: index.md
END
- test -f ${DDEV_APPROOT}/docs/docs/index.md || echo "## Welcome to Mkdocs" > ${DDEV_APPROOT}/docs/docs/index.md

project_files:
- docker-compose.mkdocs.yaml

post_install_actions:
- mv -R ${DDEV_APPROOT}/.ddev/docs ${DDEV_APPROOT}/
- echo "Mkdocs install finished. Please restart ddev with 'ddev restart'"

0 comments on commit c92362e

Please sign in to comment.