Sébastien Lorber
4bfc3bbbe7
fix(v2): fix migrate cli paths (sidebars/customcss) ( #3358 )
...
* fix: Allow docusaurus-migrate to create relative paths #3239
* fix migration cli sidebars/customcss paths
* fix migration cli sidebars paths
Co-authored-by: PalAditya <adityapal.nghss@gmail.com>
2020-08-28 18:05:43 +02:00
Archit
a999928ad8
fix(v2): add https support in webpack devserver ( #3311 )
2020-08-28 18:05:18 +02:00
Sam Zhou
aa9212cb45
feat(v2): Provide type definitions for remaining theme-classic components ( #3356 )
2020-08-28 17:45:51 +02:00
Sam Zhou
16ae3bf462
fix(v2): Add missing dependencies to packages ( #3355 )
2020-08-28 15:04:44 +02:00
Sam Zhou
c8d6e418ff
feat(v2): Provide type definitions for MDXPage from page plugin ( #3354 )
2020-08-28 14:58:32 +02:00
Vincent
56c04c7834
fix(v2): Allow the alt for the logo to be empty ( #3352 )
...
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img#Attributes
> Setting this attribute to an empty string (alt="") indicates that
> this image is not a key part of the content (it’s decoration or a
> tracking pixel), and that non-visual browsers may omit it from
> rendering.
Since the logo is indeed decorative and redundant with the actual
project name, an empty alt is fine.
2020-08-28 12:50:42 +02:00
Sébastien Lorber
c7fc781ce0
fix(v2): linking to asset or external html page -> don't use history.push() ( #3347 )
...
* Rework markdown links to asset require processing + add test page
* implement pathname:// protocol / escape hatch at the Link level
* linking to assets: fix tests + avoid creating an useless nested paragraph
* fix assets linking doc
* attempt to fix windows e2e test
* try to fix windows errors
2020-08-28 12:47:03 +02:00
Sam Zhou
bd9b6618c1
feat(v2): Provide typing to most of the theme-classic components ( #3348 )
...
* feat(v2): Provide typing to most of the theme-classic components
* Expose type to the end users and dogfood it in v2 website
2020-08-28 12:06:37 +02:00
Bogdan Doroschenko
a72ac91e3e
test(v2): add unit test for migration of config file ( #3323 )
2020-08-27 12:03:51 +02:00
Sam Zhou
d299b99631
feat(v2): Provide docs plugin typing ( #3328 )
2020-08-27 11:40:14 +02:00
Sébastien Lorber
b86806460c
refactor(v2): announcement bar bad spelling + minor refactors ( #3343 )
2020-08-27 10:55:45 +02:00
Bogdan Doroschenko
3ccca399f1
test(v2): make blog posts unit test ordering determinate ( #3339 )
2020-08-27 10:09:43 +02:00
adinaja
8fd5375b26
fix(v1): fenced block detection ( #3340 )
2020-08-27 10:06:10 +02:00
Sam Zhou
b38f562322
chore(v2): Define type for markdown right table of contents ( #3306 )
2020-08-20 17:57:19 +02:00
Anshul Goyal
ef5f6fb852
fix(v2): fix url-loader not found ( #3313 )
2020-08-20 15:27:13 +02:00
Jean-Marc Saad
3ea2f8cfde
feat(v2): blog slug frontmatter ( #3284 )
2020-08-20 14:59:54 +02:00
Sébastien Lorber
f4ca61be81
fix(v2): brokenLinks should not report links that belong to an existing folder if folder/index.html exists ( #3308 )
...
* move pluginIds.test.ts
* improve brokenLinks checker and add tests for filterExistingFileLinks
2020-08-19 18:45:42 +02:00
Ben Gubler
a94d14b9c7
fix(v1,v2): add initial-scale=1.0 to all meta name='viewport' ( #3290 )
2020-08-18 12:59:58 +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
Sam Zhou
5fdf96c552
feat(v2): Provide blog plugin theme typing ( #3267 )
...
* feat(v2): Provide blog plugin theme typing
* Update packages/docusaurus-plugin-content-blog/index.d.ts
* Update packages/docusaurus-plugin-content-blog/index.d.ts
* Update packages/docusaurus-plugin-content-blog/index.d.ts
* Update packages/docusaurus-plugin-content-blog/index.d.ts
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-08-17 18:25:02 +02:00
Orta Therox
33ecc4bb17
chore(v2): tighten up the TypeScript onboarding ( #3244 )
...
* Tighten up the TypeScript onboarding
* Extend the API to cover everything used in the classic theme
* Wrap up internal TS support
2020-08-17 18:03:21 +02:00
Sébastien Lorber
a4c8a7f55b
refactor(v2): docs plugin refactor ( #3245 )
...
* safe refactorings
* safe refactors
* add code to read versions more generically
* refactor docs plugin
* refactors
* stable docs refactor
* progress on refactor
* stable docs refactor
* stable docs refactor
* stable docs refactor
* attempt to fix admonition :(
* configureWebpack docs: better typing
* more refactors
* rename cli
* refactor docs metadata processing => move to pure function
* stable docs refactor
* stable docs refactor
* named exports
* basic sidebars refactor
* add getElementsAround utils
* refactor sidebar + ordering/navigation logic
* stable retrocompatible refactor
* add proper versions metadata tests
* fix docs metadata tests
* fix docs tests
* fix test due to absolute path
* fix webpack tests
* refactor linkify + add broken markdown links warning
* fix DOM warning due to forwarding legacy prop to div element
* add todo
2020-08-17 17:50:22 +02:00
Sébastien Lorber
d17df954b5
refactor(v2): precompile ETA templates ( #3238 )
...
* compile ETA templates ahead of time
* handle PR review
2020-08-17 15:43:17 +02:00
François Chalifour
51f07608fa
fix(v2): keep DocSearch state on remounts ( #3297 )
...
* fix(v2): keep DocSearch state on remounts
* fix: memoize `transformSearchClient`
2020-08-17 14:58:02 +02:00
Amy Lei
473d263469
feat(v2): add toc to blog posts ( #3274 )
...
* refactor TOC into own component
* make layout consistent across blog pages
2020-08-17 14:47:19 +02:00
Anshul Goyal
12e9ff6232
fix(v2): pass images in static dir to webpack-loader ( #3283 )
...
* pass static images to webpack-loader
* remove console.log
* fix windows path issue
* fix windows path issue
* add missing deps
2020-08-14 21:33:08 +02:00
Sébastien Lorber
340de92096
chore(v2): fix javascript-serialize vulnerability ( #3282 )
...
* try to fix the javascript-serialize vulnerability
* handle CopyWebpackPlugin breaking change
2020-08-14 14:27:16 +02:00
Hani Mohammed
7cc44823eb
fix(v2): logic error while deciding deploymentBranch ( #3273 )
2020-08-14 12:07:43 +02:00
Ali Hosseini
0cc78fdd41
fix(v2): allow search page swizzle ( #3280 )
...
* feat: search page moved to theme folder
* feat: docusaurus-theme-search-algolia/src/pages/search removed
* SearchPage added to SwizzleAllowed array
* feat: SearchPage route updated in index of it's package directory
* Update packages/docusaurus-theme-classic/src/index.js
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-08-14 11:57:34 +02:00
Anshul Goyal
a4cc6b6b2b
fix(v2): allow swizzling of component even if case doesn't match ( #3281 )
...
* add support for case insensitivity for components
* fix formatting
2020-08-14 11:50:09 +02:00
Derek
a735e051a9
chore(v2): upgrade terser-webpack-plugin ( #3265 )
...
* chore: upgrade terser-webpack-plugin
* undo version update
2020-08-12 11:56:49 +02:00
Govardhan S
98ccb3725d
fix(v2): GTM, send page_view events on navigate ( #3243 )
...
* fix: update pageviews for Google Tag Manager
* fix prettier issues
Co-authored-by: govardhan <govardhan.s@mobinius.com>
2020-08-12 11:08:22 +02:00
Sébastien Lorber
97faf7e6d9
fix(v2): do not index search pages ( #3263 )
2020-08-12 09:48:20 +08:00
Sébastien Lorber
dd3f3f1093
fix(v2): doc path special char (space or other) should lead to a valid slug ( #3262 )
...
* doc path special char (space or other) should lead to a valid slug
* doc path special char (space or other) should lead to a valid slug
* improve doc bad slug message
2020-08-11 17:20:51 +02:00
Ali Hosseini
ee6dee72b7
fix(v2): navbar dropdown opened with tab, not closing on click outside ( #3240 )
...
* package use-onclickoutside added
* fix:dropdown toggle updated and tab behavior fixed
* fix:variable name and type checker on drop down updated
* fix: optional chaining added to dropdown toggle function
* fix: package.json problem fixed and type of element updated
* fix:type problem fixed
2020-08-11 15:54:33 +02:00
Teik Jun
fda1590b0d
fix(v2): modify validation schema and tests for rehype/remark + remove duplicate dependency ( #3247 )
...
* chore(v2): remove duplicate dependency
* fix(v2): make changes to validation for rehype and remark plugins
* style(v2): run prettier
2020-08-11 15:17:23 +02:00
Sébastien Lorber
e7720d4e95
fix(v2): bad template alt prop ( #3258 )
2020-08-11 13:34:33 +02:00
Anshul Goyal
181a6174c7
fix(v2): relax URI validation ( #3227 )
...
* relax URI validation
* add regex
* add test
* fix linting error
* fix formatting
* use URL rather than regex
2020-08-07 22:11: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
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
0079f0e8d1
fix(v2): swizzle minor improvements ( #3225 )
...
* improve swizzle messages
* docs should allow to swizzle in --typescript
* minor swizzle cli improvements
2020-08-06 14:47:36 +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
Anshul Goyal
f234c407f1
feat(v2): add support to ignore files in pages plugin ( #3196 )
...
* add support to ignore pages
* fix import problem
* Update website/docs/guides/creating-pages.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
* Revert "fix import problem"
This reverts commit 4457a2e938
.
* revert
* fix slash
* forbid frontmatter
* fix formatting
* Update website/docs/guides/creating-pages.md
* Update website/src/pages/examples/_chapter1.md
* Update website/src/pages/examples/_chapter2.mdx
* Update website/src/pages/examples/markdownPageExample.md
* Update website/src/pages/examples/markdownPageExample.md
* Update website/src/pages/examples/markdownPageExample.md
* Update website/src/pages/examples/markdownPageExample.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-08-05 21:35:55 +02:00
Sébastien Lorber
592fc48fd3
fix(v2): update react-loadable-ssr-addon ( #3222 )
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
Co-authored-by: Reece Dunham <me@rdil.rocks>
2020-08-05 19:54:18 +02:00
Anshul Goyal
25b70b5342
fix(v2): fix svg loader ( #3202 )
...
* fix loader
* Update website/docs/markdown-features.mdx
* Update website/docs/markdown-features.mdx
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-08-05 19:19:20 +02:00
Sébastien Lorber
59f705ee66
feat(v2): blog + docs multi-instance plugins ( #3204 )
...
* stable createData namespacing + second-blog dogfooding
* Docs: support multi-instance + make community docs a separate instance
* tests: add 2nd docs instance to versioned site
* fix docs version cli tests
* fix docs versioning cli
* typo
* team: add link to my site
* better extendCli integration
* fix metadata tests
* tests for versioned site with second docs instance
* move some validation code to utils-validation
* fix missing dependency
* fix bad compiled output due to importing constants in ./client folder
* make docs tests easier to maintain
* refactors
* prevent lodash imports in client bundle
* redirect old community docs to new urls
2020-08-05 18:27:55 +02:00
Sébastien Lorber
e944f35640
chore(v1): release 1.14.6 ( #3218 )
...
* prepare v1 release
* chore(v1): release v1.14.6
2020-08-05 18:26:28 +02:00
Sébastien Lorber
83d160f017
fix(v1): fresh install failing due to <> syntax
...
https://github.com/facebook/docusaurus/issues/3199 (#3213 )
2020-08-05 16:19:24 +02:00
Teik Jun
8f0c00f3d4
fix(v2): fix theme validation for prism field and add tests ( #3210 )
...
* fix(v2): fix theme validation for prism field
* chore(v2): minor changes
* chore(v2): remove unused dependencies
2020-08-05 15:27:32 +02:00
Anshul Goyal
325559933f
feat(v2): add support to import assets using relative link in markdown syntax ( #3096 )
...
* add a rehyper plugin
* fix yarn.lok
* add target
* convert to remark
* add docs
* remove unused package
* remove file-loader
* add test for file-loader
* fix test
2020-08-03 15:19:12 +02:00