Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs-infra] Add a collapsible list & table views to the API content display #38265

Merged
merged 65 commits into from
Oct 12, 2023
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
ba64754
docs api colapse experiment
alexfauquette Aug 1, 2023
12f7913
align
alexfauquette Aug 1, 2023
1e9ceae
Merge remote-tracking branch 'upstream/master' into test-expendable-docs
alexfauquette Aug 4, 2023
d6d197a
experiment
alexfauquette Aug 7, 2023
435c1ce
save state
alexfauquette Aug 16, 2023
35360b6
typo fix
alexfauquette Aug 16, 2023
589c9e9
make design okish
alexfauquette Aug 16, 2023
ab6e8bb
fix hydratation missmatch
alexfauquette Aug 16, 2023
262116a
send analytics
alexfauquette Aug 16, 2023
f2a21ca
fix lint
alexfauquette Aug 16, 2023
a887eae
Some cleaning
alexfauquette Aug 16, 2023
d3f7db1
joy add space in class name
alexfauquette Aug 16, 2023
0f8d075
continue migration
alexfauquette Aug 16, 2023
b4db787
fix lint
alexfauquette Aug 17, 2023
c80c694
docs:api
alexfauquette Aug 17, 2023
9fce708
continue reorganisation
alexfauquette Aug 17, 2023
edf1aa4
add API to the experiment navigation
alexfauquette Aug 17, 2023
1ce5f7a
Merge remote-tracking branch 'upstream/master' into test-expendable-docs
alexfauquette Sep 26, 2023
16d6c19
introduce table
alexfauquette Sep 26, 2023
f1f785a
fix daa grid
alexfauquette Sep 26, 2023
0b036c1
toggle button edits (styles + add tooltip wrapper)
danilo-leal Sep 29, 2023
19f2987
list design refinements
danilo-leal Sep 29, 2023
d67b1a8
start tweaking the table design
danilo-leal Sep 29, 2023
fa1e45d
Fix highlight
alexfauquette Oct 4, 2023
ed5230b
Move Css section
alexfauquette Oct 4, 2023
0e13164
move classes
alexfauquette Oct 4, 2023
b87d933
Move slots
alexfauquette Oct 4, 2023
f537b15
Add a bit od space to simplify pages structure reading
alexfauquette Oct 4, 2023
ec6d181
move sections components into sections folder
alexfauquette Oct 4, 2023
ebb0d1f
remove relative imports
alexfauquette Oct 4, 2023
9bc9625
prettier
alexfauquette Oct 4, 2023
f172587
fix build
alexfauquette Oct 4, 2023
6a9a642
move files in their respective folders
alexfauquette Oct 4, 2023
8376815
move early returns
alexfauquette Oct 4, 2023
1c8a3e9
fix typo
alexfauquette Oct 4, 2023
3ef9fbf
add styles to the className list title
danilo-leal Oct 5, 2023
b2631db
CSS tables design adjustments
danilo-leal Oct 5, 2023
4305c16
prop tables design adjustments
danilo-leal Oct 5, 2023
ac3e524
prop and CSS table adjustments
danilo-leal Oct 5, 2023
1bda76d
experiment with min widths for columns
danilo-leal Oct 5, 2023
db1a721
adjustments to the alert within the description column
danilo-leal Oct 5, 2023
9c5165c
alert icon fine-tune spacing tweak
danilo-leal Oct 5, 2023
f9f9e24
add hover state to the table rows
danilo-leal Oct 6, 2023
02eabe6
slots table and list tweaks
danilo-leal Oct 10, 2023
2f442bc
classes table tweaks
danilo-leal Oct 10, 2023
d17de0a
standardize color usage
danilo-leal Oct 10, 2023
84cddad
tiny color polish
danilo-leal Oct 10, 2023
9ca5ca6
Merge remote-tracking branch 'upstream/master' into test-expendable-docs
alexfauquette Oct 10, 2023
4e5ad85
renaming
alexfauquette Oct 10, 2023
af262ca
Ensure their is no typo in the keys
alexfauquette Oct 10, 2023
06d0c45
update analytics
alexfauquette Oct 10, 2023
a0a1b93
fixes
alexfauquette Oct 10, 2023
3815c31
Merge branch 'test-expendable-docs' of github.com:alexfauquette/mater…
alexfauquette Oct 10, 2023
7b4f0e1
lint fix
alexfauquette Oct 10, 2023
504d7f4
use tags accepted by GA
alexfauquette Oct 11, 2023
5f88a02
alert tweaks and other fixes
danilo-leal Oct 12, 2023
2fc78f8
title spacing
danilo-leal Oct 12, 2023
5bf0f91
ref hint alert tweak + remove unnecessary divider
danilo-leal Oct 12, 2023
6decf87
align it to the baseline
danilo-leal Oct 12, 2023
de6e28f
fix slot name in the table view weight
danilo-leal Oct 12, 2023
50d98c7
ensure design consistency between table and list view
danilo-leal Oct 12, 2023
20e3f65
further consistency between all "Default" items design
danilo-leal Oct 12, 2023
96a5a08
fix lint
danilo-leal Oct 12, 2023
980dfb2
remove unnecessary divider on the Hooks API page
danilo-leal Oct 12, 2023
e8bdb3f
fix lint
alexfauquette Oct 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use tags accepted by GA
  • Loading branch information
alexfauquette committed Oct 11, 2023
commit 504d7f4a1a1575ed275101f0a380e3f13fdadd9a
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export type ApiDisplayOptions = 'collapsed' | 'expended' | 'table';
const options: ApiDisplayOptions[] = ['collapsed', 'expended', 'table'];

export const API_LAYOUT_STORAGE_KEYS = {
default: 'api-page-default',
slots: 'api-page-slots',
props: 'api-page-props',
css: 'api-page-css',
classes: 'api-page-classes',
default: 'apiPage_default',
slots: 'apiPage_slots',
props: 'apiPage_props',
css: 'apiPage_css',
classes: 'apiPage_classes',
} as const;

const getRandomOption = () => {
Expand Down