Skip to content

Commit 095ac45

Browse files
committed
Squashed commit of the following:
commit 882f7a3 Author: Hanqing Huang <[email protected]> Date: Thu Mar 3 15:16:11 2022 -0800 Update check-source commit f7ce4c6 Author: Hanqing Huang <[email protected]> Date: Thu Mar 3 15:15:09 2022 -0800 Update check-source commit 623564b Merge: 3f83bef 0fad744 Author: Hanqing Huang <[email protected]> Date: Thu Mar 3 15:01:37 2022 -0800 Merge branch 'hqhuang/remove-right-side-bar' of github.com:hqhhuang/swift-docc-render into hqhuang/remove-right-side-bar commit 3f83bef Author: Hanqing Huang <[email protected]> Date: Thu Mar 3 14:54:16 2022 -0800 squash style change commit 0fad744 Merge: e3e7c1a 773e7be Author: Hanqing Huang <[email protected]> Date: Thu Mar 3 10:16:03 2022 -0800 Merge pull request #2 from hqhhuang/fix-spacing-with-sidebar Fix body content spacing when there is a sidebar commit 773e7be Author: Hanqing Huang <[email protected]> Date: Thu Mar 3 09:42:54 2022 -0800 fix content spacing with sidebar fix content spacing with sidebar commit e3e7c1a Merge: d7befa0 5298f23 Author: Hanqing Huang <[email protected]> Date: Wed Mar 2 21:46:39 2022 -0800 Merge remote-tracking branch 'dobri/dhristov/add-sidenav-hero-v2' into hqhuang/remove-right-side-bar commit d7befa0 Merge: 88cd1f4 914871d Author: Hanqing Huang <[email protected]> Date: Wed Mar 2 21:20:10 2022 -0800 Merge remote-tracking branch 'upstream/main' into hqhuang/remove-right-side-bar commit 88cd1f4 Merge: 3c21d07 527827c Author: Hanqing Huang <[email protected]> Date: Tue Feb 22 10:49:11 2022 -0800 Merge remote-tracking branch 'upstream/main' into hqhuang/remove-right-side-bar commit 3c21d07 Merge: ada1313 cf0b5f7 Author: Hanqing Huang <[email protected]> Date: Mon Feb 21 09:30:40 2022 -0800 Merge branch 'dhristov/add-sidenav-hero' into hqhuang/remove-right-side-bar commit cf0b5f7 Author: Marina Aísa <[email protected]> Date: Mon Feb 21 18:29:25 2022 +0100 fix: conflicts commit ada1313 Merge: c3664b8 cd3cca0 Author: Hanqing Huang <[email protected]> Date: Mon Feb 21 09:19:50 2022 -0800 Merge branch 'dhristov/add-sidenav-hero' into hqhuang/remove-right-side-bar commit cd3cca0 Merge: 5135587 790efff Author: Marina Aísa <[email protected]> Date: Mon Feb 21 18:09:32 2022 +0100 Merge remote-tracking branch 'upstream/main' into dhristov/add-sidenav-hero commit c3664b8 Author: Hanqing Huang <[email protected]> Date: Mon Feb 21 00:52:51 2022 -0800 fix import for throttle - 2 fix import for throttle - 2 commit 802f4ff Author: Hanqing Huang <[email protected]> Date: Mon Feb 21 00:48:27 2022 -0800 fix import for throttle fix import for throttle commit 5135587 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 18 13:36:34 2022 +0200 fix: add dynamic-content-container mixin to the DocumentationHero commit 4162531 Merge: 6bf0711 e522b1f Author: Dobromir Hristov <[email protected]> Date: Fri Feb 18 13:34:56 2022 +0200 Merge branch 'dhristov/add-sidenav' into dhristov/add-sidenav-hero # Conflicts: # src/components/DocumentationTopic/Title.vue commit e522b1f Author: Dobromir Hristov <[email protected]> Date: Fri Feb 18 12:21:07 2022 +0200 feat: update the content breakpoints, to have an xlarge value, applying extra padding to the dynamic content mixin commit d58f443 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 18 11:00:38 2022 +0200 fix: make sure container styling properly falls back to none-dynamic content styling commit f78df87 Author: Hanqing Huang <[email protected]> Date: Fri Feb 18 00:56:02 2022 -0800 Fix no overview bug Fix no overview bug commit 6ae1032 Merge: 10bc106 9601c06 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 18 08:35:21 2022 +0200 Merge pull request #5 from mportiz08/sidenav-feature-flag Hide new navigator UX behind a feature flag commit 9601c06 Author: Marcus Ortiz <[email protected]> Date: Thu Feb 17 15:50:29 2022 -0800 Fix import. commit fdae435 Author: Marcus Ortiz <[email protected]> Date: Thu Feb 17 15:26:38 2022 -0800 Fix broken tests. commit e15e47d Author: Marcus Ortiz <[email protected]> Date: Thu Feb 17 14:56:06 2022 -0800 Add theme-setting feature flag for navigator. commit aadb0a5 Author: Marcus Ortiz <[email protected]> Date: Thu Feb 17 14:45:17 2022 -0800 Add `enableNavigator` prop. This will act as a feature flag to enable the new sidebar/navigator UX. commit 255494e Author: Hanqing Huang <[email protected]> Date: Thu Feb 17 11:23:37 2022 -0800 Fix header spacing for failing tests Fix header spacing for failing tests commit 51ce3be Author: Hanqing Huang <[email protected]> Date: Thu Feb 17 11:11:47 2022 -0800 Font, padding, border radius changes Font, padding, border radius changes commit 2e75537 Author: Hanqing Huang <[email protected]> Date: Thu Feb 17 10:50:09 2022 -0800 Address Marina's PR feedback Address Marina's PR feedback commit 7d157be Author: Hanqing Huang <[email protected]> Date: Thu Feb 17 10:21:38 2022 -0800 Address PR feedback: mobile view, spacings Address PR feedback: mobile view, spacings commit 76d6537 Author: Hanqing Huang <[email protected]> Date: Wed Feb 16 14:17:31 2022 -0800 Topics Section and Ribbon Style Change Topics Section and Ribbon Style Change & Fix test. commit 22a91a3 Author: Hanqing Huang <[email protected]> Date: Tue Feb 15 22:19:10 2022 -0800 Remove right side bar; add availability Remove right side bar; add availability commit 6bf0711 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 19:41:45 2022 +0200 Revert "refactor: remove the DocumentationHero from DocumentationTopic" This reverts commit 10bc106 commit 10bc106 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 13:24:31 2022 +0200 refactor: remove the DocumentationHero from DocumentationTopic commit 06ae412 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 17:52:02 2022 +0200 Update src/components/Navigator/HighlightMatches.vue Co-authored-by: Marina Aísa <[email protected]> commit 0a4bd48 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 17:51:10 2022 +0200 fix: copy year commit 8352daf Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 15:28:34 2022 +0200 chore: change copyright year in header for new files commit d528929 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 15:11:28 2022 +0200 fix: make sure we only use persisted values, if all of the UIDs match what is currently available commit b5710af Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 15:01:28 2022 +0200 fix: scroll locking on iOS for AdjustableSidebarWidth commit 176c9b2 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 14:04:57 2022 +0200 refactor: make sure toggle button has a wider trigger area commit 115ce02 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 11:22:17 2022 +0200 chore: add more explanation to Hierarchy changes commit 995b58c Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 10:14:15 2022 +0200 fix: update check-source to accept 2022 commit 5fee7cd Author: Dobromir Hristov <[email protected]> Date: Thu Feb 17 10:01:26 2022 +0200 refactor: updates from PR reviews commit 6643384 Author: Dobromir Hristov <[email protected]> Date: Wed Feb 16 10:46:00 2022 +0200 refactor: update types commit 5ac0e58 Author: Dobromir Hristov <[email protected]> Date: Wed Feb 16 10:16:14 2022 +0200 chore: revert change to --color-nav-hierarchy-collapse-background commit 4949537 Author: Dobromir Hristov <[email protected]> Date: Wed Feb 16 10:10:06 2022 +0200 fix: increase the tree-toggle size a bit more commit 02b7561 Author: Dobromir Hristov <[email protected]> Date: Wed Feb 16 09:52:01 2022 +0200 fix: unable to drag scrollbar commit 6a4253b Author: Dobromir Hristov <[email protected]> Date: Tue Feb 15 15:40:29 2022 +0200 chore: add tests commit 6f6f8d8 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 10:38:42 2022 +0200 refactor: small changes to hierarchy toggle colors commit 2549eec Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 10:02:44 2022 +0200 refactor: reduce items to show, if has badge commit a09bf18 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 3 13:48:05 2022 +0200 refactor: Hierarchy.vue component to show more items at once commit 3613a7c Author: Dobromir Hristov <[email protected]> Date: Wed Feb 2 10:52:12 2022 +0200 refactor: extract nav wide padding commit add0382 Author: Dobromir Hristov <[email protected]> Date: Tue Feb 1 11:28:28 2022 +0200 fix: update the font style for nav toggles commit 23c9cc6 Author: Dobromir Hristov <[email protected]> Date: Fri Jan 21 15:57:08 2022 +0200 feat: introduce wide-format boolean to the NavBase commit ed28ee7 Author: Dobromir Hristov <[email protected]> Date: Tue Feb 15 13:11:56 2022 +0200 fix: bad path do TopicTypes commit 476b668 Author: Dobromir Hristov <[email protected]> Date: Tue Feb 15 13:06:41 2022 +0200 chore: add header commit 7baf34f Author: Dobromir Hristov <[email protected]> Date: Tue Feb 15 12:04:56 2022 +0200 fix: update to new interfaceLanguage property commit f452302 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 11 09:54:44 2022 +0200 refactor: change kind to type, and change the navigator path commit 1cb0b95 Author: Dobromir Hristov <[email protected]> Date: Tue Feb 15 11:47:21 2022 +0200 chore: update the sidenav icon commit fad14c0 Author: Dobromir Hristov <[email protected]> Date: Tue Feb 15 11:39:03 2022 +0200 chore: update vertical card spacing on NavigatorCard.vue commit 5cdcd62 Author: Dobromir Hristov <[email protected]> Date: Tue Feb 15 09:50:45 2022 +0200 fix: set a hard height on the Navigator commit 95f3b49 Author: Dobromir Hristov <[email protected]> Date: Mon Feb 14 18:53:21 2022 +0200 chore: add tests to Navigator.vue commit a9630fc Author: Dobromir Hristov <[email protected]> Date: Mon Feb 14 14:20:49 2022 +0200 refactor: allow opening a direct match of a filter query commit ea544d5 Author: Dobromir Hristov <[email protected]> Date: Mon Feb 14 09:38:44 2022 +0200 refactor: remove the extraInfo functionality commit 996760f Author: Dobromir Hristov <[email protected]> Date: Mon Feb 14 09:14:17 2022 +0200 fix: issue with growing toggle commit 05f5f87 Author: Dobromir Hristov <[email protected]> Date: Mon Feb 14 09:06:36 2022 +0200 fix: fallback to using the `role`, if no symbolKind commit fe89619 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 11 11:40:18 2022 +0200 fix: issues with scrolling on mobile commit 3178cda Author: Dobromir Hristov <[email protected]> Date: Fri Feb 11 08:30:52 2022 +0200 refactor: update the navigator highlight and hover colors commit 45ed7e8 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 10 14:49:43 2022 +0200 refactor: make header a link commit 0f31e8d Author: Dobromir Hristov <[email protected]> Date: Thu Feb 10 14:13:53 2022 +0200 fix: NavigatorCard inner padding commit 43d5b50 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 10 14:04:20 2022 +0200 fix: tree-toggle size commit a7ea56f Author: Dobromir Hristov <[email protected]> Date: Thu Feb 10 13:52:32 2022 +0200 fix: add animation to adjustable aside contents commit 82fef42 Author: Dobromir Hristov <[email protected]> Date: Thu Feb 10 13:36:21 2022 +0200 refactor: make the DocumentationHero vertical padding uniform commit 603176d Author: Dobromir Hristov <[email protected]> Date: Thu Feb 10 13:25:42 2022 +0200 feat: add dark variant for the fill-light-blue color commit 930427f Author: Dobromir Hristov <[email protected]> Date: Wed Feb 9 11:06:19 2022 +0200 refactor: hero colors commit d20a72f Author: Dobromir Hristov <[email protected]> Date: Wed Feb 9 11:31:36 2022 +0200 refactor: cleanup the navigator spacing and colors commit 52cd940 Author: Dobromir Hristov <[email protected]> Date: Wed Feb 9 09:50:11 2022 +0200 chore: replace icons commit 70b3eb5 Author: Dobromir Hristov <[email protected]> Date: Tue Feb 8 18:49:23 2022 +0200 chore: add tests commit 5fb281d Author: Dobromir Hristov <[email protected]> Date: Tue Feb 8 11:02:03 2022 +0200 refactor: replace topic icons commit 49c083d Author: Dobromir Hristov <[email protected]> Date: Mon Feb 7 20:26:26 2022 +0200 fix: icon opacity commit 00ed788 Author: Dobromir Hristov <[email protected]> Date: Mon Feb 7 18:24:23 2022 +0200 fix: minor API changes fix commit 71905fb Author: Dobromir Hristov <[email protected]> Date: Mon Feb 7 17:16:47 2022 +0200 chore: fix merge conflicts and flaky tests commit 1b77aaa Merge: 9bf1d14 44edd61 Author: Dobromir Hristov <[email protected]> Date: Mon Feb 7 17:11:36 2022 +0200 Merge branch 'main' into dhristov/add-sidenav commit 9bf1d14 Author: Dobromir Hristov <[email protected]> Date: Mon Feb 7 12:17:39 2022 +0200 fix: remove flashing when going from Medium to Small commit b1b7a79 Author: Dobromir Hristov <[email protected]> Date: Mon Feb 7 11:49:24 2022 +0200 chore: fix minor lint issues commit 80bc937 Author: Dobromir Hristov <[email protected]> Date: Mon Dec 20 19:08:24 2021 +0200 refactor: implement new design for Hero commit 5b3f8b2 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 19:08:30 2022 +0200 fix: add responsive constraints on AdjustableSidebarWidth commit 764bdfb Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 15:22:42 2022 +0200 chore: cleanup + tests commit d7dd547 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 14:38:35 2022 +0200 chore: add tests to AdjustableSidebarWidth commit 84129e9 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 12:17:11 2022 +0200 fix: navigator width issues when resizing/rotating device commit 36014fc Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 11:29:45 2022 +0200 fix: close the mobile sidenav, if clicking esc or on route change (going back or clicking on item) commit 88d2a82 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 11:21:31 2022 +0200 refactor: make sure navigator works, even if request errors out commit a385af1 Merge: 62a1ff2 268befc Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 11:04:10 2022 +0200 Merge branch 'dhristov/sidenav-move-sidenav-to-view' into dhristov/add-sidenav commit 62a1ff2 Author: Dobromir Hristov <[email protected]> Date: Fri Feb 4 09:39:04 2022 +0200 fix: make sure icon does not shrink commit 4444ecc Author: Dobromir Hristov <[email protected]> Date: Thu Feb 3 14:08:58 2022 +0200 refactor: make icons more square commit f21226f Author: Dobromir Hristov <[email protected]> Date: Tue Feb 1 13:00:50 2022 +0200 fix: make navigatoricons colors optional commit 268befc Merge: 4cebef8 6047c05 Author: Dobromir Hristov <[email protected]> Date: Tue Feb 1 12:53:31 2022 +0200 Merge branch 'dhristov/add-sidenav' into dhristov/sidenav-move-sidenav-to-view commit 4cebef8 Author: Dobromir Hristov <[email protected]> Date: Tue Feb 1 12:44:31 2022 +0200 fix: issues with apiChangesObserving commit 6047c05 Author: Dobromir Hristov <[email protected]> Date: Mon Jan 31 15:32:41 2022 +0200 fix: make sure regex matcher works as expected commit a7a2f11 Author: Dobromir Hristov <[email protected]> Date: Mon Jan 31 12:31:30 2022 +0200 fix: safari bug with icons commit 88571ea Author: Dobromir Hristov <[email protected]> Date: Mon Jan 31 12:23:19 2022 +0200 chore: add extra descriptions commit 9118ae8 Author: Dobromir Hristov <[email protected]> Date: Wed Jan 26 14:50:55 2022 +0200 fix: scrollToElement when persisted, and fix filtered persistence commit 53b1359 Author: Dobromir Hristov <[email protected]> Date: Wed Jan 26 14:23:20 2022 +0200 feat: persist to session storage the state of the navbar commit 633971c Author: Dobromir Hristov <[email protected]> Date: Mon Jan 31 09:36:20 2022 +0200 chore: add extra tests to apiChangesObserving.spec.js commit 609f4e8 Author: Dobromir Hristov <[email protected]> Date: Mon Jan 31 08:54:17 2022 +0200 chore: fix tests commit 1c3f618 Author: Dobromir Hristov <[email protected]> Date: Tue Jan 25 18:32:15 2022 +0200 fix: issues with API changes on the navigation bar commit 7d85b0a Merge: 3902023 de67b8a Author: Dobromir Hristov <[email protected]> Date: Thu Jan 27 18:49:05 2022 +0200 Merge branch 'dhristov/add-sidenav' into dhristov/sidenav-move-sidenav-to-view commit de67b8a Author: Dobromir Hristov <[email protected]> Date: Thu Jan 27 18:47:47 2022 +0200 fix: path commit 3902023 Author: Dobromir Hristov <[email protected]> Date: Fri Jan 21 14:49:11 2022 +0200 fix: merge conflict commit 82ac1e7 Author: Dobromir Hristov <[email protected]> Date: Fri Jan 21 10:38:41 2022 +0200 fix: add max-width commit 95efff7 Author: Dobromir Hristov <[email protected]> Date: Tue Jan 18 08:31:27 2022 +0200 refactor: move navigator and nav to the view component commit 3b059eb Author: Dobromir Hristov <[email protected]> Date: Wed Jan 26 18:45:36 2022 +0200 feat: allow toggling the entire tree with alt + click commit c0eeba2 Author: Dobromir Hristov <[email protected]> Date: Wed Jan 26 09:55:08 2022 +0200 feat: enable groupMarkers and use default index commit ca5b632 Author: Dobromir Hristov <[email protected]> Date: Wed Jan 26 09:54:45 2022 +0200 chore: fix spacing commit 925edf6 Author: Dobromir Hristov <[email protected]> Date: Mon Jan 24 10:27:23 2022 +0200 feat: bold the current page and its parents commit db5fb1e Author: Dobromir Hristov <[email protected]> Date: Fri Jan 21 14:35:43 2022 +0200 refactor: reduce item height commit f71e95b Author: Dobromir Hristov <[email protected]> Date: Fri Jan 21 13:00:30 2022 +0200 refactor: styling changes to the Sidenav commit a492305 Author: Dobromir Hristov <[email protected]> Date: Fri Jan 21 10:41:08 2022 +0200 chore: add tests commit b41f817 Author: Dobromir Hristov <[email protected]> Date: Wed Jan 19 18:39:39 2022 +0200 chore: add tests commit f95c515 Author: Dobromir Hristov <[email protected]> Date: Wed Jan 19 17:37:20 2022 +0200 fix: add maxWidth to AdjustableSidebarWidth, add tests. commit 9286a69 Author: Dobromir Hristov <[email protected]> Date: Tue Jan 18 10:10:49 2022 +0200 fix: bail searches early, to save compute power commit 64ba64d Author: Dobromir Hristov <[email protected]> Date: Tue Jan 18 09:27:59 2022 +0200 fix: properly highlight the active item. Keep open nodes across page navigation commit 93f0d9c Author: Dobromir Hristov <[email protected]> Date: Mon Jan 17 13:43:54 2022 +0200 refactor: cleanup NavigatorCard.vue commit 0a1840f Author: Dobromir Hristov <[email protected]> Date: Mon Jan 17 13:18:46 2022 +0200 fix: styling fixes to the sidenav commit fa73805 Author: Dobromir Hristov <[email protected]> Date: Fri Jan 14 12:15:50 2022 +0200 refactor: update the HighlightMatches component commit 29a2602 Author: Dobromir Hristov <[email protected]> Date: Fri Jan 14 11:41:05 2022 +0200 refactor: make page 100% height commit 2ccbad6 Author: Dobromir Hristov <[email protected]> Date: Fri Jan 14 11:05:52 2022 +0200 refactor: use a flat tree representation for Navigator commit c38489f Author: Dobromir Hristov <[email protected]> Date: Mon Jan 10 20:17:54 2022 +0200 feat: add wide breakpoint support commit 3402167 Author: Dobromir Hristov <[email protected]> Date: Thu Dec 23 10:37:14 2021 +0200 feat: add the module icon commit e4834ba Author: Dobromir Hristov <[email protected]> Date: Thu Dec 23 09:36:47 2021 +0200 refactor: fallback to glyph-gray on navigator icons commit 20cfa90 Author: Dobromir Hristov <[email protected]> Date: Wed Dec 22 18:37:22 2021 +0200 refactor: change the name of the TopicKindProps map commit d4e2440 Author: Dobromir Hristov <[email protected]> Date: Wed Dec 22 15:58:33 2021 +0200 refactor: navigator icons, colors and mapping commit 8a489e0 Author: Dobromir Hristov <[email protected]> Date: Tue Dec 21 13:54:35 2021 +0200 feat: implement icons commit c50307b Author: Dobromir Hristov <[email protected]> Date: Tue Dec 21 11:25:40 2021 +0200 fix: introduce uid to children, so we can track expanding items commit d940547 Author: Dobromir Hristov <[email protected]> Date: Tue Dec 21 11:02:39 2021 +0200 fix: scroll to the active element in the sidebar on mount commit 4bc8d08 Author: Dobromir Hristov <[email protected]> Date: Tue Dec 21 10:04:32 2021 +0200 fix: small bugs with toggling navigator trees commit cfa1350 Author: Dobromir Hristov <[email protected]> Date: Mon Dec 20 09:19:08 2021 +0200 feat: add throttle function commit 790f19b Author: Dobromir Hristov <[email protected]> Date: Fri Dec 17 18:35:55 2021 +0200 refactor: move the navigation-index outside of `/data` commit fd8003e Author: Dobromir Hristov <[email protected]> Date: Fri Dec 17 18:20:44 2021 +0200 fix: add transition to filter commit 2f46e58 Author: Dobromir Hristov <[email protected]> Date: Fri Dec 17 15:29:49 2021 +0200 fix: make navigator filter stick to bottom always. commit bbc88b5 Author: Dobromir Hristov <[email protected]> Date: Fri Dec 17 13:17:10 2021 +0200 fix: import paths and technology computed commit 763952f Author: Dobromir Hristov <[email protected]> Date: Fri Dec 17 12:38:55 2021 +0200 refactor: add basic design for navigator filter input commit 0c30537 Author: Dobromir Hristov <[email protected]> Date: Fri Dec 17 11:42:15 2021 +0200 refactor: update design to a single card sidebar. Introduce NavigatorDataProvider pattern. commit 054fe27 Author: Dobromir Hristov <[email protected]> Date: Thu Dec 16 19:57:59 2021 +0200 chore: change hex to rgb commit 5df1bad Author: Dobromir Hristov <[email protected]> Date: Thu Dec 16 15:26:27 2021 +0200 fix: use the filter pattern to match commit 2bf4c01 Author: Dobromir Hristov <[email protected]> Date: Thu Dec 16 15:19:10 2021 +0200 feat: hide sidebar for IDE commit 10f5ced Author: Dobromir Hristov <[email protected]> Date: Thu Dec 16 15:00:09 2021 +0200 feat: add highlighting commit 608feb3 Author: Dobromir Hristov <[email protected]> Date: Thu Dec 16 14:14:28 2021 +0200 feat: add min-width to sidebar, add touch handling commit 66336d7 Author: Dobromir Hristov <[email protected]> Date: Wed Dec 15 18:50:29 2021 +0200 feat: add extra information to the navigator, if it goes beyond a threshold commit e2cd523 Author: Dobromir Hristov <[email protected]> Date: Wed Dec 15 15:06:23 2021 +0200 feat: allow the sidebar to be toggled on/off on mobile from a button commit a6aacb7 Author: Dobromir Hristov <[email protected]> Date: Wed Dec 15 13:00:42 2021 +0200 feat: track open event on technology card commit 1261019 Author: Dobromir Hristov <[email protected]> Date: Wed Dec 15 12:12:37 2021 +0200 fix: highlighting of page, in navbar, based on breadcrumbs commit 5fadbe7 Author: Dobromir Hristov <[email protected]> Date: Tue Dec 14 13:35:18 2021 +0200 feat: add basic sidenav card and searching commit 185aa12 Author: Dobromir Hristov <[email protected]> Date: Fri Dec 10 18:10:29 2021 +0200 feat: add sidenav
1 parent 04d6921 commit 095ac45

