Commit Graph

46 Commits (59d643b8a387dfc0ee60346fccebc6a09466b947)

Author SHA1 Message Date
inductor 59d643b8a3 fix build 2020-11-01 11:01:10 +09:00
inductor 3f7f7f7b8e rebase master 2020-11-01 10:40:22 +09:00
Tim Bannister 25180022b1
Update local Hugo development target
- mount /tmp as tmpfs
- configure Hugo to use /tmp for all caches
- configure Hugo to render into /tmp
2020-10-10 18:07:35 +01:00
Tim Bannister bb04227f7b Run Hugo as user "hugo" in local dev container
When previewing locally using "make container-serve", run the Hugo
process as user "hugo" inside that container.
2020-10-03 04:10:33 +01:00
Benjamin Elder 7d62be1781 automatically derive image version 2020-07-22 11:04:09 -07:00
Benjamin Elder df7b5416e6 automatically tag docker image based on hugo version and dockerfile version 2020-07-16 23:28:19 -07:00
Benjamin Elder d6b3322ad0 fix container build
- install npm & postcss-cli in docker image
- match container build and non-container build hugo command
2020-07-15 12:21:01 -07:00
Kubernetes Prow Robot 63e787f946
Merge pull request #21782 from sftim/20200614_warn_if_submodules_not_initialized
Warn from make if submodules are not initialized
2020-06-29 11:47:59 -07:00
Tim Bannister 781b13b38d Warn from make if submodules are not initialized
If you forget to "git submodule update --init --recursive" before
running a local preview, the error from Hugo is cryptic. Add a more
helpful warning.
2020-06-24 22:13:10 +01:00
Emily Moss 3ab69bb5f1 fix on spaces 2020-06-24 12:11:06 -07:00
Roy Lenferink 58cd5ae880 Renamed docker-* targets to container-* and deprecated docker-* targets 2020-06-11 10:36:06 +02:00
Tim Bannister c00f694d7c Allow specifying container runtime for Makefile
This commit lets you run, eg:
DOCKER=podman make docker-image
DOCKER=podman make docker-serve

and spin up the website locally for testing, without using Docker or
needing to have Docker installed.
2020-06-07 15:36:44 +01:00
Kubernetes Prow Robot 5750f06822
Merge pull request #20606 from celestehorgan/linkchecker
Add a link checker to k8s.io
2020-05-27 06:16:41 -07:00
Tim Bannister 2eb6ab1ad3 Add a link checker
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-05-26 16:06:46 -07:00
Tim Bannister 64e9ea7292 Serve rendered content from tmpfs for local dev
You can run:
 make docker-serve

to run Hugo in a container, building the site and then serving it.

Rather than write the rendered content into the repository for this,
set up a tmpfs and write the content there, then serve it.

