2016-12-19 19:45:43 +08:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License. You may obtain
|
|
|
|
# a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
|
2014-06-06 19:30:04 +03:00
|
|
|
from __future__ import print_function
|
|
|
|
|
2013-08-08 10:34:06 -04:00
|
|
|
import gettext
|
|
|
|
import os
|
|
|
|
|
2013-09-02 09:59:07 +03:00
|
|
|
gettext.install('manila')
|
2013-08-08 10:34:06 -04:00
|
|
|
|
2013-09-02 09:59:07 +03:00
|
|
|
from manila import utils
|
2013-08-08 10:34:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
def setup(app):
|
2014-06-06 19:30:04 +03:00
|
|
|
print("**Autodocumenting from %s" % os.path.abspath(os.curdir))
|
|
|
|
rv = utils.execute('./doc/generate_autodoc_index.sh')
|
|
|
|
print(rv[0])
|