Skip to content

Commit d0c57fe

Browse files
struysasottile
authored andcommitted
updated style for hooks page
1 parent 23578ae commit d0c57fe

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
hooks:
44
- id: scss-lint
55
files: scss/.*\.scss$
6+
language_version: 1.9.3-p484
67
- repo: git@github.com:pre-commit/pre-commit-hooks
78
sha: d3db0385825d4c082bc7117c090ac16cb4840f3e
89
hooks:

base.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<title>pre-commit by Yelp</title>
1010
</head>
11-
<body data-spy="scroll" data-target=".pc-sidebar">
11+
<body class="page-${template_name}" data-spy="scroll" data-target=".pc-sidebar">
1212
<header class="navbar navbar-default pc-nav" role="banner">
1313
<div class="container">
1414
<div class="navbar-header">

hooks.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## -*- coding: utf-8 -*-
22
<%inherit file="base.mako" />
33

4-
<h1>Supported hooks</h1>
4+
<div class="page-header"><h1>Supported hooks</h1></div>
55

66
<p>
77
To add to this list, fork <a href="https://github.com/pre-commit/pre-commit.github.io">this repository</a>.

make_templates.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def get_env():
2727
def main():
2828
env = get_env()
2929
for template in ALL_TEMPLATES:
30+
env['template_name'] = template
3031
with io.open('{0}.html'.format(template), 'w') as html_file:
3132
template_obj = template_lookup.get_template(
3233
'{0}.mako'.format(template),

scss/main.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,13 @@ h1,
132132
color: white;
133133
}
134134
}
135+
136+
.page-hooks {
137+
.top-shelf {
138+
display: none;
139+
}
140+
141+
.pc-main-content {
142+
margin-top: 30px;
143+
}
144+
}

0 commit comments

Comments
 (0)