* feat(v2): add ability to set custom heading id
* Add cli command
* Fix slugger
* write-heading-ids doc + add in commands/templates
* refactor + add tests for writeHeadingIds
* polish writeHeadingIds
* polish writeHeadingIds
* remove i18n goals todo section as the remaining items are quite abstract/useless
* fix edge case with 2 md links in heading
* extract parseMarkdownHeadingId helper function
* refactor using the shared parseMarkdownHeadingId utility fn
* change logic of edge case
* Handle edge case
* Document explicit ids feature
Co-authored-by: slorber <lorber.sebastien@gmail.com>
* added more details about --danger flag for swizzle
* added referencing to blog posts
* improved the docs for swizzling.
* added new Farsi/Persian translation
* Update website/docs/cli.md
* Update website/docs/cli.md
* Update website/docs/using-themes.md
* PR cleanup
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
* feat(v2): optimize CSS bundle
* Move to separate preset
* Move custom scrollbar styles to separate class
* Cleanup styles
* Remove unactual styles
* Various CSS optimizations, cleanup styles for NProgress
* Add ability to back to old way of minifying CSS
* chore(v2): downgrade babel-plugin-dynamic-import-node to 2.3.0
* Use env var for back to simple CSS minifier
* remove unnecessary typing [skip-ci]
* Remove missing dep
* Update website/docs/cli.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
* fix: add support for key,cert in https
* docs: add steps for using https with docusaurus
* improve https certs docs
* typo
* local https: add mkcert -install step
Co-authored-by: slorber <lorber.sebastien@gmail.com>
* start --poll 500 should be accepted + better error message when siteDir is wrongly passed as a cli arg and lead to config loading failure
* docusaurus start --poll 500 option should also be used for chokidar
* config error message: relative path for reliable tests
* update snapshot
* document start --poll [interval]
There is a small typo in website/docs/cli.md, website/docs/deployment.md, website/versioned_docs/version-2.0.0-alpha.60/cli.md, website/versioned_docs/version-2.0.0-alpha.60/deployment.md, website/versioned_docs/version-2.0.0-alpha.61/cli.md, website/versioned_docs/version-2.0.0-alpha.61/deployment.md, website/versioned_docs/version-2.0.0-alpha.62/cli.md, website/versioned_docs/version-2.0.0-alpha.62/deployment.md, website/versioned_docs/version-2.0.0-alpha.63/cli.md, website/versioned_docs/version-2.0.0-alpha.63/deployment.md, website/versioned_docs/version-2.0.0-alpha.64/cli.md, website/versioned_docs/version-2.0.0-alpha.64/deployment.md.
Should read `locally` rather than `localy`.
* Add CLI option to polling
Some environments (specifically docker containers) can have issues with file watching for live reloads. [Webpack Dev Server provides a polling alternative](https://webpack.js.org/configuration/watch/#watchoptionspoll) option for this
* Update docusaurus.js
* Update cli.md
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
* feat(core): use 0.0.0.0 for livereload address
* test(core): update server tests
* feat(cli): add host by command line flag
* test: revert test changes
* fix(core): update server to use custom host if supplied
* refactor: nits
* WiP: CLI docs
* Tweak word choices for CLI docs
- Use the word swizzle directly
- Follow variable convention for shell
* Resolve docs discussion
* Update cli.md