Commit Graph

57 Commits

Author SHA1 Message Date
Nic Cope 74380e6283 Ignore Mermaid styling when purging CSS
Signed-off-by: Nic Cope <nicc@rk0n.org>
2025-03-27 14:38:57 -07:00
Nicholas Thomson 45f61d1c59 Fix box and edge colours of mermaid diagrams
Signed-off-by: Nic Cope <nicc@rk0n.org>
2025-03-27 13:58:21 -07:00
Pete Lumbis e2603a9cc0
API Docs Backend Refactor (#757)
Refactor API rendering to be modular.

Signed-off-by: Pete Lumbis <pete@upbound.io>
2024-04-22 14:51:46 -04:00
Pete Lumbis 15edc91de9
Enable "you are here" table of contents highlighting (#716)
* enable bootstrap scrollspy

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

* enable bootstrap scrollspy

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

* add TOC editing to enable scrollspy styling

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

* move TOC generation to a partial and inject bootstrap scrollspy styling

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

* set scrollspy margin offset

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

---------

Signed-off-by: Pete Lumbis <pete@upbound.io>
2024-02-21 07:06:32 -05:00
Pete Lumbis 83a3d088a9
Fix mermaid diagrams in light/dark mode (#718)
* add mermaid sheets

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

* add styling to mermaid diagrams for dark/light mode. Resolves #592

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

---------

Signed-off-by: Pete Lumbis <pete@upbound.io>
2024-02-16 18:23:20 -05:00
Pete Lumbis 7226eac3fc
Fix table colors in dark mode (#700)
* Add borders to tables

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

* margins and padding around tables

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

* Fix table mode coloring. Resolves #690

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

* table styling fixes

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

---------

Signed-off-by: Pete Lumbis <pete@upbound.io>
2024-02-06 09:15:01 -10:00
Sharp d0e12d0952
Dark Mode Table Legibility (#668)
* attempt at table update

Signed-off-by: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com>

* alignment

Signed-off-by: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com>

---------

Signed-off-by: Rachel Sharp <8883519+tr0njavolta@users.noreply.github.com>
2024-01-04 16:31:48 -05:00
Pete Lumbis 78c2fd3232
fix sidebar colors in mobile darkmode (#660) 2024-01-02 17:32:53 +02:00
Pete Lumbis 3e3343d7b0
Add download YAML and back to top buttons (#656) 2023-12-14 12:28:35 +02:00
Pete Lumbis 5c360ba900
Changes for API support (#642) 2023-12-01 15:11:06 -05:00
Pete Lumbis 6feb7ce6fc
add RSS support for release notes. Resolves #629 (#638) 2023-12-01 12:11:39 -05:00
Pete Lumbis 5dcc5b814a
V1.14 release (#596)
Co-authored-by: Philippe Scorsolini <p.scorsolini@gmail.com>
Co-authored-by: Nic Cope <nicc@rk0n.org>
Co-authored-by: Hasan Turken <turkenh@gmail.com>
2023-11-01 10:47:28 -04:00
Shane Miller 9fb4c45eec
Update code block coloring to work for added/removed lines (#527) 2023-08-09 19:30:20 +02:00
Shane Miller a12284a466
Minor color improvements (#522) 2023-08-08 15:57:15 -04:00
Lovro Sviben 7ac4dc6c82
update management policies with GMP changes (#510)
Co-authored-by: Hasan Turken <turkenh@gmail.com>
2023-08-07 13:02:22 -04:00
Shane Miller b134e9fe71 tabs design
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-04 10:55:20 -07:00
Shane Miller f81f1b0d5b adjust table colors
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-04 10:29:24 -07:00
Shane Miller b2502b43fb adjust base font size
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-04 10:26:17 -07:00
Shane Miller 35a0da5237 Improve H1 Spacing and Improve Tables
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-04 10:23:41 -07:00
Shane Miller 6621db6010 fix extra space in right nav from font spacing work
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-04 09:07:19 -07:00
Shane Miller 8422cccb14 improve typography, spacing, and accordions
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-04 08:51:48 -07:00
Shane Miller 69fb052907 Contrast improvements
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-03 12:31:23 -07:00
Shane Miller 5a959cbfeb update contrast for code snippets
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-03 12:31:23 -07:00
Shane Miller e2ec19a9f6 update contrast for code snippets
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-03 12:31:23 -07:00
Shane Miller 461873082a fix code backgrounds to work on hints/tips
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-03 12:31:23 -07:00
Shane Miller 5bc9fb1b36 improve contrast of hints/tips on light theme
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-03 12:31:23 -07:00
Shane Miller 342c77cb2f increase contrast of hint blocks in dark mode
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-03 12:31:23 -07:00
Shane Miller 01ef15eeb3 update color variables
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-03 12:31:23 -07:00
Shane Miller d5916b7c1e style updates
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-03 12:31:23 -07:00
Shane Miller 5e530319e8 add color variables, update code blocks, update dark theme items
Signed-off-by: Shane Miller <shanecm.ux@gmail.com>
2023-08-03 12:31:23 -07:00
Pete Lumbis d9684d2418
Update and expand Azure QuickStarts (#444)
Co-authored-by: Pete Lumbis <plumbis@users.noreply.github.com>
2023-06-21 11:50:46 -04:00
Pete Lumbis e7235781c7
Exclude tooltip styles from purgecss
Signed-off-by: Pete Lumbis <pete@upbound.io>
2023-05-15 14:12:11 -04:00
Pete Lumbis 0ebb281dc1
Create a popper.js element for slack notification
Signed-off-by: Pete Lumbis <pete@upbound.io>
2023-05-15 12:56:01 -04:00
Pete Lumbis fb5c5a8ea5
add search to the home page. (#421) 2023-05-12 16:02:03 -04:00
Pete Lumbis 5844fef0e5
Support dynamic GA tag (#425) 2023-04-29 14:01:31 -04:00
Pete Lumbis fc8125cf30
Script to clear or reset span contents for editable elements (#374) 2023-03-07 10:49:07 -05:00
Pete Lumbis c3c578916e
Fix dark mode stylings (#379) 2023-03-06 14:38:02 -05:00
Pete Lumbis dad3573e2e
Add style support for copy button highlighting (#372) 2023-03-01 14:04:37 -05:00
Pete Lumbis b8a54f32a2
Make entire sidebar menu clickable (#355)
Resolves https://github.com/crossplane/docs/issues/297
2023-02-10 12:28:05 -05:00
Pete Lumbis aa4efd300e
Fix mobility issues reported by Google Console (#352)
* remove hubspot analytics

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

* move large table output under an expand an inside a responsive table

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

---------

Signed-off-by: Pete Lumbis <pete@upbound.io>
2023-02-09 19:20:12 -05:00
Pete Lumbis 904e864a5c
Adds a $ prompt before the first command in each shell output (#337)
Resolves https://github.com/crossplane/docs/issues/317
2023-02-09 17:27:50 -05:00
Pete Lumbis 85407e88c6
Docs Reorg for v1.11 (#271)
Reorg and new home page for docs.
2023-01-31 18:59:52 -05:00
Pete Lumbis 3bb7b665fe
Create a home landing page and styling to stage for v1.11 reorg (#268)
* Create a home landing page and styling to stage for v1.11 reorg

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

* Fix spacing

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

Signed-off-by: Pete Lumbis <pete@upbound.io>
2023-01-12 22:41:24 -05:00
Pete Lumbis 6bc295c31a
Support styling for bootstrap tables (#249)
Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
2023-01-03 11:32:13 -05:00
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
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