Skip to content

Commit 88c9662

Browse files
(CAT-1930) - fix build dir for jekyll gh-actions, links and stying
1 parent 2c8b9cf commit 88c9662

File tree

7 files changed

+33
-30
lines changed

7 files changed

+33
-30
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Build with Jekyll
3333
uses: actions/jekyll-build-pages@v1
3434
with:
35-
source: ./
35+
source: ./docs/
3636
destination: ./_site
3737
- name: Upload artifact
3838
uses: actions/upload-pages-artifact@v3

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ gfm_quirks: paragraph_end
88
lsi: false
99
safe: true
1010
incremental: false
11+
url: https://puppetlabs.github.io/rspec-puppet
1112
gist:
1213
noscript: false
1314
markdown: kramdown

docs/_layouts/base.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<meta name="author" content="">
1313
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
1414
<!-- Global CSS -->
15-
<link rel="stylesheet" href="/assets/plugins/bootstrap/css/bootstrap.min.css">
15+
<link rel="stylesheet" href="{{site.url}}/assets/plugins/bootstrap/css/bootstrap.min.css">
1616
<!-- Plugins CSS -->
17-
<link rel="stylesheet" href="/assets/plugins/font-awesome/css/font-awesome.css">
17+
<link rel="stylesheet" href="{{site.url}}/assets/plugins/font-awesome/css/font-awesome.css">
1818

1919
<!-- Theme CSS -->
20-
<link id="theme-style" rel="stylesheet" href="/assets/css/styles.css">
21-
<link rel="stylesheet" href="/assets/css/monokai.css">
20+
<link id="theme-style" rel="stylesheet" href="{{site.url}}/assets/css/styles.css">
21+
<link rel="stylesheet" href="{{site.url}}/assets/css/monokai.css">
2222
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2323
<!--[if lt IE 9]>
2424
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
@@ -40,7 +40,7 @@ <h1 class="logo">
4040
</h1>
4141
</div><!--//branding-->
4242
<ol class="breadcrumb">
43-
<li><a href="/">Home</a></li>
43+
<li><a href="{{site.url}}">Home</a></li>
4444
{% for crumb in page.breadcrumbs %}
4545
<li><a href="{{ crumb.path }}">{{ crumb.name }}</a></li>
4646
{% endfor %}

docs/_layouts/cards.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<meta name="author" content="">
1313
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
1414
<!-- Global CSS -->
15-
<link rel="stylesheet" href="/assets/plugins/bootstrap/css/bootstrap.min.css">
15+
<link rel="stylesheet" href="{{site.url}}/assets/plugins/bootstrap/css/bootstrap.min.css">
1616
<!-- Plugins CSS -->
17-
<link rel="stylesheet" href="/assets/plugins/font-awesome/css/font-awesome.css">
17+
<link rel="stylesheet" href="{{site.url}}/assets/plugins/font-awesome/css/font-awesome.css">
1818

1919
<!-- Theme CSS -->
20-
<link rel="stylesheet" href="/assets/css/monokai.css">
21-
<link id="theme-style" rel="stylesheet" href="/assets/css/styles.css">
20+
<link rel="stylesheet" href="{{site.url}}/assets/css/monokai.css">
21+
<link id="theme-style" rel="stylesheet" href="{{site.url}}/assets/css/styles.css">
2222
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2323
<!--[if lt IE 9]>
2424
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>

docs/documentation/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,59 @@
22
layout: cards
33
title: Documentation
44
icon: fa fa-files-o
5-
cards:
5+
cards:
66
-
77
title: Getting Started
88
text:
9-
path: /documentation/setup/
9+
path: setup/
1010
icon: fa fa-toggle-on
1111
colour: green
1212
-
1313
title: Configuration
1414
text:
15-
path: /documentation/configuration/
15+
path: configuration/
1616
icon: fa fa-wrench
1717
colour: blue
1818
-
1919
title: Testing Classes
2020
text:
21-
path: /documentation/classes/
21+
path: classes/
2222
icon: fa fa-book
2323
colour: pink
2424
-
2525
title: Testing Defined Types
2626
text:
27-
path: /documentation/defined_types/
27+
path: defined_types/
2828
icon: fa fa-copy
2929
colour: purple
3030
-
3131
title: Testing Functions
3232
text:
33-
path: /documentation/functions/
33+
path: functions/
3434
icon: fa fa-superscript
3535
colour: red
3636
-
3737
title: Testing Hosts
3838
text:
39-
path: /documentation/hosts/
39+
path: hosts/
4040
icon: fa fa-server
4141
colour: orange
4242
-
4343
title: Testing Types
4444
text:
45-
path: /documentation/types/
45+
path: types/
4646
icon: fa fa-puzzle-piece
4747
colour: blue
4848
-
4949
title: Testing Type Aliases
5050
text:
51-
path: /documentation/type_aliases/
51+
path: type_aliases/
5252
icon: fa fa-exchange
5353
colour: pink
5454
-
5555
title: Coverage Reports
5656
text:
57-
path: /documentation/coverage/
57+
path: coverage/
5858
icon: fa fa-map-o
5959
colour: purple
6060
---

docs/index.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
13
<!DOCTYPE html>
24
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
35
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
@@ -12,13 +14,13 @@
1214
<meta name="author" content="">
1315
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
1416
<!-- Global CSS -->
15-
<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
17+
<link rel="stylesheet" href="{{ site.url }}/assets/plugins/bootstrap/css/bootstrap.min.css">
1618
<!-- Plugins CSS -->
17-
<link rel="stylesheet" href="assets/plugins/font-awesome/css/font-awesome.css">
18-
<link rel="stylesheet" href="assets/css/monokai.css">
19+
<link rel="stylesheet" href="{{ site.url }}/assets/plugins/font-awesome/css/font-awesome.css">
20+
<link rel="stylesheet" href="{{ site.url }}/assets/css/monokai.css">
1921

2022
<!-- Theme CSS -->
21-
<link id="theme-style" rel="stylesheet" href="assets/css/styles.css">
23+
<link id="theme-style" rel="stylesheet" href="{{ site.url }}/assets/css/styles.css">
2224
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
2325
<!--[if lt IE 9]>
2426
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
@@ -54,9 +56,9 @@ <h5>(The rest is a bit more difficult though)</h5>
5456
$ cd your-module
5557
$ rspec-puppet-init
5658
</code></pre></div>
57-
<p>Then continue on to the <a href="/tutorial/">tutorial!</a></p>
59+
<p>Then continue on to the <a href="{{ site.url }}/tutorial">tutorial!</a></p>
5860
<div class="cta-container">
59-
<a class="btn btn-primary btn-cta" href="https://github.com/rodjek/rspec-puppet/" target="_blank"><i class="fa fa-github"></i> View on GitHub</a>
61+
<a class="btn btn-primary btn-cta" href="https://github.com/puppetlabs/rspec-puppet" target="_blank"><i class="fa fa-github"></i> View on GitHub</a>
6062
</div><!--//cta-container-->
6163
</div><!--//intro-->
6264
<div id="cards-wrapper" class="cards-wrapper row">
@@ -67,7 +69,7 @@ <h5>(The rest is a bit more difficult though)</h5>
6769
</div><!--//icon-holder-->
6870
<h3 class="title">Tutorial</h3>
6971
<p class="intro">A step-by-step introduction to behaviour-driven Puppet development</p>
70-
<a class="link" href="/tutorial/"><span></span></a>
72+
<a class="link" href="{{ site.url }}/tutorial"><span></span></a>
7173
</div><!--//item-inner-->
7274
</div><!--//item-->
7375
<div class="item item-pink item-2 col-md-4 col-sm-6 col-xs-6">
@@ -77,7 +79,7 @@ <h3 class="title">Tutorial</h3>
7779
</div><!--//icon-holder-->
7880
<h3 class="title">Documentation</h3>
7981
<p class="intro">Everything you need to know</p>
80-
<a class="link" href="/documentation/"><span></span></a>
82+
<a class="link" href="{{ site.url }}/documentation/"><span></span></a>
8183
</div><!--//item-inner-->
8284
</div><!--//item-->
8385
<div class="item item-purple col-md-4 col-sm-6 col-xs-6">
@@ -87,7 +89,7 @@ <h3 class="title">Documentation</h3>
8789
</div><!--//icon-holder-->
8890
<h3 class="title">Changelog</h3>
8991
<p class="intro">Check out what's changed in the latest release</p>
90-
<a class="link" href="/changelog/"><span></span></a>
92+
<a class="link" href="{{ site.url }}/changelog/"><span></span></a>
9193
</div><!--//item-inner-->
9294
</div><!--//item-->
9395
</div><!--//cards-->

docs/tutorial/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ _This is not intended to be an RSpec tutorial, just an explanation of how to
5656
use the extended functionality that rspec-puppet provides. If you are not
5757
familiar with the basics of RSpec, I highly recommend you take some time before
5858
continuing to read through the [RSpec
59-
documentation](https://www.relishapp.com/rspec)._
59+
documentation](https://rspec.info/documentation/)._
6060

6161
Lets say you're writing tests for a `logrotate::rule` type that does two
6262
things:

0 commit comments

Comments
 (0)