* chore(v2): tweak image opt before moving to docusaurus-plugin-image
* lint
* feat(v2): convert to docusaurus-plugin-ideal-image
* tweak
* dont need many img
* fix dev err
* tweak
* opt png
* lower qual
The warning is produced on `cssnano` call. See below:
> Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
Reproduction:
```shell
mkdir work
cd work
npx docusaurus-init
cd website
yarn install
yarn run build
```
Environments:
- Node: 12.6.0
- Yarn: 1.17.3
* feat(v2): improve seo
- Add doc specific seo information
- Add twitter meta tags to seo in theme Layout
* Cannot use svg in SEO image
* Add docs about SEO
* add site default image for seo
* Resolve PR discussion
* Add `image` to config optional fields
* Use theme config instead of root config for image, rename in front matter
* Use absolute url for image (wont work on preview)
* update docs for frontmatter field for seo
* refactor
* pages seo
* fix
* nits again'
Currently the items in table of contents are highlighted as bold based on items being
viewed on the screen or as the user scrolls up/down on a page. Added the `primaryColor`
of the site's configuration to make the current section being viewed standout more
in the table of content.
closes#1608
* Replace apostrophe with empty string in header
This change is to replicate the github behviour with respect to apostrophe in
headers. When there is an apostrophe in a header, github replaces it with empty string
when creating an anchor link to that header. Docusaurus should follow the same convention.
* Add `unlisted` header option for blog posts, fixes#1393.
Previously, the blog sidebar listed the most recent blog posts sorted by
their publish date. This commit adds the ability to hide a specific blog
post from the sidebar and the feed of all blog posts by adding the
`unlisted: true` header option.
```md
title: My Draft Post
unlisted: true # Hide from blog sidebar and main blog page feed.
---
```
* Rename "unlisted" into "draft".
In this case, the `docsNavContainer` does not pick up any styles or attributes from the `container` component it is wrapped in.
It does however pick up the pesky `.container` className, which when paired with bootstrap, messes up the styling of the top navigation in mobile.
This change is completely non-destructive, but helps enable the use of bootstrap on top of Docusaurus.