Add introduction to docs, add mock mechanism to conf.py.