Commit graph

3207 commits

Author SHA1 Message Date
Sébastien Lorber
c61b49ab5a
docs(v2): doc typo on sidebar admonition (#3974) 2020-12-30 12:11:18 +01:00
Sébastien Lorber
1e1860681b
fix(v2): fix multi-instance mdx loaders not sandboxed correctly (#3970)
* another attempt to fix the multi-instance conflicts

* try to fix windows build

* cleanup + improve comment
2020-12-30 11:18:51 +01:00
Sébastien Lorber
9fdac1a0dc
fix(v2): fix blog only contextual search (#3968) 2020-12-29 15:59:56 +01:00
Apurva Ojas
5944226eb4
fix(v2): fix svg loader for CSS files (#3965)
* bug(v2): fix svg loader for styles re #3964

* ensure we only use SVGR loader in source code that can use React (ie not in CSS files)

* fix test

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-12-29 14:47:57 +01:00
Sébastien Lorber
e5610a475d
docs(v2): Add migration info doc regarding docs folder location (#3962) 2020-12-29 10:57:35 +01:00
Sébastien Lorber
141d062c3b
chore(v2): fix windows Jest tests (#3959)
* test(v2): Fix docusaurus-utils tests for windows

* test(v2): Fix plugin-client-redirects test

- add the posixPath in writeRedirectsFiles.ts

* test(v2): Fix plugin-content-pages test

add posixPath in test and index

* test(v2): add window test configuration

 - add the window test configuration in nodejs-windows.yml

* test(v2): revert plugin-content-pages test fix

* test(v2): Fix mdx-loader/transformImage test

* test(v2): add cleanPath in transformImage test

* fix version path tests for windows

* make versionMetadata test work on Windows

* try to fix posix/win32 path issues

* attempt to fix windows test

* try to make source alias less win32 sensitive

* try to make source alias less win32 sensitive

* try to make source alias less win32 sensitive

* try to make source alias less win32 sensitive

* try to make source alias less win32 sensitive

* try to make source alias less win32 sensitive

* specific jest config for windows

* attempt to fix windows testing issue

* attempt to fix windows testing issue

* attempt to fix windows testing issue

* attempt to fix windows testing issue

* attempt to fix windows testing issue

* attempt to fix windows testing issue

* attempt to fix windows testing issue

* remove bad cleanPath fn

* try to fix windows tests

* try to fix windows tests

* blog: try to fix windows tests by using same logic as on docs plugin

* try to fix windows tests

* try to fix windows tests

* try to fix windows tests

* try to fix windows tests

* improve the Github CI setup for windows: make jobs run in parallel

* revert GH action change

Co-authored-by: Sachin Kumar Rajput <skr571999@gmail.com>
2020-12-28 19:50:12 +01:00
Alexey Pyltsyn
863a4d85d3
fix(v2): remove duplicate section on Versions page (#3960) 2020-12-28 17:23:24 +01:00
saydo17
88a6f56654
fix(v2): fix redirect toUrl (windows + trailing slash) (#3903)
* replace \ with / when creating client redirect on windows

* fix(vs): replace \ with / when creating client redirect on windows

* redirects plugin: add createToUrl fn + tests

* redirects plugin: add createToUrl fn + tests
do not  add trailing  slash + try to fix windows path issues

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-12-28 11:55:15 +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
Joel M
41ac4468de
fix(v2): allow async/await in live code editor (#3954)
* transforming async functions is not implemented by buble, so just bypassing it would relieve the pain for now
2020-12-28 10:47:55 +01:00
Reece Dunham
6ce1230c1e
refactor(v2): fix debug plugin name (#3953) 2020-12-28 10:36:17 +01:00
samhrncir
b54ec93c61
docs(v2): Update deployment.mdx (#3950)
Include documentation on environment variable needed for Enterprise GitHub Pages deployment.
2020-12-28 10:35:03 +01:00
Sébastien Lorber
b5c46bd1d9
feat(v2): new docs edit options: editCurrentVersion + editLocalizedDocs (#3949)
* editCurrentVersion initial poc

* ensure edit url allows to edit localized docs

* Add editLocalizedDocs option

* keep editing current version in dev (more convenient)
2020-12-28 10:25:47 +01:00
Matt Oestreich
2791ccc4cf
docs(v2): fix invalid JS example (#3952)
* Fix invalid json

* Update sidebar.md

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-12-25 18:20:35 +03:00
Alexey Pyltsyn
853e29dbd8
fix(v2): minor a11y tweaks (#3946) 2020-12-22 16:28:37 +01:00
Siemienik Pawel
24ea18edf3
docs(v2): Added information about setting / in routeBasePath (#3945) 2020-12-22 16:25:33 +01:00
Alexey Pyltsyn
83a5240f57
fix(v2): disables all inlining in CleanCSS (#3943) 2020-12-21 14:58:20 +01:00
Alexey Pyltsyn
2fb766ba7c
fix(v2): ignore style imports in excerpt (#3944) 2020-12-21 14:47:19 +01:00
Sébastien Lorber
b133e2def6
fix(v2): fix i18n build logging. (#3941)
* better i18n build logging

* better i18n build logging

* better i18n build logging
2020-12-18 19:49:31 +01:00
Sébastien Lorber
ef49c2be72
fix(v2): i18n should not crash theme without footer (#3940)
* Fix theme translations when no footer

* fix TS issues
2020-12-18 18:02:23 +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
df47c1770c
feat(v2): Add <Root> theme element (#3932)
* Add <Root> component

* add some <Root> doc
2020-12-17 19:38:20 +01:00
Rami
5757cdc7a6
docs(v2): blog.md with docs: false, for blog-only mode (#3931)
Added ***docs: false,*** to the config for blog-only mode because we do not want any documents if we're in blog-only mode otherwise, we probably wouldn't use blog-only mode.
2020-12-17 19:24:04 +01:00
Varshit Shah
9626e547c9
docs(v2): Removed unnecessary closing parenthesis (#3924) 2020-12-16 16:44:47 +01:00
Loïc Poullain
57c336c148
docs(v2): add FoalTS to showcase page (#3928) 2020-12-16 16:23:27 +01:00
Sébastien Lorber
6703f8420e
fix(v2): fix navbar items issue on Windows? (#3922)
* attempt to fix navbar items issue on Windows?

* attempt to fix alias ordering issue on Windows
2020-12-14 20:52:20 +01:00
Sébastien Lorber
b79568fff9
fix(v2): remove useless console log (#3921) 2020-12-14 19:53:44 +01:00
Sébastien Lorber
1db0277d36
fix(v2): i18n translation extractor should handle JSX formatting edge cases better (#3920)
* translation extractor should work despite weirdly formatted JSX  or empty text nodes around the content to translate

* fix TS
2020-12-14 19:41:28 +01:00
Sébastien Lorber
aff656182c
feat(v2): Add localeDropdown navbar item type + i18n localeConfigs field (#3916)
* Add localeDropdown navbar item type

* fix type + add localeConfigs test
2020-12-14 18:28:39 +01:00
Bogdan Doroschenko
3570aa06c8
fix(v2): don't remove viewBox from svg 2020-12-14 16:17:03 +01:00
Alexey Pyltsyn
4d7ebcfc56
chore(v2): remove docs for alpha v64 (#3912) 2020-12-13 14:36:43 +03:00
Sébastien Lorber
4dea2c0819
chore(ci): fix canary release filtering (#3907)
* checkout before using dorny filters

* add     runs-on: ubuntu-latest

* fix
2020-12-11 17:10:45 +01:00
Arthur
109a4a7bbe
docs(v2): Move sidebar content to its own page (#3899)
* Move sidebar content to its own page

* Update website/docs/sidebar.md

* Fix merge conflict

* Fix note

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-12-11 17:02:32 +01:00
Sébastien Lorber
b49006441b
chore(ci): temporarily disable bootstrap deploy preview 2020-12-11 16:47:23 +01:00
Sébastien Lorber
358ef86edf
chore(ci): only publish @canary release if packages/** has changed 2020-12-11 16:37:58 +01:00
dependabot[bot]
37c95e668d
chore(deps): bump ini from 1.3.5 to 1.3.7 (#3902)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 16:33:17 +01:00
Sébastien Lorber
41ef333e47
feat(v2): inline table-of-contents + refactor TOC (#3904)
* Add TOCInline theme component

* Add TOCInline theme component doc + migration guide

* remove useless getPathsToWatch on classic theme

* rename rightToc to toc

* add temp theme-bootstrap TOCInline comp to fix build issue
2020-12-11 16:30:53 +01:00
Oliver Ullman
b11c24b752
feat(v2): add custom props for consumption by swizzled sidebar (#3888) 2020-12-10 19:49:21 +01:00
Cindy Gu
0b05806593
feat(v2): enable feeds by default in blog plugin (#3842)
* feat: enables feeds by default in blog

* feat(v2): enable feeds by default

committing a failed attempt for review

* feat(v2): enable feeds by default in blog plugin

- allow validation to work with arrays syntax
- using DEFAULT_OPTIONS.feedOptions.type instead

* feat(v2): enable feeds by default in blog plugin

- added documentation for feedOptions

* feat(v2): enable feeds by default in blog plugin

- modified implementation to allow feeds to be disable without error
- added unit test to ensure type: null leads to type: null after
  validation
- added documentation to explain how to disable feed generation
2020-12-10 18:35:19 +01:00
borool
dd8f3257a8
docs(v2): typo (#3856)
* Typo

That was written 2 times, I removed one "that"

* Update installation.md

* Update installation.md

* Update installation.md

* Update installation.md

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-12-10 17:13:23 +01:00
Méril
656c04e1d5
fix(v2): correct typo in metas generated for Twitter cards (#3900)
The Open Graph protocol format is the following:

```
<meta property="og:image" content="https://example.com/image.png />
```

Twitter metas, however, are structured in a different format:

```
<meta name="twitter:image" content="https://example.com/image.png />
```

They are similar but not identical, I think this led to confusion and
the typo we have in the codebase.
2020-12-10 17:09:20 +01:00
Alexey Pyltsyn
b14b9c88f3
fix(v2): do not treat at-rules during CSS minification (#3896) 2020-12-08 18:53:35 +03:00
Alexey Pyltsyn
3e12e951b9
fix(v2): use proper element for pagination nav label (#3895) 2020-12-08 18:34:39 +03:00
Alex1304
1f3f569f3e
docs(v2): wrap section about custom domains in :::info (#3891) 2020-12-07 19:02:01 +01:00
Bartosz Kaszubowski
e00e54a693
fix(v2): improve Footer structure, add class names, use Infima transition (#3882) 2020-12-07 16:35:00 +01:00
Bartosz Kaszubowski
9fd8a3c693
chore(ci): increase Lighthouse CI max_timeout (#3884) 2020-12-07 15:50:50 +01:00
Alexey Pyltsyn
08f6734bff
chore(v2): remove docs for alpha v62-63 (#3883) 2020-12-04 21:05:13 +03:00
Sébastien Lorber
ec297cead0
polish(v2): improve docusaurus deploy logs (#3880)
* improve deploy logs

* improve deploy logs
2020-12-04 16:50:46 +01:00
Hadrien Milano
c4aeb1982c
fix(v2): dynamic dark mode detection without toggle widget (#3877)
* fix(v2): dynamic dark mode detection without toggle widget

* Update packages/docusaurus-theme-classic/src/theme/hooks/useTheme.ts

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-12-04 13:27:34 +01:00
hackerman
415a7973f1
fix(v2): load plugin commands async to fix broken plugin CLI commands docs:version (#3869)
* fix(v2): load plugin commands asynchronously

https://github.com/facebook/docusaurus/blame/master/packages/docusaurus/src/commands/external.ts#L12 changed the exported method to an async function, but the CLI loader was not updated to also run async, breaking things such as `npm run docusaurus docs:version <version>`.

* chore(v2): resolve lint issue
2020-12-03 18:23:26 +01:00