mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-01-01 11:28:12 -05:00
13 lines
332 B
Python
13 lines
332 B
Python
"""Builds documentation locally. Use for preview only"""
|
|
|
|
import subprocess
|
|
import webbrowser
|
|
|
|
|
|
source = "docs/source"
|
|
build = "docs/build"
|
|
master_doc = 'index'
|
|
|
|
subprocess.run(['sphinx-build', '-M', 'clean', source, build])
|
|
subprocess.run(['sphinx-build', '-M', 'html', source, build])
|
|
webbrowser.open(f'{build}/html/{master_doc}') |