24 files changed

+176
-272
lines changed

src/components/Badge.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ $badge-border-radius: $border-radius - 1px !default;
4747
4848
@mixin badge-variation($color) {
4949
--badge-color: var(--color-badge-#{$color});
50-
--badge-dark-color: var(--color-badge-dark-#{$color})
50+
--badge-dark-color: var(--color-badge-dark-#{$color});
51+
--badge-text-color: var(--color-badge-text-#{$color});
5152
}
5253
5354
.badge {
@@ -61,7 +62,7 @@ $badge-border-radius: $border-radius - 1px !default;
6162
border-radius: $badge-border-radius;
6263
margin-left: 10px;
6364
border: 1px solid var(--badge-color);
64-
color: var(--badge-color);
65+
color: var(--badge-text-color);
6566
6667
.theme-dark & {
6768
--badge-color: var(--badge-dark-color);

src/components/DocumentationTopic.vue

Lines changed: 42 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -15,47 +15,46 @@
1515
<slot name="above-title" />
1616
<Title :eyebrow="roleHeading">{{ title }}</Title>
1717
<Abstract v-if="abstract" :content="abstract" />
18+
<Availability v-if="platforms" :platforms="platforms" />
1819
</DocumentationHero>
19-
<div class="container content-grid" :class="{ 'full-width': hideSummary }">
20-
<Description :hasOverview="hasOverview">
21-
<RequirementMetadata
22-
v-if="isRequirement"
23-
:defaultImplementationsCount="defaultImplementationsCount"
24-
/>
25-
<Aside v-if="deprecationSummary && deprecationSummary.length" kind="deprecated">
26-
<ContentNode :content="deprecationSummary" />
27-
</Aside>
28-
<Aside
29-
v-if="downloadNotAvailableSummary && downloadNotAvailableSummary.length"
30-
kind="note"
31-
>
32-
<ContentNode :content="downloadNotAvailableSummary" />
33-
</Aside>
34-
<DownloadButton v-if="sampleCodeDownload" :action="sampleCodeDownload.action" />
35-
</Description>
3620
<Summary v-if="!hideSummary">
37-
<LanguageSwitcher
38-
v-if="shouldShowLanguageSwitcher"
39-
:interfaceLanguage="interfaceLanguage"
40-
:objcPath="objcPath"
41-
:swiftPath="swiftPath"
42-
/>
43-
<Availability v-if="platforms" :platforms="platforms" />
4421
<TechnologyList v-if="modules" :technologies="modules" />
4522
<TechnologyList
4623
v-if="extendsTechnology"
4724
class="extends-technology"
4825
title="Extends"
4926
:technologies="[{ name: extendsTechnology }]"
5027
/>
51-
<OnThisPageNav v-if="onThisPageSections.length > 1" :sections="onThisPageSections" />
28+
<LanguageSwitcher
29+
v-if="shouldShowLanguageSwitcher"
30+
:interfaceLanguage="interfaceLanguage"
31+
:objcPath="objcPath"
32+
:swiftPath="swiftPath"
33+
/>
5234
</Summary>
53-
<PrimaryContent
54-
v-if="primaryContentSections && primaryContentSections.length"
55-
:conformance="conformance"
56-
:sections="primaryContentSections"
57-
/>
58-
</div>
35+
<div class="container">
36+
<Description :hasOverview="hasOverview">
37+
<RequirementMetadata
38+
v-if="isRequirement"
39+
:defaultImplementationsCount="defaultImplementationsCount"
40+
/>
41+
<Aside v-if="deprecationSummary && deprecationSummary.length" kind="deprecated">
42+
<ContentNode :content="deprecationSummary" />
43+
</Aside>
44+
<Aside
45+
v-if="downloadNotAvailableSummary && downloadNotAvailableSummary.length"
46+
kind="note"
47+
>
48+
<ContentNode :content="downloadNotAvailableSummary" />
49+
</Aside>
50+
<DownloadButton v-if="sampleCodeDownload" :action="sampleCodeDownload.action" />
51+
</Description>
52+
<PrimaryContent
53+
v-if="primaryContentSections && primaryContentSections.length"
54+
:conformance="conformance"
55+
:sections="primaryContentSections"
56+
/>
57+
</div>
5958
<Topics
6059
v-if="topicSections"
6160
:sections="topicSections"
@@ -95,7 +94,6 @@ import CallToActionButton from './CallToActionButton.vue';
9594
import DefaultImplementations from './DocumentationTopic/DefaultImplementations.vue';
9695
import Description from './DocumentationTopic/Description.vue';
9796
import TechnologyList from './DocumentationTopic/Summary/TechnologyList.vue';
98-
import OnThisPageNav from './DocumentationTopic/Summary/OnThisPageNav.vue';
9997
import PrimaryContent from './DocumentationTopic/PrimaryContent.vue';
10098
import Relationships from './DocumentationTopic/Relationships.vue';
10199
import RequirementMetadata from './DocumentationTopic/Description/RequirementMetadata.vue';
@@ -134,7 +132,6 @@ export default {
134132
DownloadButton: CallToActionButton,
135133
TechnologyList,
136134
LanguageSwitcher,
137-
OnThisPageNav,
138135
PrimaryContent,
139136
Relationships,
140137
RequirementMetadata,
@@ -284,9 +281,18 @@ export default {
284281
0,
285282
);
286283
},
287-
hasOverview: ({ primaryContentSections = [] }) => primaryContentSections.filter(section => (
288-
section.kind === PrimaryContent.constants.SectionKind.content
289-
)).length > 0,
284+
hasOverview:
285+
({ primaryContentSections = [], abstract = [] }) => primaryContentSections.filter(section => (
286+
section.kind === PrimaryContent.constants.SectionKind.content
287+
)).length > 0 || abstract.length > 0,
288+
// Use `variants` data to build a map of paths associated with each unique
289+
// `interfaceLanguage` trait.
290+
languagePaths: ({ variants }) => variants.reduce((memo, variant) => (
291+
variant.traits.reduce((_memo, trait) => (!trait.interfaceLanguage ? _memo : ({
292+
..._memo,
293+
[trait.interfaceLanguage]: (_memo[trait.interfaceLanguage] || []).concat(variant.paths),
294+
})), memo)
295+
), {}),
290296
onThisPageSections() {
291297
return this.topicState.onThisPageSections;
292298
},
@@ -370,37 +376,6 @@ export default {
370376
@include dynamic-content-container;
371377
}
372378
373-
.content-grid {
374-
display: grid;
375-
grid-template-columns: 75% 25%;
376-
grid-template-rows: auto minmax(0, 1fr);
377-
378-
@include breakpoint(small) {
379-
display: block;
380-
}
381-
382-
&:before, &:after {
383-
display: none;
384-
}
385-
386-
&.full-width {
387-
grid-template-columns: 100%;
388-
}
389-
}
390-
391-
.description {
392-
grid-column: 1;
393-
}
394-
395-
.summary {
396-
grid-column: 2;
397-
grid-row: 1 / -1;
398-
}
399-
400-
.primary-content {
401-
grid-column: 1;
402-
}
403-
404379
.button-cta {
405380
margin-top: 2em;
406381
}

src/components/DocumentationTopic/ContentTable.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,18 @@ export default {
4747
@include inTargetIde {
4848
background: var(--color-content-table-content-color);
4949
}
50-
padding: $section-spacing-single-side 0;
5150
}
5251
5352
.container {
5453
@include dynamic-content-container;
54+
padding-bottom: $section-spacing-single-side;
5555
}
5656
5757
.title {
5858
@include font-styles(heading-2-reduced);
59+
padding-top: $section-spacing-single-side;
60+
border-top-color: var(--color-grid);
61+
border-top-style: solid;
62+
border-top-width: 1px;
5963
}
6064
</style>

src/components/DocumentationTopic/ContentTableSection.vue

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,82 +9,48 @@
99
-->
1010

1111
<template>
12-
<Row class="contenttable-section">
13-
<Column class="section-title" :span="span.title">
12+
<div class="contenttable-section">
13+
<div class="section-title">
1414
<slot name="title">
1515
<h3 class="title">{{ title }}</h3>
1616
</slot>
17-
</Column>
18-
<Column class="section-content" :span="span.content">
17+
</div>
18+
<div class="section-content">
1919
<slot name="abstract" />
2020
<slot name="discussion" />
2121
<slot />
22-
</Column>
23-
</Row>
22+
</div>
23+
</div>
2424
</template>
2525

2626
<script>
27-
import GridColumn from 'docc-render/components/GridColumn.vue';
28-
import GridRow from 'docc-render/components/GridRow.vue';
29-
3027
export default {
3128
name: 'ContentTableSection',
32-
components: {
33-
Column: GridColumn,
34-
Row: GridRow,
35-
},
3629
props: {
3730
title: {
3831
type: String,
3932
required: true,
4033
},
4134
},
42-
computed: {
43-
span() {
44-
return {
45-
title: {
46-
large: 3,
47-
medium: 3,
48-
small: 12,
49-
},
50-
content: {
51-
large: 9,
52-
medium: 9,
53-
small: 12,
54-
},
55-
};
56-
},
57-
},
5835
};
5936
</script>
6037

6138
<style scoped lang="scss">
6239
@import 'docc-render/styles/_core.scss';
6340
64-
@mixin section-border($position) {
65-
border-#{$position}-color: var(--color-grid);
66-
border-#{$position}-style: solid;
67-
border-#{$position}-width: 1px;
41+
.title + .contenttable-section {
42+
margin-top: 0;
6843
}
6944
7045
.contenttable-section {
71-
@include section-border(top);
7246
align-items: baseline;
73-
display: flex;
74-
margin: $contenttable-spacing-single-side 0;
7547
padding-top: $contenttable-spacing-single-side;
7648
7749
&:last-child {
7850
margin-bottom: 0;
7951
}
8052
}
8153
82-
.section {
83-
&-content {
84-
padding-left: rem(17px)
85-
}
86-
}
87-
8854
/deep/ .title {
8955
@include font-styles(label);
9056
}
@@ -105,7 +71,6 @@ export default {
10571
}
10672
10773
/deep/ .title {
108-
@include section-border(bottom);
10974
margin: 0 0 $contenttable-spacing-single-side 0;
11075
padding-bottom: 0.5rem;
11176
}

src/components/DocumentationTopic/PrimaryContent.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,6 @@ export default {
150150
}
151151
152152
.primary-content {
153-
&::before {
154-
border-top-color: var(--colors-grid, var(--color-grid));
155-
border-top-style: solid;
156-
border-top-width: 1px;
157-
content: '';
158-
display: block;
159-
}
160-
161153
/deep/ {
162154
& > * {
163155
margin-bottom: $section-spacing-single-side;

src/components/DocumentationTopic/RelationshipsList.vue

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,16 @@ export default {
128128
.relationships-list {
129129
list-style: none;
130130
131-
&.column {
132-
margin: 0;
133-
}
134-
135131
// The "inline" style displays items on a single line as a
136132
// comma-separated list with a maximum number of 3 items. This style should
137133
// not be used for a list that contains any items with availability
138134
// constraints information.
139135
&.inline {
140-
columns: 1;
141136
display: flex;
142137
flex-direction: row;
143138
flex-wrap: wrap;
144-
margin: 0;
139+
margin-top: 15px;
140+
margin-left: 0;
145141
146142
li:not(:last-child)::after {
147143
content: ",\00a0"
@@ -155,11 +151,6 @@ export default {
155151
&:after {
156152
margin-top: $change-coin-y-offset-reduced;
157153
}
158-
159-
// ensure that column layout stays a block content
160-
&.column {
161-
display: block;
162-
}
163154
}
164155
}
165156

src/components/DocumentationTopic/Summary.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,22 @@ export default {
2525
@import 'docc-render/styles/_core.scss';
2626
2727
.summary {
28+
@include font-styles(body-reduced);
2829
color: var(--colors-secondary-label, var(--color-secondary-label));
29-
font-size: rem(16px);
30-
margin-bottom: $section-spacing-single-side;
31-
padding: 5px 0 0 4em;
30+
padding: 11px 0;
31+
background-color: var(--color-fill-gray-quaternary);
32+
display: flex;
33+
align-items: center;
34+
justify-content: center;
3235
3336
@include breakpoint(medium) {
3437
padding-left: 2em;
3538
}
3639
3740
@include breakpoint(small) {
41+
flex-direction: column;
3842
padding-left: 0;
3943
margin-bottom: rem(40px);
40-
display: grid;
4144
grid-gap: rem(16px);
4245
grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
4346
}

0 commit comments

Comments
 (0)