Commit graph

3673 commits

Author SHA1 Message Date
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
Sébastien Lorber
70dece09e6
docs(v2): missing <ColorGenerator/> mdx import (#3871) 2020-12-03 18:17:04 +01:00
Matteo Manzinello
20114f5e0a
docs(v2): From docusaurus-migrate to @docusaurus/migrate (#3873)
Fix from docusaurus-migrate to @docusaurus/migrate
2020-12-03 18:16:07 +01:00
Bartosz Kaszubowski
9ad02ca466
chore(v1): add missing generated files from v1 to ignores (#3872) 2020-12-03 18:13:44 +01:00
Bartosz Kaszubowski
f37987f32f
chore(v2): fix ignore paths and Prettier commands in themes (#3865)
* chore(v2): fix Prettier ignore paths and commands in themes

* chore(ci): do not ignore v1 lib, remove old .gitignore

* chore(ci): apply tweaks also to eslint ignore
2020-12-03 11:50:03 +01:00
Derric Gilling
d61754b3d5
docs(v2): Add docusaurus-plugin-moesif to community plugins (#3867) 2020-12-03 10:49:39 +01:00
Bartosz Kaszubowski
99e3ee796e
chore(ci): run V1 Build and Migration CLI tests conditionally on CI (#3863)
* chore(ci): run V1 Build and Migration CLI test conditionally on CI

* chore(ci): extend lighthouse timeout to 5 minutes

* chore(ci): attempt to speed up build size check

* chore(ci): use different build command in build size check

* chore(ci): use only one locale in build size report workflow

* chore(ci): fix quotes, move build-script param down
2020-12-02 20:19:28 +01:00
Sébastien Lorber
e90749c6f8
fix(v2): to fix the canary release GH workflow (#3852)
* attempt to fix the canary release  GH workflow

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to fix canary-releases.yml

* attempt to make the canary workflow work again

* try to fix canary again

* try to fix canary again

* try to fix canary again
2020-12-02 20:15:12 +01:00
Bartosz Kaszubowski
3f07114758
chore(ci): reduce number of jobs, remove build from lighthouse pipeline (#3861) 2020-12-02 10:05:18 +01:00
Bartosz Kaszubowski
7d0b451783
chore: add Yarn v2 cache directory to ignores (#3860) 2020-12-01 18:46:21 +01:00
Bartosz Kaszubowski
397fde0b2f
fix(v2): refactor icons in theme-classic, fix swizzle issue (#3854)
* fix(v2): refactor icons in theme-classic, fix swizzle issue

* apply review suggestion

* fix IconMenu className
2020-12-01 17:56:11 +01:00
François Chalifour
915f949c25
fix(v2): fix DocSearch keyboard navigator (#3853)
* fix(v2): fix DocSearch keyboard navigator

* Update index.js

* Update index.js

* Update index.js

* Update index.js

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-12-01 17:49:14 +01:00
Sébastien Lorber
9d34214205
chore(v2): disable Crowdin for deploy previews (#3858) 2020-12-01 17:26:01 +01:00
Stephen Woodruff
aff17034cd
docs(v2): Fixed Typo: Hided => Hidden (#3851)
* Fixed Typo: Hided => Hidden

Fixed typo in section about the hideable sidebar. 'hided' is used instead of 'hidden'.

* Update docs.md

* Update docs.md

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-12-01 17:11:27 +01:00
Sébastien Lorber
fe77b435d3
fix(v2): fix crowdin ci commands (#3857) 2020-12-01 16:46:21 +01:00
Bartosz Kaszubowski
3e101f86b7
chore(ci): CI scripts cleanup, add Node 14 runs, bump checkout action (#3849)
* chore(ci): CI scripts cleanup, add Node 14 and 15 runs, bump checkout action

* chore(ci): attempt to fix Yarn v2 install

* chore(ci): another attempt to fix Yarn v2 install

* use local yarn-deduplicate

* move yarn config steps earlier

* remove localhost registry config

* revert changes, temporary remove lock update from postinstall

* revert to use Yarn v2 only for website build

* revert back localhost registry

* missing flag

* is it node 15 to blame?

* not running yarn v2 on workspace so lock update can be reverted
2020-12-01 16:22:03 +01:00
Sébastien Lorber
28a83d73e3
feat(v2): add automated canary releases (#3827)
* attempt to add automated canary releases

* fix canary releases workflow
2020-12-01 11:56:59 +01:00
Sébastien Lorber
8217fb64c9
chore(v2): i18n CI: add write-translations call (#3850) 2020-11-30 19:38:09 +01:00
Sébastien Lorber
36107d16f2
chore(v2): fix CI typo (#3848) 2020-11-30 18:46:11 +01:00
Sébastien Lorber
4118d9bfc9
chore(v2): wire production Crowdin project + setup (#3847)
* wire production crowdin project + setup

* fix typos
2020-11-30 18:24:16 +01:00
Kaartic Sivaraam
cf5644d67a
fix(v2): remove unnecessary backtick in output (#3839)
* fix(v2): remove unnecessary backtick in output

The escaped backtick seems to be present for no clear reason.
As a matter of fact, it seems to be cluttering the output.

So, remove the unnecessary backtick in the output.

* update snapshot

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-11-30 17:07:59 +01:00
Sébastien Lorber
764d1fd191
chore(v2): fix PRs not able to add lighthouse/buildsize comment from works (#3846)
https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/
2020-11-30 16:47:19 +01:00
Bartosz Kaszubowski
ad31facb32
chore(v2): fix several lint warnings, add missing types, cleanup (#3844)
* fix several lint warnings, add missing types, cleanup

* fix EnumChangefreq issue

* better utilization of EnumChangefreq type

* update test snapshot
2020-11-30 16:42:58 +01:00
Matija Sosic
139b668737
docs(v2): Add wasp to showcase (#3832)
* Update users.js

* Added Wasp showcase image.

* fix wasp showcase

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-11-30 16:11:30 +01:00
Bartosz Kaszubowski
21572ccd37
feat(v2): extract site title formatter to theme-common util (#3838) 2020-11-30 15:41:09 +01:00
davidmauskop
821a39bf2e
docs(v2): render deployment doc (#3813)
Link to Render's deployment guide
2020-11-30 14:46:27 +01:00
Bartosz Kaszubowski
e864aa02aa
docs(v2): update Client API docs page (#3835)
* docs(V2): update Client API docs page

* apply review suggestion, fix useGlobalData example
2020-11-30 14:39:51 +01:00
Sébastien Lorber
8f47babb46
docs(v2): Docs refactoring and reorganization (#3831)
* stable refactor of plugins api documentation

* plugins sidebar not collapsed by default as small?

* theme docs reorg

* Refactor migration guide doc

* fix broken link
2020-11-30 14:07:08 +01:00
Bartosz Kaszubowski
f43781ff41
fix(v2): improve search page styling, fix appearance in dark mode (#3837)
* fix(v2): update SearchPage styling, fix appearance dark mode

* fix inputs outline

* prettier don't like spaces, lets use margin instead

* fix font family, update mobile layout

* attempt to address review concerns
2020-11-29 14:52:07 +03:00
Bartosz Kaszubowski
bb387e089f
feat(v2): add custom wrapper class to search page and fix title (#3834)
* feat(V2): add custom wrapper class to SearchPage

* review change

* fix(V2): fix SearchPage title and Head warning
2020-11-28 00:50:28 +03:00
Sébastien Lorber
42c40f4221
fix(v2): temporary disable crowdin until PR env variable permission fixed (#3833) 2020-11-27 20:30:58 +01:00
Sébastien Lorber
22c06c2775
fix(v2): fix search (#3829)
* fix little search facet typo

* revert Alexey change, as we  are sure a site always has a locale
2020-11-27 10:24:43 +01:00
Alexey Pyltsyn
0f13780045
fix(v2): restore Algolia search (#3828) 2020-11-27 12:06:47 +03:00
Sarthak kundra
bd62be93d9
feat(v2): Added Lighthouse CI to PR checks (#3761)
* added lighthouse CI

removed wait for Netlify action

corrected Netlify deploy urls

corrected sitename

corrected sitename

* removed bootstrap and blog-only urls

* upload results to public storage

* added lighthousesrc.json

* corrected configPath

* corrected robots-txt assertion

* corrected syntax for lighthousesrc

* tried different audit

* corrected all audits for lighthouse

* added is-crawlable audit to skip

* added lighthouse stats commit to action

* Fixed Lighthouse yml syntax

* Fixed lighthouse yml syntax(2)

* trying comment

* trying yaml syntax

* test logging

* trying to see a log

* logging....

* corrected audit step id

* Corrected token

* changed comment number from issue to PR

* trying different message

* corrected message

* added offline-start-url to skip audits

* added start-url to skip fields

* added offline-starts-url
2020-11-26 17:42:05 +01:00
hackerman
fc4b756ec3
fix(v2): support rendering of singular tabs (#3823)
* fix(v2): support rendering of singular tabs

Closes #3822

* Update index.tsx

* fix type

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-11-26 17:12:51 +01:00