Commit Graph

1310 Commits

Author SHA1 Message Date
Pete Lumbis d0093bb333
Removes links to docs user survey (#253)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2023-01-03 10:56:47 -05:00
Pete Lumbis 9f9d28b0aa
Color and underline single commands that are also links (#244)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-29 14:08:58 -05:00
Pete Lumbis 4ade356697
Fix accordian header margin. Regression caused by the fix for #230 (#245)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-29 14:08:41 -05:00
Pete Lumbis 96949f1612
Highlight codeblocks on hover (#238)
adds support for "hover highlight" in code blocks.
2022-12-28 13:58:45 -05:00
Crossplane d3fdfab876 docs snapshot for crossplane version `master` 2022-12-28 18:31:25 +00:00
Crossplane 4c35456406 docs snapshot for crossplane version `master` 2022-12-26 09:24:59 +00:00
Crossplane 261400307d docs snapshot for crossplane version `master` 2022-12-19 08:08:19 +00:00
Pete Lumbis 7c169ed860
Add Zone.Identifier. Resolves #239 (#240)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-16 12:44:06 -05:00
Pete Lumbis adc2ec4098
Update heading font sizes and make them responsive with RFS. Resolves #230 (#241)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-16 12:43:57 -05:00
Pete Lumbis a1f6f69bcb
Code copy (Take 2) (#237)
Adds a copy to clipboard button using Clipboard.js
Optional support for defining which lines to copy out of the code box.
Adds styling and anchor links to the line numbers
Adds support to link to line number anchors inside tabs
Removes line numbers from tables (no user impact, changes styling and JS element targeting)
Makes the top NAV not sticky. This is required to make the line number anchors work. Otherwise the line number linked to will go under the navbar and not be in view. Fixing this with a sticky nav is a very large lift (for me). Also note, the side bars are still sticky.
Removes clipboard scsss files. All clipboard related styles are merged into code-theme-base.scss
Also applies Hugo caching fixes that can cause the stylesheet not to load in local dev (discovered in this PR)
2022-12-16 09:23:53 -05:00
Pete Lumbis 37748344fa
Add a survey banner (#231)
* add survey banner
2022-12-15 15:41:22 -05:00
Crossplane c1c1cc386c docs snapshot for crossplane version `v1.10` 2022-12-13 14:38:36 +00:00
Crossplane 9fd142c5c8 docs snapshot for crossplane version `master` 2022-12-13 04:43:38 +00:00
Crossplane 86993c7912 docs snapshot for crossplane version `master` 2022-12-12 22:23:07 +00:00
Crossplane 5e0987e2ff docs snapshot for crossplane version `v1.9` 2022-12-12 22:20:45 +00:00
Crossplane 3a4124b130 docs snapshot for crossplane version `v1.10` 2022-12-12 22:19:10 +00:00
Crossplane d545e5b01d docs snapshot for crossplane version `v1.8` 2022-12-12 22:18:46 +00:00
Pete Lumbis dd80b838c5
Adds Algolia DocSearch components and manual style overrides (#226)
* Adds Algolia DocSearch components and manual style overrides

Signed-off-by: Pete Lumbis <pete@upbound.io>

* Auto close menu on mobile when search box is clicked

Signed-off-by: Pete Lumbis <pete@upbound.io>

* Add search hotkey indicators

Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-09 13:20:25 -05:00
Pete Lumbis 83fbecce6d
Fix spacing when browser size is below 1200px wide. Fixes #227 (#228)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-09 11:32:54 -05:00
Crossplane 225a3a038d docs snapshot for crossplane version `master` 2022-12-08 03:28:18 +00:00
Pete Lumbis 8035aeb336
Add incubating to CNCF label (#225)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-07 15:07:53 -05:00
Crossplane bf9aeb13d9 docs snapshot for crossplane version `master` 2022-12-05 23:44:26 +00:00
Daniel Mangum 855cd18a36
Merge pull request #224 from hasheddan/rm-symlinks
Drop symlink to master directory
2022-12-05 18:39:37 -05:00
hasheddan ea3dcbc4a0
Drop symlink to master directory
Drops symlink to master directory so that the directory itself can be
re-inserted on next merge.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2022-12-05 17:45:52 -05:00
Pete Lumbis dca8be26ca
Rebuild styles and layout for Navbar to match www.crossplane layout. Address #217 (#223)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-05 17:09:25 -05:00
Pete Lumbis 7eca1c4a3d
Makes left-hand nav sticky. Resolves #218 (#221)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-05 17:09:05 -05:00
Crossplane 87253feb22 docs snapshot for crossplane version `master` 2022-12-05 20:50:18 +00:00
Pete Lumbis 4533f0abbe
Add collapsed class by default and update styles for X (#222)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-03 13:32:50 -05:00
Pete Lumbis fccc873ee3
Removes Github Action that publishes Github Pages. Pages is no longer used for docs publishing (#212)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2022-12-03 09:59:50 -05:00
Crossplane 88ccc41967 docs snapshot for crossplane version `v1.10` 2022-12-03 14:35:38 +00:00
Crossplane a469573353 docs snapshot for crossplane version `master` 2022-12-03 14:34:28 +00:00
Crossplane 9f719f15e7 docs snapshot for crossplane version `v1.10` 2022-12-02 15:38:55 +00:00
Crossplane 0006408e86 docs snapshot for crossplane version `master` 2022-12-02 15:32:13 +00:00
Crossplane 998119a9d6 docs snapshot for crossplane version `master` 2022-12-02 13:17:50 +00:00
Crossplane 77f7c3401a docs snapshot for crossplane version `v1.10` 2022-12-02 12:58:03 +00:00
Crossplane 90db6ed8f6 docs snapshot for crossplane version `master` 2022-12-01 22:07:34 +00:00
Crossplane b5ae460f09 docs snapshot for crossplane version `v1.9` 2022-12-01 21:48:38 +00:00
Crossplane ec79756e2b docs snapshot for crossplane version `v1.10` 2022-12-01 21:47:53 +00:00
Crossplane 537b881736 docs snapshot for crossplane version `v1.8` 2022-12-01 21:47:31 +00:00
Crossplane dd68f7e9dc docs snapshot for crossplane version `master` 2022-12-01 17:18:34 +00:00
Crossplane 6d1813ebb7 docs snapshot for crossplane version `v1.9` 2022-12-01 17:04:14 +00:00
Crossplane 64e9a1b77f docs snapshot for crossplane version `v1.10` 2022-12-01 16:51:55 +00:00
Crossplane 2cf952e84a docs snapshot for crossplane version `v1.8` 2022-12-01 16:35:34 +00:00
Pete Lumbis f1e0f4d865
Docs redesign (#210)
This completely redesigns the docs and moves them to a new domain docs.crossplane.io and hosting on Netlify. 

This creates a custom Hugo theme affectionally called `Geekboot` based the work of both [Geekdoc](https://geekdocs.de/) and [Bootstrap](https://github.com/twbs/bootstrap/tree/main/site).

[Lighthouse testing on desktop](https://pagespeed.web.dev/report?url=https%3A%2F%2Fdocs.crossplane.io%2Fv1.10%2F&form_factor=desktop) gives the site a 100/100 in performance and best practices, 90/100 in accessibility and 92/100 in SEO.

Besides new layout and colors other new user-facing features include:
* Dark mode
* Fully responsive design and mobile ready
* Automated webp image conversion and optimization as well as lazy loading
* Tabs 
* Alerts and hint boxes
* Foldable/hide long outputs
* Linkable anchors inside tabs
* Improved code boxes with line numbers 
* Adds support for docs.crossplane.io/latest
* Right hand page table of contents 
* Improved text readability 

Infrastructure improves:
* Uses [Bootstrap](https://getbootstrap.com/) to dramatically simplify styling and site development 
* Prefetch links on hover using [instant.page](https://instant.page/)
* Highly optimized CSS using PostCSS and [PurgeCSS ](https://purgecss.com/) without requiring users to install additional tools
* Minimizes the use of JavaScript and bundles scripts with [Webpack](https://webpack.js.org/) to optimize load times
* Massive improvement of SCSS/CSS organization and overrides improving the development process for stylesheet changes
* Optimizes existing SVGs and converts all other template images to webp
* Minification on production builds to further reduce page sizes

This also bumps the `Makefile` Hugo version to [0.107.0](https://github.com/gohugoio/hugo/releases/tag/v0.107.0) to pick up build improvements related to code syntax highlighting, improving builds about about 20-30% in unscientific testing.
2022-12-01 11:11:29 -05:00
Crossplane 6c606dcbef docs snapshot for crossplane version `master` 2022-12-01 14:19:51 +00:00
Crossplane df2ab44041 docs snapshot for crossplane version `master` 2022-11-30 01:56:07 +00:00
Crossplane b41b8c6d48 docs snapshot for crossplane version `v1.10` 2022-11-30 01:38:31 +00:00
Crossplane cee2291c5b docs snapshot for crossplane version `master` 2022-11-28 22:33:05 +00:00
Crossplane a480f43bfd docs snapshot for crossplane version `master` 2022-11-28 17:22:15 +00:00
Crossplane 1620c20c06 docs snapshot for crossplane version `v1.10` 2022-11-28 17:13:00 +00:00