This change is also compatible with podman.
2020-05-21 20:49:36 +01:00
Radoslaw Smigielski 26aa0d7e9b Make build of kubernetes-hugo image more reliable
Switch from default Docker bridge network to host network.
2020-04-08 22:25:08 +01:00
Jacky Wu 92e30010bd
cleanup: remove hugo-version-check.sh. (#18817) 2020-02-11 11:28:07 -08:00
Jacky Wu 6275183b59 refact: merge HUGO_VERSION, add deploy-preview. (#18020) 2020-01-15 04:47:33 -08:00
Jacky Wu 9a08775daf Fixed hot reload panic of local hugo issue. (#17894) 2019-12-03 23:06:57 -08:00
Zach Corleissen 41ea6d49fb Update master to Hugo version 0.57.2 (#16814)
Update Makefile for 0.57.2
2019-10-27 12:21:24 -07:00
Jim Angel fd53a95b51 Syncing release-branch 'test-example' change to master (#15137)
This is a preventative change that will allow release-1.15 to merge successfully.
2019-06-26 15:21:20 -07:00
Luc Perkins 654db85168 Use Hugo extended for Sass/CSS (#13113) 2019-06-09 06:31:07 -07:00
Jim Angel 4c172e0c85 Update Makefile (#14252) 2019-05-09 10:08:51 -07:00
Luc Perkins 8101de9f43 Remove Travis CI dependency (#13598)
* Remove Travis CI dependency

* Make scripts runnable via chmod

* Remove .travis.yml reference in test examples script
2019-04-11 01:40:13 -07:00
Luc Perkins 2354526fe4 Remove --ignoreCache flag (#13133) 2019-03-14 06:52:26 -07:00
Luc Perkins c6dd35ba51 Update to Hugo 0.53 and remove all .Site references (#12079)
* Remove all .Site variable references

* Update Hugo version in Travis CI config and Makefile
2019-02-05 08:33:23 -08:00
Luc Perkins aac7862a06 Upgrade Hugo to 0.52 (#11552)
* Update Hugo version and apply HTML minification to production builds

* Use full flag names for clarity

* Remove Hugo installation logic out of Travis config and into Makefile

* Add Hugo version checking script

* Fix Netlify config version
2019-01-15 10:56:39 -08:00
Lucas Käldström 551489f196 kubeadm GA blog post (#11462)
* kubeadm GA blog post

* Change file name and add post metadata

* Update CSS for blog post tables

* More formatting and wording changes

* Change build process to allow for displaying future blog posts

* Add links to command documentation

* Change blog post date and address PR feedback

* More wording updates
2018-12-04 08:44:17 -08:00
Patrick Lang 420685b976 Fix Makefile and README for make docker-serve on Windows (#10810) 2018-11-13 17:43:59 -08:00
Luc Perkins 57584f982d Add header-checking function (#9880)
* Add basic header-checking function

* Add Slack notification logic

* Modify Netlify Functions setup

* Rework function logic

* Add missing dependencies

* Remove package-lock.json from Git

* Separate header checking function

* Isolate env check into a separate function
2018-10-03 13:04:39 -07:00
Luc Perkins 4c2b56625c Temporarily remove Hugo Pipes Sass conversion (#10373)
* Add new Sass generation system

* Remove resources folder

* Add develop Sass command and sourcemaps

* Add Hugo version shortcode for use in docs

* Add OWNERS file to ./sass folder
2018-10-01 13:38:01 -07:00
Bjørn Erik Pedersen 32014f94b3 Merge missing translations (#10355)
* Merge missing translations

* Disable Norwegian
2018-10-01 12:38:37 -07:00
Luc Perkins b6bb3a60a0 Add _headers file checking logic (#9879)
* Add _headers file checking logic

* Remove netlify_noindex_headers.txt file
2018-08-21 12:51:15 -07:00
Bjørn Erik Pedersen 886514b9e3 netlify: Update to Hugo 0.47.1 (#9910)
The relevant fix for kubernetes.io is the "Page last modified on" line (Git revision info), which in this version now works correctly across languages.
2018-08-21 09:52:13 -07:00
Tim Fogarty f59c0e8235 Change stage target to docker-serve in Makefile (#9216)
* Change stage target to docker-serve in Makefile

docker-serve is documented in the readme (from #9128).

* Update underlying command for make docker-serve

The underlying command listed in the README wasn't exactly the
same as the command in the Makefile.

* Remove old Dockerfile for Jekyll site

PR #9128 added a new Dockerfile for the Hugo site. The old
staging container is no longer needed.
2018-07-27 10:33:57 -07:00
Luc Perkins 1060c00b2a Use Hugo for Sass processing (#9404)
* Move all Sass into a common /assets directory

* Remove node-sass make command

* Change head partial to accommodate full Sass rules

* Bump Hugo version in Netlify config

* Use separate partial for CSS imports

* Bump Hugo version

* Remove PostCSS from the pipeline

* Un-bump version

* Update Hugo version to 0.44

* Update Hugo version in Makefile

* Update production Hugo version

* Fix misspelled variable name

* Add ./resources folder to Git

* Update Hugo version in Netlify config to 0.45.1

* Use un-cached css.html partial

* Re-work extra CSS logic for .Params.css
2018-07-26 02:53:57 -07:00
Luc Perkins f3fb826dc5 Add Docker build capability (#9128)
* Add Dockerfile and make commands

* add background run option

* Expand on OSS attribution in new Dockerfile

* Begin adding README instructions for Docker

* Add new stage command
2018-06-21 10:13:29 -07:00
Bjørn Erik Pedersen 7f3b633aa0 Convert site to Hugo (#8316)
This commit converts content and layout to use Hugo.
2018-05-05 09:00:51 -07:00
tehut 4e22f60956 Blog Migration: Continuation of WIP PR #7144 (#7247)
* WIP

* fixing layouts and assets

updating Gemfile.lock with bundle install (rvm use ruby-2.2.9)

Updated links in header and footer

switch to paginate v2 gem

comment sidebar logic

fixing css regression

retry paginate

updated local ruby version

reverting to original pagination gem

remove text, make heading roboto, next/prev as buttons

* reintoduce dir tree changes

format checking new posts

shrink fab-icons down to 33px

* reintoduce dir tree changes

format checking new posts

shrink fab-icons down to 33px

* next/prev buttons on posts and index

* Change "latest" to v1.10

* rename .md to match old blog and added explict permalinks for urls

* replacing a link to old blog
2018-04-03 14:19:43 -07:00
Rob Young 07931517e3 Update json gem and use bundler
- json 1.8.3 was failing to install on Mac. Upgrading has fixed this.
- Call jekyll through bundler so that Gemfile versions
2017-08-25 14:09:30 +01:00
Andrew Chen f6e51e6611 [glossary] Glossary MVP (#4865)
* [glossary] Glossary MVP

* resolve conflict

* initial pass at includable glossary data

* tag to term mapping

* Change StatefulSets to singular, StatefulSet

* revise glossary style guide, move

* make descriptions plural
2017-08-24 10:51:59 -07:00
Ahmet Alp Balkan a75b15ef5b Create "make stage" for staging container
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-08-07 15:53:08 -07:00
Andrew Chen 817fff899e Remove /redirects.rb (#3305)
Will restore when Prod uses Netlify
2017-04-10 15:12:09 -07:00
David Calavera e64c482469 Add redirect generator to make Netlify's CDN redirect to the right places.
Netlify will redirect with a 301 status to the right places without the
need of a custom javascript file.

The current redirects.js is not removed so production can keep working
as it is for now.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2017-02-03 09:50:23 -08:00
Aaron Signorelli 9300e36e56 Fixing typo .PONY -> .PHONY 2017-01-04 00:38:40 +00:00
David Calavera ac2a52af20
Add Netlify configuration.
- The netlify.toml file explains how to build this site for production
  and deploy previews.
- The Makefile has some commands to make building the site slightly more
  user friendly, try typing `make help`.
- The Gemfile includes all the dependencies exported from GitHub Pages.
  This site might not need all of the but I don't have the knowledge to
  exclude the unused ones.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-09-07 16:37:43 -07:00