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
Méril
3ace60043b
feat(v2): allow users to specify a custom ssr HTML template ( #3387 )
...
* feat(v2): allow users to specify a custom ssr HTML template
* docs(v2): add ssrTemplate property to docusaurus.config.js page
2020-09-02 19:29:04 +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
Sam Zhou
16ae3bf462
fix(v2): Add missing dependencies to packages ( #3355 )
2020-08-28 15:04:44 +02:00
Sam Zhou
b38f562322
chore(v2): Define type for markdown right table of contents ( #3306 )
2020-08-20 17:57:19 +02:00
Sébastien Lorber
fe281a8ebe
feat(v2): debug pages + debug layout + ability to debug content ( #3229 )
...
* improve debug plugin:
- add multiple debug pages + debug layout
- ability to debug plugin contentLoaded data
* add missing dependency
* fix broken test
* improve content rendering a bit
* create basic DebugJsonView
* fix ReactJson SSR issues
2020-08-07 11:47:43 +02:00
Anshul Goyal
ef9314e5a4
feat(v2): update swizzle command to suggest component/theme ( #3021 )
...
* update swizzle command
* change messages
* fix formatting
* add docs
* fix component lisiting
* allow themes to provide a list for safe swizzle components
* support both commanjs and ES exports
* fix debug plugin doesn't swizzle
* add dos
* remove unsed file
* fix docs plugin not swizzle properly
* fix console.log
* use new validate
* fix linting
* use config options for plugin
* rerun test
* fix type
* add a comment
* Update packages/docusaurus/src/commands/swizzle.ts
* Update packages/docusaurus/src/commands/swizzle.ts
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-08-06 13:53:03 +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
Teik Jun
300aecb8bc
feat(v2): warn user when there are conflicting routes ( #3083 )
...
* feat(v2): add warning for path override
* feat(v2): check all routes recursively
* docs(v2): add docs for conflicting routes
* style(v2): improve comments in code
* refactor(v2): remove unused lifecycle method from docs plugin
* Revert "refactor(v2): remove unused lifecycle method from docs plugin"
This reverts commit 8b2caaa091
.
* feat(v2): add option for changing duplicate path behavior
* feat(v2): decouple logging from logic and detect duplicate routes in one pass
* test(v2): fix failing tests
* test(v2): add tests for duplicateRoutes
* test(v2): add test for handleDuplicateRoutes
* style(v2): add else statement
* docs(v2): modify documentation for duplicate routes
* docs(v2): move doc into guides folder
* fix(v2): fix broken links
* docs(v2): move docs for docusaurus config into api folder
* style(v2): add comments
* refactor(v2): extract getFinalRoutes
* refactor(v2): scope getFinalRoutes to docusaurus package
* test(v2): remove obsolete snapshots
* docs(v2): remove some docs
* fix(v2): rerun github actions
* docs(v2): change slug of docs in api folder
* refactor(v2): extract out a reportMessage method
* refactor(v2): extract getAllFinalRoutes
* test(v2): replace snapshots with actual value
* style(v2): remove unnecessary comment and change type
* chore(v2): remove unused dependency
* style(v2): remove unused code
* Update packages/docusaurus/src/server/utils.ts
* Update website/docs/guides/creating-pages.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-07-31 21:14:49 +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
d25d4b08f6
fix(v2): remove buggy routesLoaded + deprecate routesLoaded lifecycle ( #3141 )
...
* remove bad deletion of docs / if conflicting with a page
* deprecate routesLoaded
2020-07-28 14:28:14 +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
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
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
Sébastien Lorber
1272ab83fb
feat(v2): useDocusaurusContext().siteMetadata ( #3058 )
2020-07-16 12:46:21 +02:00
Sébastien Lorber
8aa6ef47e4
feat(v2): configureWebpack merge strategy + use file-loader for common asset types ( #2994 )
...
* Add some default asset loaders
Add webpack merge strategy feature to enable plugins to prepend some webpack configuration (like the ideal image plugin that should override the default image loader)
* Add documentation for using assets from markdown
* add path prefix for webpack file loader
* renaming
* document Merge strategies
* rename mergeStrategies -> mergeStrategy
2020-07-01 19:06:02 +02:00
Teik Jun
0f59cd1599
feat(v2): add option validation for remaining official plugins ( #2970 )
...
* feat(v2): add option validation lifecycle method
* chore(v2): add dependencies
* chore(v2): add yup dependency
* feat(v2): add option validation for plugin-content-docs
* chore(v2): add facebook copyright
* refactor(v2): remove unused variable
* chore(v2): add dependencies
* chore(v2): add copyright
* fix(v2): use strict for option validation
* feat(v2): add option validation for plugin-content-pages
* feat(v2): add schema for plugin-google-analytics and plugin-google-gtag
* feat(v2): add option validation for plugin-sitemap
* chore(v2): add dependency for yup
* fix(v2): remove strict to allow normalization
* refactor(v2): refactor validate method
* feat(v2): modify existing tests
* feat(v2): add tests for plugin normalization
* style(v2): use a more descriptive filename for schema
* feat(v2): add normalization tests
* feat(v2): add more tests for option validation
* refactor(v2): remove unused code
* refactor(v2): remove unused code
* refactor(v2): refactor methods and types
* feat(v2): replace Yup with Joi
* fix(v2): fix plugin-content-docs schema
* feat(v2): modify tests for plugin-content-docs
* fix(v2): fix a typo
* refactor(v2): improve tests and refactor code
* feat(v2): support both commonjs and ES modules
* refactor(v2): refactor validateOption method
* style(v2): fix eslint errors and typo in types
* chore(v2): remove unused yup dependency
* style(v2): standardize naming across official plugins
* chore(v2): update test snapshots
* chore(v2): remove obsolete snapshots
* chore(v2): fix a typo and check test
* feat(v2): add validation for new field
* feat(v2): add test for new field
2020-06-26 15:14:59 +02:00
Sam Zhou
5ccd24cc1f
feat(v2): Support swizzling TypeScript components ( #2671 )
...
* feat(v2): Support swizzling TypeScript components
* Add tsc --noEmit to tsc script in theme-classic
Now everything can pass the type checker! (although still a lot of any)
* Add tsconfig and types.d.ts to website
Improve developer experience.
As an example, I converted NotFound to tsx
* Apply type annotation suggestions
* Do not fallback to `getThemePath` if getTypeScriptThemePath is undefined
* Fix tsc
* Add module declaration for @theme-original/*
* Move babel cli to root package.json
2020-06-25 16:07:30 +02:00
Anshul Goyal
81d855355e
feat(v2): option and config validation life cycle method for official plugins ( #2943 )
...
* add validation for blog plugin
* fix wrong default component
* fix test and add yup to package.json
* remove console.log
* add validation for classic theme and code block theme
* add yup to packages
* remove console.log
* fix build
* fix logo required
* replaced yup with joi
* fix test
* remove hapi from docusuars core
* replace joi with @hapi/joi
* fix eslint
* fix remark plugin type
* change remark plugin validation to match documentation
* move schema to it's own file
* allow unknown only on outer theme object
* fix type for schema type
* fix yarn.lock
* support both commonjs and ES modules
* add docs for new lifecycle method
2020-06-24 20:08:16 +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
Alexey Pyltsyn
d8ebe8b2e4
v2.0.0-alpha.56
2020-05-27 20:18:28 +03:00
Alexey Pyltsyn
082c6212cb
feat(v2): allow deploy without building website ( #2770 )
...
* feat(v2): allow deploy without building website
* Update cli.md
2020-05-27 22:34:41 +08:00
Alexey Pyltsyn
d94a549cfb
v2.0.0-alpha.55
2020-05-19 13:55:03 +03:00
Alexey Pyltsyn
00a8e9e365
feat(v2): allow home page for docs ( #2652 )
...
* feat(v2): allow home page for docs
* Refactor
* Remove debugging info 🤦♂️
* Add sort routes for first test case
* Sort child routes for consistency
2020-05-17 17:48:02 +08:00
Yangshun Tay
03070a2b8d
chore: add copyright headers to missing files
2020-05-11 00:11:11 +08:00
Alexey Pyltsyn
753d117025
v2.0.0-alpha.54
2020-04-28 09:49:27 +03:00
Alexey Pyltsyn
d90fdb04d5
v2.0.0-alpha.53
2020-04-27 16:38:33 +03:00
Alexey Pyltsyn
7359945f52
v2.0.0-alpha.52
2020-04-27 16:30:15 +03:00
Alexey Pyltsyn
c9c5aedcb5
v2.0.0-alpha.51
2020-04-27 14:44:56 +03:00
Tom Brien
852b5e8f13
feat(v2): add CLI option for polling ( #2630 )
...
* 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>
2020-04-20 10:49:43 +08:00
Sam Zhou
5f487f3b02
refactor(v2): Convert docusaurus-core to TypeScript ( #2578 )
...
* refactor(v2): Convert docusaurus-core to TypeScript
* Update types.d.ts
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-13 02:05:46 +08:00
Alexey Pyltsyn
c207c3ba31
v2.0.0-alpha.50
2020-04-02 21:00:47 +03:00
Yangshun Tay
409f169379
v2.0.0-alpha.49
2020-04-01 16:00:14 +08:00
Alexey Pyltsyn
fa2e263ce8
feat(v2): add ability to create unminimized bundles ( #2474 )
2020-03-29 23:32:26 +08:00
ZachJW34
ce45413804
feat(v2): add custom output directory to build ( #2417 )
2020-03-19 23:52:26 +08:00
Alexey Pyltsyn
38bb8c4ced
v2.0.0-alpha.48
2020-03-09 01:46:10 +03:00
Alexey Pyltsyn
1dc1f21e91
v2.0.0-alpha.47
2020-03-08 23:40:44 +03:00
Alexey Pyltsyn
9d45993da2
v2.0.0-alpha.46
2020-03-08 23:29:42 +03:00
Alexey Pyltsyn
bbb465be02
v2.0.0-alpha.45
2020-03-08 23:07:13 +03:00
Yangshun Tay
1e09feb2db
v2.0.0-alpha.44
2020-03-08 23:45:30 +08:00
Alexey Pyltsyn
3cbee86e36
chore(v2): mark tagline field as optional ( #2342 )
2020-02-29 13:15:56 +08:00
Yangshun Tay
32c1a92b17
chore: yearless copyright headers for source code ( #2320 )
...
* chore: yearless copyright headers for source code
* update snapshots
2020-02-25 23:12:28 +08:00
Yangshun Tay
3056479ed2
v2.0.0-alpha.43
2020-02-18 18:54:39 +08:00
Yangshun Tay
8a96e0bff6
v2.0.0-alpha.42
2020-02-18 18:51:41 +08:00
Yangshun Tay
3ba753922e
Revert "v2.0.0-alpha.42"
...
This reverts commit d48200be7d
.
2020-02-18 18:47:36 +08:00
Alexey Pyltsyn
d48200be7d
v2.0.0-alpha.42
2020-02-18 13:29:02 +03:00
Yangshun Tay
d39c301db8
v2.0.0-alpha.41
2020-02-16 23:03:18 +08:00