Fix missing IOU documentation

Fix #143
This commit is contained in:
Julien Duponchelle committed 2015-04-07 16:09:27 +02:00
1 parent db6db31b60
commit 3b4a060ae9
101 files changed
+657 -221

No files matched your search

+1 -1
View File
@@ -30,5 +30,5 @@ from gns3server.handlers.api.server_handler import ServerHandler
from gns3server.handlers.upload_handler import UploadHandler
from gns3server.handlers.index_handler import IndexHandler
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"):
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test") or os.environ.get("PYTEST_BUILD_DOCUMENTATION") == "1":
from gns3server.handlers.api.iou_handler import IOUHandler
+2 -1
View File
@@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
import os
from .vpcs import VPCS
from .virtualbox import VirtualBox
from .dynamips import Dynamips
@@ -23,7 +24,7 @@ from .qemu import Qemu
MODULES = [VPCS, VirtualBox, Dynamips, Qemu]
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"):
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test") or os.environ.get("PYTEST_BUILD_DOCUMENTATION") == "1":
# IOU runs only on Linux
from .iou import IOU
MODULES.append(IOU)
+1
View File
@@ -37,6 +37,7 @@ class Documentation(object):
def write(self):
for handler_name in sorted(self._documentation):
print("Build {}".format(handler_name))
for path in sorted(self._documentation[handler_name]):