fix(v2): hash-link should not be cut-off in doc container (#1942)

* fix(v2): hash-link should not be cut-off in doc container

* nits
This commit is contained in:
Endi 2019-11-06 22:54:09 +07:00 committed by Yangshun Tay
parent baa884fe2e
commit 3048942aef
2 changed files with 6 additions and 0 deletions

View file

@ -6,6 +6,7 @@
- Add feed for blog posts.
- **HOTFIX for 2.0.0-alpha.32** - Fix build compilation if exists only one code tab.
- Add table of contents highlighting on scroll.
- Add minor padding to docs container so that hash-link won't be cut off.
- **BREAKING** `prismTheme` is renamed to `theme` as part new `prism` object in `themeConfig` field in your `docusaurus.config.js`. Eg:
```diff
themeConfig: {

View file

@ -19,6 +19,7 @@
.docItemContainer {
margin: 0 auto;
padding: 0 0.5rem;
max-width: 45em;
}
@ -34,4 +35,8 @@
.tableOfContents {
display: none;
}
.docItemContainer {
padding: 0 0.3rem;
}
}