mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
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:
parent
baa884fe2e
commit
3048942aef
2 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
- Add feed for blog posts.
|
- Add feed for blog posts.
|
||||||
- **HOTFIX for 2.0.0-alpha.32** - Fix build compilation if exists only one code tab.
|
- **HOTFIX for 2.0.0-alpha.32** - Fix build compilation if exists only one code tab.
|
||||||
- Add table of contents highlighting on scroll.
|
- 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:
|
- **BREAKING** `prismTheme` is renamed to `theme` as part new `prism` object in `themeConfig` field in your `docusaurus.config.js`. Eg:
|
||||||
```diff
|
```diff
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
.docItemContainer {
|
.docItemContainer {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding: 0 0.5rem;
|
||||||
max-width: 45em;
|
max-width: 45em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,4 +35,8 @@
|
||||||
.tableOfContents {
|
.tableOfContents {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.docItemContainer {
|
||||||
|
padding: 0 0.3rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue