Skip to content

Commit 5084326

Browse files
Merge pull request #123 from puppetlabs/cat_1930
Set correct source directory for jekyll gh-action page and add {{ site.ur l}} to fix links and styling
2 parents 294bcfa + 5bc8f9e commit 5084326

File tree

17 files changed

+196
-749
lines changed

17 files changed

+196
-749
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: 7 additions & 7 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">
16-
<!-- Plugins CSS -->
17-
<link rel="stylesheet" href="/assets/plugins/font-awesome/css/font-awesome.css">
15+
<link rel="stylesheet" href="{{site.url}}/assets/plugins/bootstrap/css/bootstrap.min.css">
16+
<!-- Plugins 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>
@@ -34,13 +34,13 @@
3434
<div class="container">
3535
<div class="branding">
3636
<h1 class="logo">
37-
<a href="/">
37+
<a href="{{site.url}}">
3838
<span class="text-highlight">rspec-puppet</span>
3939
</a>
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/changelog/index.md

Lines changed: 151 additions & 707 deletions
Large diffs are not rendered by default.

docs/documentation/classes/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ icon: fa fa-book
55
breadcrumbs:
66
-
77
name: Documentation
8-
path: /documentation/
8+
path: /rspec-puppet/documentation/
99
---
1010

1111
## Basic Test Structure

docs/documentation/configuration/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ icon: fa fa-wrench
55
breadcrumbs:
66
-
77
name: Documentation
8-
path: /documentation/
8+
path: /rspec-puppet/documentation/
99
---
1010
rspec-puppet can be configured by modifying the `RSpec.configure` block in your
1111
`spec/spec_helper.rb` file. If you followed the [setup
12-
instructions](/documentation/setup/) you'll already have an `RSpec.configure`
12+
instructions]({{site.url}}/documentation/setup) you'll already have an `RSpec.configure`
1313
block that you can modify.
1414

1515
{% highlight ruby %}

docs/documentation/coverage/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ icon: fa fa-map-o
55
breadcrumbs:
66
-
77
name: Documentation
8-
path: /documentation/
8+
path: /rspec-puppet/documentation/
99
---
1010

1111
## Basic Report

docs/documentation/defined_types/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ icon: fa fa-copy
55
breadcrumbs:
66
-
77
name: Documentation
8-
path: /documentation/
8+
path: /rspec-puppet/documentation/
99
---
1010

1111
## Basic Test Structure

docs/documentation/functions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ icon: fa fa-superscript
55
breadcrumbs:
66
-
77
name: Documentation
8-
path: /documentation/
8+
path: /rspec-puppet/documentation/
99
---
1010

1111
## Basic Test Structure

0 commit comments

Comments
 (0)