Commit 339980ca authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

manage.py sync-doc command

parent 8ffb7a2d
......@@ -3,10 +3,10 @@ syntax: glob
*.pyo
*.swp
site_settings.py
share/doc/users_guide/html/*
share/doc/users_guide/src/.build/*
dist/
build/
noc.egg-info/
etc/*.conf
local/*
static/doc/*
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Rebuild online documentation
##----------------------------------------------------------------------
## Copyright (C) 2007-2009 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
"""
"""
from django.core.management.base import BaseCommand
import os,glob,subprocess
##
## Command handler
##
class Command(BaseCommand):
help="Syncronize online documentation"
def handle(self, *args, **options):
# Find and build all makefiles
for makefile in glob.glob("share/doc/*/*/Makefile"):
d,f=os.path.split(makefile)
subprocess.call(["make","html"],cwd=d)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment