Alexey Pyltsyn
96e7fcef25
feat(v2): add ability to set custom heading id ( #4222 )
...
* 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>
2021-03-05 19:36:14 +01:00
Alexey Pyltsyn
175d9c3c8e
feat(v2): support/use React v17 by default ( #4218 )
...
* chore(v2): allow React v17 as peer dependency
* minor React 17 changes
* Revert examples
* Possible fix
* Use @docusaurus/react-loadable fork
* add back react-loadable to please eslint/ts/linters, even if it's unused in practice
* missing dependency bump
* move enzyme dependencies to docusaurus v1
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-12 17:04:45 +01:00
LittleboyHarry
22e231904d
feat(v2): improve templates, use JSDoc type annotation, improve docusaurus.config.js
autocompletion ( #4098 )
...
Co-authored-by: LittleboyHarry <LittleboyHarry@users.noreply.github.com>
2021-01-27 15:34:12 +01:00
Sébastien Lorber
a8ee7fd3e8
docs(v2): i18n doc + polish ( #4014 )
...
* add some initial i18n doc
* i18n doc progress
* i18n tutorial progress
* i18n tutorial progress
* polish Crowdin docs
* i18n sidebar in guides
* polish crowdin doc
* update Crowdin doc a bit
* fix annoying relative link to global site resource in template (breaks i18n tutorial)
* template: use simpler export for homepage
* add markdown page example
* rename mdx.md to interactiveDoc.mdx
* update bootstrap/facebook templates too
* sync init template package scripts
* add slug frontmatter doc
* improve i18n doc
* complete i18n doc
* temporarily enable the localeDropdown
* doc typo
* improve the i18n doc
* Add Git i18n doc
* add missing "--" for npm run options (unfortunately they don't get stripped by npm2yarn, and are required foor npm)
* improve a bit the Crowdin doc
2021-01-19 17:26:31 +01:00
Joel Marcey
827de9a840
feat: add new policy links to Docusaurus site and FB template ( #4019 )
2021-01-10 14:07:59 +08:00
Bartosz Kaszubowski
601c8fe688
docs(v2): update FB OSS logo ( #3881 )
...
* docs(v2): update FB OSS logo
* chore(v2): update FB OSS logo in init
2020-12-28 11:38:07 +01:00
Sébastien Lorber
3fc29f4b14
chore(v2): prepare v2.0.0.alpha-70 release ( #3933 )
...
* add alpha 70 changes
* v2.0.0-alpha.70
2020-12-17 20:08:20 +01:00
Sébastien Lorber
85fe96d112
fix(v2): bad update notifier dist tag ( #3824 )
2020-11-26 12:06:52 +01:00
Alexey Pyltsyn
d25a54f61d
chore(v2): prepare v2.0.0.alpha-69 release ( #3808 )
...
* chore(v2): prepare v2.0.0.alpha-69 release
* v2.0.0-alpha.69
2020-11-24 13:51:15 +03:00
Sébastien Lorber
d1e51f7e3b
chore(v2): prepare v2.0.0.alpha-68 release ( #3779 )
...
* changelog
* add alpha 68 docs
* add missing publishConfig
* update publish doc + v1 private package system
* add version files
* v2.0.0-alpha.68
2020-11-18 20:02:06 +01:00
Alexey Pyltsyn
049634a927
chore(v2): upgrade dependencies ( #3727 )
...
* chore(v2): upgrade dependencies
* Update loader-utils
* Update MDX packages
* Update Babel packages
* Various updates
2020-11-12 12:30:14 +01:00
Alexey Pyltsyn
498f8a0f27
chore(v2): adjust website npm package ( #3709 )
2020-11-09 15:28:18 +01:00
iAmir
8f2d898f22
feat(v2): onBrokenMarkdownLinks config ( #3658 )
...
* refactor(v2): move `reportMessage` from `core/src/server/utils` to `utils` package
* feat(v2): handle broken markdown links by using onBrokenLinks prop from siteconfig
* feat(v2): add a new site config prop called `onBrokenMarkdownLinks`
works like onBrokenLinks, but only for markdown links
* feat(v2): add `onBrokenMarkdownLinks` to API docs
* some changes regarding test issues after adding `onBrokenMarkdownLink`
* Update website/versioned_docs/version-2.0.0-alpha.66/api/docusaurus.config.js.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-10-31 18:04:56 +01:00
Sébastien Lorber
14447707c2
chore(v2): prepare v2.0.0.alpha-66 release ( #3608 )
...
* release alpha 66
* v2.0.0-alpha.66
2020-10-19 19:44:26 +02:00
Alexey Pyltsyn
f5f2064656
chore(v2): prepare v2.0.0.alpha-65 release ( #3525 )
...
* chore(v2): prepare v2.0.0.alpha-65 release
* v2.0.0-alpha.65
2020-10-02 17:09:16 +03:00
Sébastien Lorber
f343450e85
feat(v2): migrate bootstrap components to ts ( #3496 )
...
* feat(v2): Migrate bootstrap theme to typescript
* chore(v2): Add eslint rule to avoid delete import of modules
* chore(v2): Add lib to gitignore
* chore(v2): Add prettier script
* chore(v2): change hooks to ts
* fix(v2): Fix Navbar and Layout problems
* fix(v2): scroll
* fix(v2): navbar metadata
* refactor(v2): improve css styles
* chore(v2): Restore debug layout
* feat(v2): Remove console.log
Co-authored-by: fanny <fanny.vieira@ccc.ufcg.edu.br>
2020-09-29 13:16:39 +02:00
Felipe Santos
1c251bca2e
fix(v2): Fix markdownlint rules on template init/README #3465
2020-09-29 12:23:06 +02:00
Sébastien Lorber
9bf4dfb275
chore(v2): prepare v2.0.0.alpha-64 release ( #3440 )
...
* add 2.0.0 alpha 64 files
* v2.0.0-alpha.64
2020-09-11 20:35:05 +02:00
Sébastien Lorber
8af3ad4250
chore(v2): prepare v2.0.0.alpha-63 release ( #3400 )
...
* add alpha 63 + remove +3month old versions
* update publish guide
* v2.0.0-alpha.63
2020-09-03 18:52:03 +02:00
Sébastien Lorber
ab3ebdad39
chore(v2): pin exact dependency versions ( #3386 )
...
* Attempt to pin all dependency versions exactly for https://github.com/facebook/docusaurus/issues/3371
* warn if @docusaurus package versions mismatch
* fix yarn lock
2020-09-02 11:42:17 +02:00
Sébastien Lorber
4f448bd54b
chore(v2): prepare v2.0.0.alpha-62 release ( #3359 )
...
* Add alpha 62
* v2.0.0-alpha.62
2020-08-28 19:17:56 +02:00
Jean-Marc Saad
3ea2f8cfde
feat(v2): blog slug frontmatter ( #3284 )
2020-08-20 14:59:54 +02:00
Fanny
8c05aa8e94
feat(v2): bootstrap theme, preset, template, CI previews ( #2981 )
...
* fix(v2): doc sidebar
* chore(v2): prettier
* fix(v2): docs navbar path
* fix(v2): fix error about activepath
* chore(v2): prettier
* feat(v2): change active color
* feat(v2): Add bootstrap doc
* docs(v2): Update preset
* doc(v2): finish bootstrap documentation
* chore(v2): run lint
* doc(v2): update hook
* fix theme bootstrap layout (far from perfect)
* Try to fix bootstrap theme and deploy it!
* fix netlify error
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-08-17 20:18:37 +02:00
Sébastien Lorber
e7720d4e95
fix(v2): bad template alt prop ( #3258 )
2020-08-11 13:34:33 +02:00
Sébastien Lorber
0a33a52301
fix(v2): deprecate docs homePageId in favor of frontmatter "slug: /" ( #3228 )
...
* homePageId => deprecated
* docs prettier
2020-08-06 18:31:50 +02:00
Sébastien Lorber
48b996773c
chore(v2): prepare v2.0.0.alpha-61 release ( #3182 )
...
* alpha 61 release
* doc prettier
* v2.0.0-alpha.61
2020-08-01 15:24:46 +02:00
Sébastien Lorber
68f4bd00f4
fix(v2): fix link items refusing attributes like target, rel etc... ( #3168 )
2020-07-30 15:46:33 +02:00
Sébastien Lorber
1083454dbd
chore(v2): prepare v2.0.0.alpha-60 release ( #3154 )
...
* alpha 60
* v2.0.0-alpha.60
* update publish guide
2020-07-29 17:45:54 +02:00
Sébastien Lorber
0eb9c207cf
chore(v2): v2.0.0.alpha-59 release ( #3114 )
...
* alpha 59 release preparation
* v2.0.0-alpha.59
2020-07-24 16:22:51 +02:00
Sébastien Lorber
2c5675cbc1
feat(v2): add docusaurus script for npm users ( #3105 )
2020-07-24 00:37:02 +08:00
Sébastien Lorber
8ff28e3fe4
feat(v2): broken links detection ( #3059 )
...
* add broken links checker
* polish
* finalize broken links detection feature
* note broken links is only for prod build
* fix broken link on template
* fix test snapshot
* fix bad merge
2020-07-21 19:13:34 +02:00
Anshul Goyal
3155dc30dc
feat(v2): support for adding relative images and handling broken image links ( #3069 )
...
* all relative path in image url
* throw error if file doesn't present
* better error
* add @docusaurus/core to deps
* fix test
2020-07-21 15:27:45 +02:00
Sébastien Lorber
15e73daae7
feat(v2): global data + useGlobalData + docs versions dropdown ( #2971 )
...
* doc components initial simplification
* doc components initial simplification
* add docContext test
* Add poc of global data system + use it in the theme
* Revert "doc components initial simplification"
This reverts commit f657b4c4
* revert useless changes
* avoid loosing context on docs switch
* fix docs tests
* fix @generated/globalData ts declaration / es import
* typo
* revert bad commit
* refactor navbar in multiple parts + add navbar item types validation + try to fix remaining merge bugs
* add missing watch mode for plugin debug
* fix docs global data integration, move related hooks to docs plugin + convert to TS
* change versions link label
* fix activeClassName react warning
* improve docs global data system + contextual navbar dropdown
* fix bug preventing the deployment
* refactor the global data system to namespace automatically by plugin name + plugin id
* proper NavbarItem comp
* fix tests
* fix snapshot
* extract theme config schema in separate file + rename navbar links to navbar items
* minor typos
* polish docs components/api
* polish useDocs api surface
* fix the docs version suggestions comp + data
* refactors + add docsClientUtils unit tests
* Add documentation
* typo
* Add check for duplicate plugin ids detection
* multi-instance: createData plugin data should be namespaced by plugin instance id
* remove attempt for multi-instance support
2020-07-21 11:16:08 +02:00
Anshul Goyal
a51a56ec42
feat(v2): add support for serve command ( #3080 )
...
* add support for serve command
* add serve to init
* use existing choosePort function
* add --host
* add more docs
* add docs to deployment
2020-07-20 19:00:37 +02:00
Sam Zhou
cf5babd5c1
chore(v2): Add E2E test for yarn v2 ( #3008 )
...
* chore(v2): Add E2E test for yarn v2
* Remove root node_modules to prevent them from accessible in e2e test
The purpose of e2e test is to ensure that the docusaurus inited website can stand on its own. The root node_modules remain accessible according to how node resolution works and it might interfere with the test. Remove them for safety.
* Add @mdx-js/react to docusaurus init templates
2020-07-01 12:06:03 +02:00
slorber
16ba6e54b6
v2.0.0-alpha.58
2020-06-18 14:02:26 +02:00
Sébastien Lorber
72884a0c1a
chore(v2): fix eslint TS setup ( #2949 )
...
* update eslint parser
* fix yarn lint script
* lint-staged, lint ts files
* fix TS eslint configuration + fix some lint errors (https://github.com/facebook/docusaurus/pull/2949 )
* eslint root + separate linting in 2 scripts
* test commit
* test commit
* test commit
* fix /// TS directive
2020-06-18 17:37:48 +08:00
Sam Zhou
729b3cae9b
feat(v2): Allow configuring babel via babel.config.js ( #2903 )
...
* feat(v2): Allow configuring babel via docusaurus.config.js
* Use api.caller feature from babel to avoid expose isServer to users
* Remove unused optional config key
* Make babel loader resolve and require config file
2020-06-12 11:03:00 +08:00
Teik Jun
66716d1619
feat(v2): add nojekyll file to static folder for all templates ( #2902 )
2020-06-08 09:45:57 +08:00
Alexey Pyltsyn
afe9ff91a4
chore(v2): replace classnames with clsx ( #2895 )
2020-06-07 13:40:06 +08:00
Alexey Pyltsyn
d8ebe8b2e4
v2.0.0-alpha.56
2020-05-27 20:18:28 +03:00
Alexey Pyltsyn
ca90b42991
misc: minor improvements for init templates ( #2802 )
2020-05-24 19:47:04 +08:00
Alexey Pyltsyn
2e12269f94
misc: use branded favicon in init templates ( #2803 )
2020-05-24 12:48:04 +08:00
Alexey Pyltsyn
0ff6dd31f4
style(v2): disable Prettier checks for Markdown files of init templates ( #2792 )
2020-05-23 05:05:16 +08:00
Yangshun Tay
20fbceb9f1
docs(v2): fix markdown syntax examples in templates
2020-05-22 19:18:29 +08:00
Piotr Baran
926cbb818b
docs(v2): change docs for markdown features ( #2786 )
...
* fix(v2): change docs for markdown features
* Update doc1.md
* Update doc1.md
* Update doc1.md
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-05-22 18:57:48 +08:00
Alexey Pyltsyn
d94a549cfb
v2.0.0-alpha.55
2020-05-19 13:55:03 +03:00
Alexey Pyltsyn
c7baa125e6
chore(v2): mention about docs home page in init templates ( #2763 )
...
* chore(v2): mention about docs home page in init templates
* use home page id for docs
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-05-18 13:14:06 +08:00
Fanny
7e97d40075
feat(v2): bootstrap doc sidebar ( #2735 )
...
* feat(v2): add minor adjustements and footer component
* fix(v2): margin and spacing of footer
* feat(v2): add navbar component
* ádd collapse classname
* feat(v2): add dependencies
* feat(v2): remove unused code
* feat(v2): remove unused links
* feat(v2): add reactstrap components :|
* feat(v2): add brand and other nav componnets
* feat(v2): Add the layout tag
* feat(v2): bootstrap start doc components
* feat(v2: Add syntax highlight
* Ádd Page components
* feat(v2): Bootstrap MDX Componnets
* fix(v2): Fix layout height
* fix(v2): Fix spacings
* feat:(v2): Add the layout in doc content
* feat(v2): Start the pagination
* feat(v2): Finish pagination
* Fix margins in mobile
* feat(v2): Add the doc sidebar
* feat(v2): Add sidebar
* feat(v2): Makes sidebar responsive
* feat(v2): Add context
* feat(v2): Add new hook and docs to the template sidebar
* feat(v2): Add css modules
* feat(v2): add sidebar class
* feat(v2): add floating action button
* fix fab styles
* fix(v2): fix height
* feat(v2): Remove context
* feat(v2): Finish sidebar
* feat(v2): Add resize window hook
* feat(v2): Remove unsed fields
* feat(v2): Add theme
* feat(v2): improve sidebar definitions
* feat(v2): fix conflicts
2020-05-18 11:06:48 +08:00
Fanny
b91f02dee2
feat(v2): bootstrap doc paginator ( #2734 )
...
* feat(v2): add minor adjustements and footer component
* fix(v2): margin and spacing of footer
* feat(v2): add navbar component
* ádd collapse classname
* feat(v2): add dependencies
* feat(v2): remove unused code
* feat(v2): remove unused links
* feat(v2): add reactstrap components :|
* feat(v2): add brand and other nav componnets
* feat(v2): Add the layout tag
* feat(v2): bootstrap start doc components
* feat(v2: Add syntax highlight
* Ádd Page components
* feat(v2): Bootstrap MDX Componnets
* fix(v2): Fix layout height
* fix(v2): Fix spacings
* feat:(v2): Add the layout in doc content
* feat(v2): Start the pagination
* feat(v2): Finish pagination
* Fix margins in mobile
* feat(v2): Add theme
2020-05-17 22:51:03 +08:00