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

v2-docs: Add tables with function and transform support #536

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.md
54 changes: 54 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,57 @@
height: auto;
margin-left: 0;
}

/* Color the header of the table */
table.docutils th {
background-color: #8523a7;
color: white;
}

/* Make dropdown rounded pill and fit in cell */
table.docutils td {
padding: 0
}

details.sd-dropdown {
margin-top: 0.4em;
margin-bottom: 0.4em !important;
border: 0;
}

details.sd-dropdown>.sd-card-header {
border: 0 !important;
background-color: var(--color-table-border) !important;
border-radius: 1em !important;
padding: 0 .4em 0 .8em !important;
margin: 0 0.8em 0 0.6em !important;
}

details.sd-card {
background-color: transparent;
box-shadow: none;
}

summary.sd-summary-title {
font-weight: normal !important;
}


/* Center the contents of the second column */
table.docutils td:nth-child(2) {
text-align: center;
}

table.docutils td:first-child {
padding-left: 0.5rem;
padding-right: 0.5rem;
}

/* Round corners of the first and last column headers */
table.docutils th:first-child {
border-radius: 0.5rem 0 0 0;
}

table.docutils th:last-child {
border-radius: 0 0.5rem 0 0;
}
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
'sphinx_copybutton',
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx_design',
]

# Theme settings
Expand Down
9 changes: 9 additions & 0 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ grpc
vega-lite
```

```{toctree}
:maxdepth: 2
:hidden: true
:caption: Vega Coverage

supported_transforms
supported_expressions
```

```{toctree}
:maxdepth: 2
:hidden: true
Expand Down
Loading
Loading