Merge "Add theme fix for browsable source code"

This commit is contained in:
Jenkins 2015-10-22 20:23:30 +00:00 committed by Gerrit Code Review
commit 8aa22938db
4 changed files with 8 additions and 2 deletions

View File

@ -4,6 +4,8 @@ hacking>=0.10.0,<0.11
pep8==1.5.7
pyflakes==0.8.1
mccabe==0.2.1 # capped for flake8
bashate>=0.2 # Apache-2.0
# this is required for the docs build jobs
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
oslosphinx>=2.5.0 # Apache-2.0
bashate>=0.2 # Apache-2.0

View File

@ -31,6 +31,9 @@ extensions = [
'oslosphinx'
]
# The link to the browsable source code (for the left hand menu)
oslosphinx_cgit_link = 'http://git.openstack.org/cgit/openstack/openstack-ansible'
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

View File

@ -41,7 +41,7 @@ fi
# NOTE:
# Template files are skipped because they are python executables potentially with Jinja2
# expressions and the jinja2 causes a flake8 failures.
flake8 --ignore=F403,H303 $(grep -rln -e '^#!/usr/bin/env python' -e '^#!/bin/python' -e '^#!/usr/bin/python' * | grep -v 'templates/')
flake8 --ignore=F403,H303 $(grep -rln -e '^#!/usr/bin/env python' -e '^#!/bin/python' -e '^#!/usr/bin/python' * | grep -v 'templates/\|^doc/')
# Create keys if they don't already exist.
ssh_key_create

View File

@ -28,6 +28,7 @@ commands =
-e '!/bin/python' \
-e '!/usr/bin/python' \
--exclude-dir '.*' \
--exclude-dir 'doc' \
--exclude-dir '*.egg' \
--exclude-dir '*.egg-info' \
--exclude-dir '*templates' \