1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Merge pull request #373 from marquiz/fixes/prow-gh-pages

scripts: fix gh-pages build failure in prow
This commit is contained in:
Kubernetes Prow Robot 2020-10-22 11:39:37 -07:00 committed by GitHub
commit a08fb66fa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 7 deletions

View file

@ -27,5 +27,3 @@ gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
# kramdown v2 ships without the gfm parser by default. If you're using
# kramdown v1, comment out this line.
#gem "kramdown-parser-gfm"
gem "jekyll-rtd-theme", "~> 2.0.6"

View file

@ -137,8 +137,6 @@ GEM
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
rubyzip (>= 1.3.0)
jekyll-rtd-theme (2.0.7)
github-pages (~> 207)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.6.1)
@ -259,7 +257,6 @@ PLATFORMS
DEPENDENCIES
github-pages (~> 207)
jekyll (~> 3.9.0)
jekyll-rtd-theme (~> 2.0.6)
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.1)

View file

@ -26,7 +26,7 @@ markdown: kramdown
kramdown:
toc_levels: 1..3
remote_theme: rundocs/jekyll-rtd-theme
remote_theme: rundocs/jekyll-rtd-theme@v2.0.9
# Exclude from processing.
# The following items will not be processed, by default. Create a custom list

View file

@ -36,7 +36,7 @@
</div>
</div>
<div class="addons d-flex flex-column height-full p-2 d-none">
{%- assign items = "github, analytics" | split: ", " -%}
{%- assign items = "github" | split: ", " -%}
{% for item in items -%}
{% include addons/{{ item }}.liquid %}
{% endfor -%}

View file

@ -1,3 +1,11 @@
#!/bin/bash -e
# Pre-create output directory with all write access. The Jekyll docker image is
# stupid enough to do all sorts of uid/gid/chown magic making build fail for
# root user. In prow we run as root because of DIND.
_outdir="docs/_site"
mkdir -p "$_outdir"
chmod a+rwx "$_outdir"
# Build docs
make site-build