Commit graph

3108 commits

Author SHA1 Message Date
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
Shenwei Wang
80360b4e0f
docs(v2): add a community plugin (#3616)
Add a community plugin of @easyops-cn/docusaurus-search-local.
2020-10-21 09:48:25 +03:00
Sébastien Lorber
c340ee13df
refactor(v2): Improve SSR error message: log page path with the SSR problem (#3609) 2020-10-20 12:25:40 +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
e5448d9a96
fix(v2): fix error with required href attr of link in mobiles (#3607) 2020-10-19 17:17:57 +02:00
Alexey Pyltsyn
6cfadb89eb
fix(v2): make dropdown button clickable with mouse (#3602) 2020-10-19 16:41:18 +02:00
Christian Bromann
7f6fba9d9e
docs(v2): removed obsolete "you" identifier (#3576) 2020-10-19 09:24:51 +03:00
Sébastien Lorber
56ce98c63d
fix(v2): toc highlighting issues (#3601) 2020-10-16 22:54:03 +02:00
Sébastien Lorber
e4c1626106
feat(v2): blog sidebar (#3593)
* blog sidebar POC

* polish blog post sidebar

* add doc for blogSidebarCount

* Update packages/docusaurus-theme-classic/src/theme/BlogSidebar/styles.module.css

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-10-16 19:12:05 +02:00
Alexey Pyltsyn
da6268911c
fix(v2): remove event listeners on Tabs component unmount (#3599) 2020-10-16 18:15:48 +02:00
Alexey Pyltsyn
8f5c632cdf
refactor(v2): various dropdown improvements (#3585)
* refactor(v2): various dropdown improvements

* Remove invalid attr from markup

* Better naming

* Update types

* Fix

* Remove attr position correctly

* Test

* Add test
2020-10-16 16:41:30 +02:00
Alexey Pyltsyn
bfefc46436
refactor(v2): various fixes (#3587)
* refactor(v2): various fixes

* Test
2020-10-16 10:54:23 +02:00
Hamza Hamidi
67136a77b8
chore(v2): remove unused deps from docusaurus-mdx-loader (#3595) 2020-10-15 23:14:21 +03:00
Fanny
4760e1225b
feat(v2): Extract npm2yarn plugin (#3469)
* chore(v2): add dependency

* test(v2): Add npm2yarn tests

* feat(v2): Move npm2yarn to a new remark plugin

* remark npm2yarn plugin => ready to release

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-10-15 19:30:12 +02:00
Alexey Pyltsyn
fe7267ae93
refactor(v2): make accessible copy code button from keyboard (#3588) 2020-10-15 17:03:48 +02:00
Sébastien Lorber
aed1ce7850
chore(v2): enable new contextual search feature (#3591) 2020-10-15 15:34:04 +02:00
Sébastien Lorber
21264f5ed0
feat(v2): contextual search, dynamic Algolia facetFilters (#3550)
* POC of contextual search dynamic filters

* fix useSearchTags bugs

* contextual search should use preferred version  (persisted in storage)

* Contextual search: make system decoupled from algolia + wire proper meta tags and facet filters

* rework doc tag + minor refactorings

* update snapshots

* polish contextual search

* add Algolia validateThemeConfig tests
2020-10-15 12:16:30 +02:00
honlyHuang
d23940c9c3
docs(v2): add taro to users (#3589) 2020-10-15 12:58:08 +03:00
Sébastien Lorber
b27d3529dd
chore(v2): fix/upgrade react types (#3586) 2020-10-14 16:25:38 +02:00
Alexey Pyltsyn
5be347108e
refactor(v2): apply common behavior to dropdowns (#3578)
* refactor(v2): apply common behavior to dropdowns

* WTF

* Update DefaultNavbarItem.tsx

* Update DefaultNavbarItem.tsx

* ((
2020-10-14 12:15:09 +02:00
Bartosz Kaszubowski
b85e6e0205
feat(v2): allow to define custom CSS class for Tabs component (#3580)
* feat(v2): allow to define custom CSS class for Tabs component

* Update website/docs/markdown-features.mdx

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-10-14 11:34:44 +02:00
Hamza Hamidi
e0c644e623
feat(v2): Add themeConfig.noIndex option #3528 (#3573)
* feat(v2): Add themeConfig.noIndex option #3528

* feat(v2): Add themeConfig.noIndex optionthrough ssrTemplate

* feat(v2): Include themeConfig.noIndex in CLI migration v1 to v2

* feat(v2): Remove themeConfig.noIndex from env dev
2020-10-14 11:14:16 +02:00
Alexey Pyltsyn
e5d9cdc871
refactor(v2): clarify versions page (#3577)
* refactor(v2): clarify versions page

* Make Netlify happy
2020-10-12 19:09:53 +02:00
Sébastien Lorber
4130f1a195
feat(v2): persist docs preferred version (#3543)
* persist docs preferred version

* add proper implementation for useDocsPreferredVersion

* add proper implementation for useDocsPreferredVersion

* useDocsPreferredVersion => make localstorage read only after mount

* why @docusaurus/constants can't work?

* fix weird TS issue when not duplicating constants

* add basic @docusaurus/constants doc

* attempt to fix docs-only mode where we should not call useDocs hooks

* attempt to fix docs-only mode where we should not call useDocs hooks

* fix children

* encapsulate hacky isDocsPluginEnabled in docsUtils

* use same priority order for all navbar items: activeVersion ?? preferredVersion ?? latestVersion
2020-10-12 18:56:24 +02:00
DeadEnglish
d1510770f4
feat(v2): add option for blog meta title #3571
* feat(blog-meta-title): add support for additional meta title

* retrocompatible blog title

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-10-12 13:23:54 +02:00
Russ Taylor
2e51034b0c
docs(v2): deployment, add required Github token scope infos (#3565) 2020-10-12 12:44:14 +02:00
Sébastien Lorber
8c4d5bfcfb
refactor(v2): improve broken links error message (#3569)
* improve broken  links message

* improve broken links error message: include help message for frequent broken links, usually found in layout
2020-10-12 11:50:46 +02:00
Shubham Zanwar
6ad322e327
docs(v2): add vue-nodegui to users (#3574) 2020-10-12 11:53:52 +03:00
Abhishek Tiwari
9c961a6e74
docs(v2): Added Axioms to users (#3556)
* Added Axioms to users

Added Axioms to users

* Added Axioms to V2 Users list and reverted change on v1 User list

* Update website/src/data/users.js

* Update website/src/data/users.js

* Update users.js

* Update users.js

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-10-09 10:12:35 +02:00
Alexey Pyltsyn
72901834be
feat(v2): make dropdown menu collapsible on mobiles (#3553)
* feat(v2): make dropdown menu collapsible on mobiles

* Add test
2020-10-08 18:57:35 +02:00
Sébastien Lorber
a3ab9c116f
feat(v2): prevent using remote image urls in showcase (#3560)
* prevent using remote image urls in showcase

* remove old/duplicate user image self-hosted check

* fix unavailable str.startsWith

* fix external image check due to ideal-image plugin

* fix external image check due to ideal-image plugin
2020-10-08 18:40:41 +02:00
Sébastien Lorber
d444ab75ef
docs(v2): embedding real source code in MDX as a code block (#3558)
* Example of embedding real source code in MDX as a code block

* Example of embedding real source code in MDX as a code block
2020-10-08 18:39:50 +02:00
Alexey Pyltsyn
39d6787471
fix(v2): use absolute path to manifest file (#3554)
* fix(v2): use absolute path to manifest file

* Use base url
2020-10-08 18:27:26 +02:00
John Gracey
5d3765fa91
docs(v2): add "Wisdom" dev docs website to showcase. (#3555) 2020-10-08 13:59:59 +02:00
Sébastien Lorber
649882d867
feat(v2): version dropdown before/after items + move site "All Versions" link (#3548)
* add dropdownItemsAfter option + reorg a bit docusaurus site navbar

* fix isActive  react warning

* Update theme-classic.md

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-10-07 19:58:00 +03:00
Sébastien Lorber
5b79f2ebc2
feat(v2): site client modules (#3545)
* site client modules

* Update website/docs/api/docusaurus.config.js.md

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-10-07 14:44:14 +03:00
Sébastien Lorber
9ba28a378f
feat(v2): doc navbar item type (#3539)
* provide DocNavbarItem type

* update snapshots

* Fix Docusaurus tabs CSS

* revert navbar tabs css/style changes, instead apply simple navbar__link--active class + make it configurable

* Update website/docs/theme-classic.md

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>

* add dropdownActiveClassDisabled option

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-10-07 14:42:24 +03:00
Alexey Pyltsyn
9134b1396b
docs: various fixes and improvements (#3546) 2020-10-07 12:39:47 +02:00
Utkarsh Goel
2e9854964d
feat(v2): Add console output with complete URL including the baseUrl (#3541)
* Add console output with complete URL including the baseUrl

* Add output when website loads for first time, corrects sentence for clarity
2020-10-06 13:19:11 +02:00
Umair Kamran
10973476ff
fix(v2): Fixes serve cli --port option (#3531)
* fix(v2): Fixes serve cli --port option

* refactor a bit the start/serve cli options management

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-10-05 15:20:03 +02:00
Matan Borenkraout
f29da4ba77
docs(v2): change package name in example script (#3532) 2020-10-05 14:33:16 +02:00
aakhtar3
6637e1dc82
docs(v1): added drone for 1.0 #3491 (#3538)
* docs(v1): added drone for 1.0 #3491

* Update getting-started-publishing.md

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-10-05 13:02:41 +02:00
SaintMalik
38db7c6a88
docs(v1): Fix broken link in the documentation (#3533) 2020-10-04 19:49:09 +02:00
SaintMalik
6dec70b69f
docs(v2): Fix url bugs in v2 docs (#3534)
* Fix broken link in the documentation

* Fix broken url caused by typo

* Fix broken link caused by typo
2020-10-04 19:46:48 +02:00
Sébastien Lorber
637fe0087d
feat(v2): add TOC to markdown pages #3529 2020-10-03 17:33:36 +02:00
Shubham Kumar
0951eef2d7
refactor(v2): add useThemeConfig hook + cleanup useless theme default values (#3394)
* refactor(theme-classic): clean default or fallback values

* refactor(theme-classic): fix announcementbar undefined error

* refactor(theme-classic): fixed react hook warning error

* refactor(theme-classic): revert prism destruct

* create useThemeConfig and use it whenever possible

* validateThemeConfig => add [] as default value for almost all arrays

* fix tests

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-10-02 19:23:34 +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
e6704733e4
fix(v1): v1 deploy preview should be available (#3517)
* v1 deploy preview

* Add /v1-migrated deployment
2020-10-02 14:58:06 +02:00
Andrey Rublev
83db07e5b4
chore(v2): fixed props being passed to @svgr/webpack loader (#3498)
Without comma option `-prettier-svgo` is parsed as `'prettier-svgo': false`
2020-10-02 13:51:21 +02:00
Sébastien Lorber
41ff9a9fd0
chore(v1): move v1 docs inside website-1.x (#3504)
* move v1 docs in website-1.x

* fix editUrl after moving v1 docs

* update crowdin source for v1 docs

* fix test after v1 config change

* migration cli should support customDocsPath (fix v1->v2 integration tests)

* fix migrationConfig.test.ts
2020-10-01 17:16:24 +02:00