Skip to content

Commit

Permalink
docs(toc): add level 3 heading linkability (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
josedialpad authored Feb 1, 2023
1 parent 425d08a commit 4079fd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default defineUserConfig({
lineNumbers: false,
},
headers: {
level: [2], // Generated data header levels (used for toc)
level: [2, 3], // Generated data header levels (used for toc)
},
},

Expand Down
6 changes: 6 additions & 0 deletions docs/.vuepress/theme/assets/less/dialtone-docs.less
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ a.header-anchor {
grid-area: toc !important;
}

.toc-item {
> .toc-list {
padding-left: var(--space-500);
}
}

.d-gl-docsite {
grid-template-areas: 'content';
grid-template-columns: [content] minmax(32rem, 99rem);
Expand Down

0 comments on commit 4079fd5

Please sign in to comment.