* feat(v2): allow non sidebar category to be first item of sidebar
* better error messages
* edit the react component
* Update website/docs/sidebar.md
* nits
* add @babel/plugin-transform-runtime
* feat(v2): Implement feed for blog posts
Fixes: #1698
Test plan:
- added tests
Ran `yarn build` on website with the following config (and disabled blog
from preset-classic):
```js
[
'@docusaurus/plugin-content-blog',
{
path: '../website-1.x/blog',
feedOptions: {
copyright: 'Copy',
type: 'atom',
},
},
],
```
which genereted the following feed:
```xml
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://v2.docusaurus.io/blog</id>
<title>Docusaurus Blog</title>
<updated>2018-12-14T00:00:00.000Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<link rel="alternate" href="https://v2.docusaurus.io/blog"/>
<subtitle>Docusaurus Blog</subtitle>
<icon>https://v2.docusaurus.io/img/docusaurus.ico</icon>
<rights>Copy</rights>
<entry>
<title type="html"><![CDATA[Happy 1st Birthday Slash!]]></title>
<id>Happy 1st Birthday Slash!</id>
<link href="https://v2.docusaurus.io/blog/2018/12/14/Happy-First-Birthday-Slash"/>
<updated>2018-12-14T00:00:00.000Z</updated>
<summary type="html"><]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Towards Docusaurus 2]]></title>
<id>Towards Docusaurus 2</id>
<link href="https://v2.docusaurus.io/blog/2018/09/11/Towards-Docusaurus-2"/>
<updated>2018-09-11T00:00:00.000Z</updated>
<summary type="html">< over nine months ago as a way to easily build open source documentation websites. Since then, it has amassed over 8,600 GitHub Stars, and is used by many popular open source projects such as [React Native](https://facebook.github.io/react-native/), [Babel](https://babeljs.io/), [Jest](https://jestjs.io/), [Reason](https://reasonml.github.io/) and [Prettier](https://prettier.io/).]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[How I Converted Profilo to Docusaurus in Under 2 Hours]]></title>
<id>How I Converted Profilo to Docusaurus in Under 2 Hours</id>
<link href="https://v2.docusaurus.io/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus"/>
<updated>2018-04-30T00:00:00.000Z</updated>
<summary type="html"><![CDATA[> _“Joel and I were discussing having a website and how it would have been great to launch with it. So I challenged myself to add Docusaurus support. It took just over an hour and a half. I'm going to send you a PR with the addition so you can take a look and see if you like it. Your workflow for adding docs wouldn't be much different from editing those markdown files.”_]]></summary>
</entry>
<entry>
<title type="html"><![CDATA[Introducing Docusaurus]]></title>
<id>Introducing Docusaurus</id>
<link href="https://v2.docusaurus.io/blog/2017/12/14/introducing-docusaurus"/>
<updated>2017-12-14T00:00:00.000Z</updated>
<summary type="html"><]]></summary>
</entry>
</feed>
```
* new feedOptions type 'all' and use correct path
* feat(v2): allow line highlighting
* Refactor: use parse-numeric-range for parsing
* Add line highlighting for live code blocks
* feat(v2): add sticky footer (#1855)
* feat(v2): add sticky footer
* Update CHANGELOG-2.x.md
* Update CHANGELOG-2.x.md
* fix(v2): remove empty doc sidebar container (#1870)
* docs: showcase user Amphora (#1873)
* Add Amphora Data link to users
Adds Amphora Data to the list of users
* Add Amphora Data logo
* fix case of image path
* Move Image into users directory
* use black amphora image
* fix(v2): fix search input blur on desktop (#1874)
* docs(v2): showcase user mbt-bundle (#1875)
* feat(v2): postcss should only use stage 3 features instead of stage 2 (#1872)
* feat(v2): add ability expand all items in doc sidebar (#1876)
* feat(v2): add ability expand all items in doc sidebar
* Fix tests
* Refactor: use themeConfig
* Improve docs
* Revert unnecessary changes
* Refactor: better consistency
* Revert extra change
* Refactor: use useDocusaurusContext to get config value
* chore(v2): update changelog
* chore(v2): update showcase and broken link
* perf(v2): disable hash for css modules localident in dev (#1882)
* perf(v2): disable hash for css modules localident in dev
* changelog
* feat(v2): display footer in docs page for consistency (#1883)
* feat(v2): display footer in docs page
* nits
* address review
* nits
* docs(v2): fix format inline code (#1888)
* docs(v2): add docs on useful client api (#1890)
* docs(v2): add docs on useful client api
* Update docusaurus-core.md
* Update website/docs/docusaurus-core.md
* Update website/docs/docusaurus-core.md
* Update website/docs/docusaurus-core.md
* Update website/docs/docusaurus-core.md
* docs(v2): update config docs (#1885)
* fix(v2): do not show categories with empty items (#1891)
* styles(v2): update infima and fix styles (#1892)
* fix(v2): wrong css class
* v2.0.0-alpha.31
* chore(v2): update docs and changelog
* docs(v2): update plugins, presets and themes docs (#1889)
* docs(v2): update plugins, presets and themes docs
* ideal image plugin
* proof reading
* Merge master
* refactor(v2): Convert sitemap plugin to TypeScript (#1894)
* Convert sitemap plugin to TypeScript
Test - enabled the sitemap plugin in the v2 website and verified that
the sitemap is created after running `docusaurus build`.
* Addressing review comments
* perf(v2): significantly reduce bundle size & initial html payload (#1898)
* perf(v2): reduce bundle size significantly with super short chunk name and registry
* changelog
* use hash:8 as id for better long term caching
* even shorter filename. slice contenthash
* fix(v2): align search icon on small width device (#1893)
* fix(v2): align search icon on small width device
* nits
* nits
* refactor(v2): refactor dark toggle into a hook (#1899)
* change(v2): refactor dark toggle into a theme
* follow how themes resolve files
* let theme hook to pick up default theme by itself
* perf(v2): reduce memory usage consumption (#1900)
* misc(v1): use primary color for hovered items in table of contents (#1871)
* fix issue#1752
when element in side nav is hovered over the color changes.
* Update main.css
* fix(v1): mobile safari search input misalignment in header (#1895)
* misc(v2): v1 backward compatibility for USE_SSH env var (#1880)
* misc(v2): address comments
* misc(v2): update CHANGELOG
* refactor(v2): simplify last updated logic for faster dev
* Update packages/docusaurus-plugin-content-docs/src/__tests__/lastUpdate.test.ts
* Update packages/docusaurus-plugin-content-docs/src/__tests__/lastUpdate.test.ts
The approach here is to first strip the HTML from the heading's content, then rendered it with markdown to get the HTML content for the TOC entry, then to strip the HTML from the rendered content again, as to get the text for the TOC entry's link.
Adds an additional dependency of striptags (MIT licensed)
Example TOC Entry, given the heading of:
```markdown
```
```javascript
{
hashLink: 'foo',
rawContent: '<a name="foo"></a> _Foo_',
content: '<em>Foo</em>',
children: []
}
```
Previously this TOC entry would be:
```javascript
{
hashLink: 'a-name-foo-a-_foo_',
rawContent: '<a name="foo"></a> _Foo_',
content: '<a name="foo"></a> <em>Foo</em>',
children: []
}
```
closes issue #1703
* 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