I tried to debug the problem further and in the process, I ran the document container explicitly, like so:
"docker run --rm -it -e AWS_S3_BUCKET -e NOCACHE -p 8000:8000 "docker-docs:master" /bin/bash"
This is essentially the same command that "make docs" runs except that I used /bin/bash instead of "mkdocs serve". I looked at "mkdocs.yml" inside the container and these are its contents:
----------
# Generated mkdocs.yml from
site_name: Docker Documentation
site_url: /
site_description: Documentation for fast and lightweight Docker container based virtualization framework.
site_favicon: img/favicon.png
docs_dir: sources
include_search: true
use_absolute_urls: true
# theme: docker
theme_dir: ./theme/mkdocs/
theme_center_lead: false
copyright: Copyright © 2014-2015, Docker, Inc.
google_analytics: ['UA-6096819-11', '
docker.io']
pages:
# Introduction:
----------
Note that the "pages" configuration is drastically different from what one finds in repository's mkdocs.yml. Based on the above mkdocs.yml file, the error message I get (shown below) is completely understandable: