Alexey Pyltsyn
d22039c200
chore(v2): upgrade dependencies ( #4148 )
...
* chore(v2): upgrade dependencies
* Update docs
* Revert `execa`
* Revert sitemap
2021-02-02 14:37: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
Reece Dunham
0252d01ebb
docs(v2): Add READMEs to v2 packages ( #4034 )
...
* docs(v2): Add READMEs to v2 packages
Signed-off-by: Reece Dunham <me@rdil.rocks>
* Update packages/docusaurus-remark-plugin-npm2yarn/package.json
* Update packages/docusaurus/README.md
* Update packages/docusaurus-plugin-sitemap/README.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-01-14 17:16:26 +01:00
Reece Dunham
a406a3c9aa
chore(v2): docusaurus-init: switch from inquirer to prompts ( #4012 )
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2021-01-11 15:33:40 +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
Kumar Aditya
0bb5e547b1
feat(v2): skip dependency install on docusaurus init ( #3986 )
...
* fix : #3450
Signed-off-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* test: fix failing test
Signed-off-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2021-01-04 16:17:06 +01: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
Bartosz Kaszubowski
d9ed20ebcf
chore: match fs-events version across the workspace ( #3795 )
2020-11-21 18:49:48 +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
5f20200661
feat(v2): allow init project via npm ( #3729 )
...
* feat(v2: allow init project via npm
* Add test-website to workspace
* Remove test-website from workspace
* Refactor
2020-11-16 16:11:16 +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
Rhys Arkins
6930e91508
fix: add repository metadata to all packages ( #3613 )
...
* fix: add repository metadata to all packages
* empty commit for cla bot
* move validate-package-json.test.ts + add glob devDependency
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-10-21 15:05:01 +02: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
Sébastien Lorber
9265de982b
chore(v2): refactor scripts + add theme-classic watchmode ( #2998 )
2020-07-01 18:30:44 +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
Sam Zhou
6e43c9bd34
chore(v2): Fix more eslint errors ( #2976 )
2020-06-21 15:09:00 +08: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
Sébastien Lorber
b5d7c3a111
misc(v2): better dx: yarn clear, yarn watch, yarn serve ( #2922 )
...
* add clear + serve scripts
* add ability to launch all TS projects in --watch mode
* attempt to create a watch plugin
* use rimraf for clear script
* update watch plugin poc
* add start:v2:watch
* remove the watch plugin
2020-06-16 20:40:46 +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
Sam Zhou
33b60c6ba4
fix(v2): Consistently use 10.15.1 as the minimum required node version ( #2819 )
2020-05-27 23:18:48 +08:00