mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add nox env to build docs
This commit is contained in:
parent
e1b3f1d9ad
commit
a27ed35dee
1 changed files with 13 additions and 0 deletions
13
noxfile.py
13
noxfile.py
|
@ -642,3 +642,16 @@ def lint_tests(session):
|
|||
else:
|
||||
paths = ['tests/']
|
||||
_lint(session, '.testing.pylintrc', flags, paths)
|
||||
|
||||
|
||||
@nox.session(python='2.7')
|
||||
def docs(session):
|
||||
'''
|
||||
Build Salt's Documentation
|
||||
'''
|
||||
session.install('-r', 'requirements/static/py2.7/docs.txt')
|
||||
os.chdir('doc/')
|
||||
session.run('make', 'clean', external=True)
|
||||
session.run('make', 'html', external=True)
|
||||
session.run('tar', '-czvf', 'doc-archive.tar.gz', '_build/html')
|
||||
os.chdir('..')
|
||||
|
|
Loading…
Add table
Reference in a new issue