Commit Graph

55 Commits

Author SHA1 Message Date
Martin Taillefer 447d5916f0
Update common files. (#5251) 2019-10-24 09:57:25 -07:00
Martin Taillefer 7f42b415c0
Update common files. (#5244) 2019-10-23 15:55:52 -07:00
Martin Taillefer 9add3b746f Update common files. 2019-10-13 08:39:03 -07:00
Martin Taillefer f8898af7ce
Update common files. (#5117) 2019-10-09 12:33:25 -07:00
Martin Taillefer 51164604be
Update common files. (#5081) 2019-09-29 10:31:30 -07:00
Martin Taillefer 8b56c8c1c1
Update to latest Hugo. (#5058) 2019-09-25 14:07:32 -07:00
Martin Taillefer 5bed8784b9
Update common files. (#5052) 2019-09-25 06:56:54 -07:00
Martin Taillefer 9cbf4ff46b
Update common files and enable more linters. (#4874) 2019-08-29 20:41:08 -07:00
Martin Taillefer a48f05a3e9 Update common files (#4870)
- Enable a bunch of linting rules in the repo, and addressed all the linting
errors
2019-08-29 08:09:32 -07:00
Martin Taillefer 65a92b5cb9
Update common files. (#4824) 2019-08-26 11:15:30 -07:00
Martin Taillefer a442094083 Avoid redudant module downloads when running nodejs stuff. (#4808) 2019-08-19 02:49:33 -07:00
Steven Dake 060a010576 Docs/minification (#4809)
* Build the website with minification

* Update commonfiles

* Add preset-minify to list of presets
2019-08-16 21:51:31 -07:00
Martin Taillefer 1c4e8bf523 Get istio.io working with BUILD_WITH_CONTAINER=1 (#4804)
The default for this repo is to build with the container.
2019-08-16 07:14:29 -07:00
Martin Taillefer 5eb4a59a3d Update common files. (#4770) 2019-08-06 14:03:36 -07:00
Martin Taillefer 5c0e6f58e4
Switch to Tide & Mergify for this repo. (#4743) 2019-07-31 16:00:40 -07:00
Martin Taillefer 34f7e853ed Pass user ID to docker. (#4733) 2019-07-29 14:43:36 +00:00
Martin Taillefer 76a2b5fab2
Use updated container, now built in the tools repo. (#4722) 2019-07-25 15:55:33 -07:00
mtail 9918cc6c96 More archive fixes. 2019-06-19 06:02:19 -07:00
mtail d5013d3cd3 Fixes for the archive site. 2019-06-19 05:41:46 -07:00
Martin Taillefer d65bc53b4e Stop checking in the "generated" directory. (#4365) 2019-06-12 19:48:49 +00:00
Martin Taillefer 3663043551
Import common files into this repo. (#4246) 2019-05-31 05:01:37 -07:00
Martin Taillefer 652e05159a
Upgrade to Hugo 0.55.5 (#4095) 2019-05-03 21:47:45 -07:00
Martin Taillefer 2ca67fd5b5
Improve linting (#4083)
- 'make lint' no longer purges the HTMLProofer cache, which considerably improves perf when doing
repeated lints.

- Fix patterns used in lint_site.sh to be more selective in order to avoid linting SVG files and
other such things.
2019-05-01 10:37:38 -07:00
mtail f5cfde45a8 Couple fixes.
- Add a "make clean" target that deletes various directories produced when locally building
the site.

- Clean the tree before "make lint". This removes any stale files from the public directory,
which is important since those can lead to spurious lint errors.

- Stop passing the no-longer-existing -minify argument to gen_site.sh.
2019-04-29 14:48:21 -07:00
Martin Taillefer 93ee2d86f0
Site improvements (#4043)
- A few small additions that make it possible to build archive.istio.io
directly from here, instead of having a dedicated set of hacks in
the admin-sites repo.
2019-04-25 12:18:14 -07:00
Martin Taillefer 533a3efc0e
Merge from release-1.1 branch (#4012) 2019-04-20 08:16:09 -07:00
Martin Taillefer 22f520809f
Use server-side redirects instead of alias files for better experience. (#3799) 2019-03-20 09:38:18 -07:00
Martin Taillefer 0e1dd164e7
Clean up some of the build procedures a bit. (#3489) 2019-03-04 07:51:41 -08:00
Martin Taillefer 6db37da6a1
Add the svgo tool to the docker image. (#3466) 2019-03-03 07:21:07 -08:00
Martin Taillefer dd0ecdf9ab
Site improvements (#3430)
- Add linter support to detect internal links to aliases. Those are now flagged as
bad links so the source needs to be updated to point to the real destination,
avoiding the user a redirect.

- Fixed occurences of links to aliases.

- Now only load popper.js on pages that use popups in order to improve
load times.
2019-02-28 13:58:54 -08:00
Steven Dake 2de5e147ac Makefile override bind (#3319)
* Permit override of the serve domain

When I use `serve` I serve from a remote server.  I have hand modified
the Makefile for ages to allow me to override the serve location so that
hugo renders and links the site properly.  Document how to do this and
encode it within the Makefile.

* Clean up expectations
2019-02-21 07:52:30 -08:00
Martin Taillefer 3eba576a89
JavaScript cleanup (#3253)
- Upgrade from UglifyJS to Babel as a JS preprocessor. This lets me use modern ES6 syntax
in the JS code.

- Update JS code to leverage ES6.

- Remove most dependencies on JQuery for faster & smaller code. Once I remove the
dependency on the Bootstrap library, then the dependency on JQuery will also completely
go away.
2019-02-13 10:10:28 -08:00
Martin Taillefer 6fbbc5525d
Update to Hugo 0.54 (#3242) 2019-02-12 19:25:03 -08:00
Vincent 4fd40a24c7 New option: Let linter ignore the external links (#3046)
* let linter ignore the external links

* fixed: typo
2019-01-07 09:58:44 -08:00
Martin Taillefer 1d8f547826
Update to Hugo 0.51 (#2921) 2018-11-26 16:51:25 -08:00
Chunlin Yang 20fbebf20b Add baseURL (#2861)
Signed-off-by: clyang82 <clyang@cn.ibm.com>
2018-11-12 09:37:38 -08:00
Martin Taillefer 28900ad96c
Improve spell checking command so we get colorized output. (#2752) 2018-10-08 22:31:10 -07:00
Martin Taillefer f902b3132e
Update to Hugo 0.49 (#2746) 2018-10-05 23:35:11 -07:00
Martin Taillefer 0a4264417f
Site improvements (#2633)
- Use a new approach to managing icons. This has two primary benefits:

  - It makes it possible to color the icons such that they look good in the
    dark theme. Previously, the icons were rendered in black on dark grey when
    using the dark theme.

  - The average payload size for our web pages is reduced and we better use the
    browser cache.

- The new icon approach makes it possible to remove our dependency on the fontawesome
  package, which further slims down our payload requirement

- Refresh our iconography for a slightly lighter look.

- Remove the extra thick left-hand border of text blocks to lighten the
look.

- Added a "NN minutes to read" indication on top of each page. This is
only displayed if the count is > 1 minute.

- Added a calendar icon next to the blog post date.

- Exposed a bunch of strings that were buried in CSS/JS to translation.

- Add the 'keywords:' front-matter fields to the Hugo archetypes.
2018-09-17 08:52:23 -07:00
Martin Taillefer 77a5540c04
Upgrade to Hugo 0.48 (#2471)
Take advantage of the simplified template syntax introduced in 0.48
in a bunch of places.
2018-08-30 07:24:52 -07:00
Martin Taillefer be7c374f29
Switch to Hugo 0.47 (#2288)
- Fixes the bug where not all of our files would get the right lastmod
time extracted from GitHub.

- Fixes most of the cases of bad HTML output around the use of {{<text>}}. There's
still a single bad case which I'll report to the Hugo folks.

- Use Hugo's new --minify option to minify HTML instead of having to use the
separate and slow html-minifier program.

- Fix some bad HTML on the landing page.
2018-08-17 22:33:16 -07:00
Martin Taillefer a1b483a7f2
Update to latest Hugo (#1821) 2018-07-14 06:32:22 -07:00
Martin Taillefer 0ebbdb3fdc
Add a netlify.toml file to control options. (#1532) 2018-06-17 07:51:45 -07:00
Martin Taillefer 5ce2c7bb2d
Bunch 'o fixes (#1529)
- Make "make serve" actually work.

- Eliminate superfluous "scroll left nav into view" button on screens that don't have a sidebar
(community & search result). Only matters on mobile.

- Fix unpleasant wrapping in the footer when on mobile.
2018-06-15 20:38:36 -07:00
Martin Taillefer d9b2eb2848
Remove all target since Netlify has been updated. (#1527) 2018-06-15 17:08:01 -07:00
Martin Taillefer 857f86abad
Update Makefile for simplified Netlify scheme. (#1525) 2018-06-15 17:02:08 -07:00
mtail 294745977c Reenable HTML proofer 2018-06-14 08:49:13 -07:00
mtail 7b4d83d0a0 Disable htmlproofer again. 2018-06-14 08:34:22 -07:00
mtail cfec7b5605 Redirect users to update bug entry page. 2018-06-14 08:22:58 -07:00
mtail b97b242548 Reenable HTMLProofer now that Netlify is happy. 2018-06-13 15:09:46 -07:00