Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
bd6852ed
Commit
bd6852ed
authored
Feb 25, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'doc_html_tweaks' of
git://github.com/nigelm/ansible
into devel
parents
7a6f3e6a
9ae64ffb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
docsite/_static/ansible-local.css
+9
-0
docsite/_themes/bootstrap/layout.html
+15
-1
docsite/_themes/bootstrap/localtoc.html
+1
-1
No files found.
docsite/_static/ansible-local.css
0 → 100644
View file @
bd6852ed
/* Local CSS tweaks for ansible */
.dropdown-menu
{
overflow-y
:
auto
;
}
h2
{
padding-top
:
40px
;
}
\ No newline at end of file
docsite/_themes/bootstrap/layout.html
View file @
bd6852ed
{% extends "basic/layout.html" %}
{% set script_files = script_files + ['_static/bootstrap-dropdown.js', '_static/bootstrap-scrollspy.js'] %}
{% set css_files = ['_static/bootstrap.css', '_static/bootstrap-sphinx.css'] + css_files %}
{% set css_files = ['_static/bootstrap.css', '_static/bootstrap-sphinx.css'
, '_static/ansible-local.css'
] + css_files %}
{# Sidebar: Rework into our Boostrap nav section. #}
{% macro navBar() %}
...
...
@@ -98,6 +98,20 @@ s.parentNode.insertBefore(ga, s);
})();
</script>
<script
type=
"text/javascript"
>
// Set the maximum height of drop down menus to just less than the height
// of the viewport.
var
set_max_menu_height
=
function
()
{
// set menu max height to 75 less than viewport height
$
(
'.dropdown-menu'
).
css
(
'max-height'
,
$
(
window
).
height
()
-
75
);
}
// Set this when we set the page up and on each resize.
$
(
window
).
resize
(
set_max_menu_height
);
$
(
window
).
ready
(
set_max_menu_height
);
</script>
{% endblock %}
...
...
docsite/_themes/bootstrap/localtoc.html
View file @
bd6852ed
<li
class=
"dropdown"
data-dropdown=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
>
{{ _('
Page
') }}
</a>
class=
"dropdown-toggle"
>
{{ _('
Section
') }}
</a>
<span
class=
"localtoc"
>
{{ toc }}
</span>
</li>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment