Commit Graph

38 Commits

Author SHA1 Message Date
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
mtail 21f7dded86 Disable HTML proofer to allow Netlify to work 2018-06-13 15:03:02 -07:00
mtail 7cc88d6306 Localize the header & footer. 2018-06-11 08:31:34 -07:00
mtail 365a1664c4 Experiment with what Netlify will do... 2018-06-08 17:09:29 -07:00
Martin Taillefer efce7c3a4e Workaround bug in Firefox causing bad formatting in some code blocks. (#1379)
- Fixed syntax highlighting of code blocks with multiple commands.
Each command is now run through the syntax highlighter separately, instead
of mushing all commands into one go. The leading $ is also excluded which
helps the highlighter.

- Fixed the CSS source maps which couldn't be found due to a path problem. Running with Firefox
alerted me to that.

- Add missing JS source maps while I was there.
2018-05-29 22:21:28 -07:00
mtail 951a8ed9f4 Switch from Jekyll to Hugo. 2018-05-25 20:02:32 -07:00