mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-02-24 02:28:44 -05:00
version 0.32.1
This commit is contained in:
15
docs/make.py
15
docs/make.py
@@ -1,13 +1,16 @@
|
||||
"""Builds documentation locally. Use for preview only"""
|
||||
|
||||
import pathlib
|
||||
import subprocess
|
||||
import webbrowser
|
||||
|
||||
|
||||
source = "docs/source"
|
||||
build = "docs/build"
|
||||
master_doc = 'index'
|
||||
source = pathlib.Path("docs", "source")
|
||||
build = pathlib.Path("docs", "build")
|
||||
master_doc = 'index.html'
|
||||
|
||||
subprocess.run(['sphinx-build', '-M', 'clean', source, build])
|
||||
subprocess.run(['sphinx-build', '-M', 'html', source, build])
|
||||
webbrowser.open(f'{build}/html/{master_doc}')
|
||||
subprocess.run(['sphinx-build', '-M', 'clean', str(source), str(build)])
|
||||
subprocess.run(['sphinx-build', '-M', 'html', str(source), str(build)])
|
||||
|
||||
master_path = build / 'html' / master_doc
|
||||
webbrowser.open(f'file://{master_path.resolve()}')
|
||||
@@ -1 +1,7 @@
|
||||
.. mdinclude:: ../../README.md
|
||||
:end-line: 4
|
||||
|
||||
.. excluding self-pointing documentation link
|
||||
|
||||
.. mdinclude:: ../../README.md
|
||||
:start-line: 6
|
||||
|
||||
Reference in New Issue
Block a user