public static function makeDocs($host)
    {
        if (!Configure::read('Swagger.library')) {
            throw new \InvalidArgumentException('Swagger configuration file does not contain a library section');
        }

        // make sure documents will be crawled and not read from filesystem
        Configure::write('Swagger.docs.crawl', true);

        // generate docs
        foreach (array_keys(Configure::read('Swagger.library')) as $doc) {
            self::getSwaggerDocument($doc, $host);
        }

        return true;
    }