Skip to content

Commit b03aed1

Browse files
authored
chore: Style website (#1783)
* chore: Style code blocks * chore: fix codeblocks causing the other content to extend beyond the viewport
1 parent c9aff4b commit b03aed1

3 files changed

Lines changed: 12 additions & 17 deletions

File tree

docs/assets/stylesheets/application.css

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ mark {
127127
font-style: italic;
128128
font-weight: bold;
129129
}
130-
130+
code {
131+
white-space: pre-wrap;
132+
word-break: break-word;
133+
}
131134
pre,
132135
code,
133136
kbd,
@@ -136,17 +139,6 @@ samp {
136139
font-size: 1em;
137140
}
138141

139-
pre {
140-
white-space: pre;
141-
white-space: pre-wrap;
142-
word-wrap: normal;
143-
padding: 16px;
144-
overflow: auto;
145-
line-height: 1.45;
146-
background-color: #f7f7f7;
147-
border-radius: 3px;
148-
}
149-
150142
q {
151143
quotes: none;
152144
}
@@ -441,7 +433,6 @@ header.clearfix h1 {
441433
color: #333;
442434
font-family: Politica;
443435
font-size: 72px;
444-
letter-spacing: -5px;
445436
margin: 0 12px;
446437
position: relative;
447438
text-transform: uppercase;
@@ -453,7 +444,7 @@ header.clearfix h1 span {
453444
font-family: 'HandOfSeanRegular';
454445
font-size: 14px;
455446
font-weight: normal;
456-
left: 144px;
447+
left: 156px;
457448
letter-spacing: -1px;
458449
position: absolute;
459450
top: 32px;
@@ -583,7 +574,7 @@ header.clearfix p {
583574
.about {
584575
color: #666;
585576
line-height: 24px;
586-
padding: 1rem;
577+
padding: 1rem 5rem;
587578
width: 100%;
588579
display: flex;
589580
flex-direction: row;
@@ -601,6 +592,7 @@ header.clearfix p {
601592
@media (max-width: 920px) {
602593
.about {
603594
flex-direction: column;
595+
padding: 1rem 3rem;
604596
}
605597
.about aside,
606598
.about article {
@@ -710,7 +702,6 @@ header.clearfix p {
710702
display: flex;
711703
padding: 0 2rem;
712704
}
713-
714705
.docs .container .main h2 {
715706
border-bottom: 1px solid #eee;
716707
padding-bottom: 0.8rem;

docs/docs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Hubot>
4848
Changing your Hubot instances name will reduce confusion down the road, so set the `--name` argument in the `hubot` command:
4949

5050
```json
51+
5152
{
5253
...
5354
"scripts": {

docs/layouts/docs.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
<meta property="og:url" content="{{ permalink }}" />
1616
<meta property="og:site_name" content="Hubot" />
1717
<meta property="og:image" content="https://hubotio.github.io/hubot/assets/images/screenshots/dangerroom-full.png" />
18+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
19+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
1820
<script type="application/ld+json">
1921
{"image":"https://hubotio.github.io/hubot/assets/images/screenshots/dangerroom-full.png","headline":"Hubot","@type":"WebSite","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"https://hubotio.github.io/hubot/assets/images/screenshots/dangerroom-full.png"}},"url":"https://hubotio.github.io/hubot/","description":"Hubot is your friendly robot sidekick. Install him in your company to dramatically improve employee efficiency.","name":"Hubot","@context":"https://schema.org"}
2022
</script>
@@ -55,7 +57,7 @@ <h1>Hubot Documentation</h1>
5557
</ul>
5658
</nav>
5759
<main>
58-
{{> @partial-block }}
60+
{{> @partial-block }}
5961
</main>
6062
</section>
6163
</div>
@@ -64,4 +66,5 @@ <h1>Hubot Documentation</h1>
6466
<p class="right">Built with &lt;3 by friends of Hubot</p>
6567
</footer>
6668
</body>
69+
<script>hljs.highlightAll()</script>
6770
</html>

0 commit comments

Comments
 (0)