mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-03 07:41:30 -07:00
Polish the docs up some more. Also make 'index.html' forward to the actual html output
This commit is contained in:
parent
5e453555e3
commit
baf2a05708
40 changed files with 257 additions and 6302 deletions
|
@ -71,6 +71,8 @@ class SphinxBuilder(object):
|
|||
print >> sys.stderr, "are required to make documentation:"
|
||||
print >> sys.stderr, "\tsphinx.application.Sphinx"
|
||||
print >> sys.stderr, "This is usually available from the python-sphinx package"
|
||||
print >> sys.stderr, "=== Error message received while attempting to build==="
|
||||
print >> sys.stderr, ie
|
||||
except Exception, ex:
|
||||
print >> sys.stderr, "FAIL! exiting ... (%s)" % ex
|
||||
|
||||
|
@ -80,4 +82,8 @@ class SphinxBuilder(object):
|
|||
|
||||
if __name__ == '__main__':
|
||||
docgen = SphinxBuilder()
|
||||
# docgen.build_docs()
|
||||
|
||||
if "view" in sys.argv:
|
||||
import webbrowser
|
||||
if not webbrowser.open('html/index.html'):
|
||||
print >> sys.stderr, "Could not open on your webbrowser."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue