John Reilly
a9eb005333
feat: make Markdown images lazy loaded ( #6598 )
...
* feat: lazy loading images
* feat: use real images
2022-02-04 22:04:53 +08:00
Joshua Chen
45f6f8b869
chore: fix ESLint warnings, restrict export all syntax ( #6605 )
...
* chore: fix ESLint warnings, forbid export all syntax
* fix...
* reorder
2022-02-04 21:57:10 +08:00
Joshua Chen
3fd99ad8d4
feat(content-blog): allow customizing blog archive component through option ( #6603 )
...
* feat(content-blog): allow customizing blog archive component through option
* fix
2022-02-04 18:56:09 +08:00
Joshua Chen
0c4dc00443
feat(content-docs): allow omitting enclosing array consistently for category shorthand ( #6602 )
...
* feat(content-docs): allow omitting enclosing array consistently for category shorthand
* update snapshot
* fix doc
2022-02-04 11:16:08 +08:00
Joshua Chen
e3fd3e74ce
refactor(content-docs): clean up sidebars logic; validate generator returns ( #6596 )
...
* refactor(content-docs): clean up sidebars logic; validate generator returns
* remove another TODO
* fix types
* refactors
* refactor...
2022-02-04 09:46:25 +08:00
Mikey O'Toole
d6bdf7e804
fix(theme-classic): add docSidebar as allowed item in dropdown ( #6599 )
...
* Add ThemeClassName to Docs Sidebar container.
* Fix issue #6597 - Missing docSidebar in theme config validation.
* revert comment change
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-04 09:38:09 +08:00
Muhammad Redho Ayassa
48f080ebca
feat(content-blog): Allow pagination for BlogTagsPostsPage ( #6221 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-02-03 18:33:13 +01:00
Joshua Chen
01c6f15b15
fix(theme-classic): make focused link outlined with JS disabled ( #6505 )
2022-02-03 18:28:10 +01:00
Everardo J. Barojas M
caa9d281c3
docs: improve Github Actions example jobs ( #6591 )
...
* docs: Improve docs on deploy.yml gh action
* docs: Improve docs on test-deploy.yml gh action
* docs: improve docs on delpoy.yml and test-deploy.yml gh action on next version docs
* docs: rm unneeded lines
* edits
Co-authored-by: Everardo J Barojas M <everardo@prescrypto.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-03 20:42:19 +08:00
Joshua Chen
1ca07f8466
refactor(content-docs): read category metadata files before autogenerating ( #6586 )
...
* refactor(content-docs): read category metadata files before autogenerating
* fix tests
* fix Windows...
* warn user when behavior is undetermined
* oops
* fix typo
2022-02-03 16:16:19 +08:00
Felipe Santos
b03431f139
fix: read last update from inner git repositories ( #6592 )
2022-02-03 16:02:28 +08:00
Yangshun Tay
85351549fe
feat(website): add Tweets section ( #6426 )
...
* feat(website): add tweets
* feat(website): add tweets to homepage
* Update tweet meta color for better contrast
* change tweets
* ignore tweets in cspell
2022-02-03 05:40:00 +08:00
Jody Heavener
6ec0db4722
feat(content-docs): sidebar item type "html" for rendering pure markup ( #6519 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-02-02 18:38:35 +01:00
Miles Johnson
65ba551f5b
fix(content-docs): export versioning utils ( #6477 )
2022-02-02 17:21:54 +01:00
Joshua Chen
3573b5e4a9
fix(content-docs): render category with no subitems as a normal link ( #6495 )
2022-02-02 14:45:00 +01:00
Joshua Chen
049b2c84c6
misc: fix git attributes syntax ( #6585 )
2022-02-02 20:16:42 +08:00
Joshua Chen
759952cefd
misc: enable jsx-key eslint rule ( #6584 )
2022-02-02 19:22:26 +08:00
Joshua Chen
250d9c8cf5
refactor(live-codeblock): migrate theme to TS ( #6583 )
...
* refactor(live-codeblock): migrate theme to TS
* Don't make it visible
2022-02-02 17:48:06 +08:00
Joshua Chen
58de17b51e
misc: fix gitattributes for linguist configuration ( #6582 )
2022-02-02 17:08:10 +08:00
seyoon20087
a615ab3999
feat(core): use react-helmet-async ( #6306 )
...
* Use React Strict Mode
Even though Strict Mode is not required a WARNING icon now displays
on all components that do not use React.StrictMode on React DevTools extension.
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
* Utilize react-helmet-async instead of react-helmet
react-helmet is NOT thread safe, as explained in https://open.nytimes.com/the-future-of-meta-tag-management-for-modern-react-development-ec26a7dc9183#fdc2
Therefore, it's better if react-helmet-async is utilized instead of react-helmet.
Even though react-helmet-async is being utilized, most users will not require any code changes to @docusaurus/Head since it uses the same API as react-helmet.
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
* Include HelmetProvider inside client entry
I forgot to do this before.
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
* format
* fix TS
* address reviews
* Remove forked react-loadable package in favor of @react-loadable/revised
Both unforked react-loadable and @docusaurus/react-loadable uses legacy React APIs.
However, @react-loadable/revised (https://github.com/react-loadable/revised ) is actively maintained and widely used in production, thus replaced with this package.
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
* remove unused comma
* Address reviews from https://github.com/facebook/docusaurus/pull/6306#pullrequestreview-864745191
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-02 14:52:44 +08:00
Artem Kovalov
94135ac71a
docs: add SAP Cloud SDK to showcase ( #6532 )
...
* Add SAP Cloud SDK docs portal
* SAP Cloud SDK screenshot
* edits
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-02 14:25:58 +08:00
Joshua Chen
661bc32402
chore(deps): bump all dependencies; regenerate lockfile ( #6580 )
2022-02-02 13:00:31 +08:00
dependabot[bot]
d8eac86775
chore(deps-dev): bump lint-staged from 12.1.7 to 12.3.3 ( #6535 )
...
Bumps [lint-staged](https://github.com/okonet/lint-staged ) from 12.1.7 to 12.3.3.
- [Release notes](https://github.com/okonet/lint-staged/releases )
- [Commits](https://github.com/okonet/lint-staged/compare/v12.1.7...v12.3.3 )
---
updated-dependencies:
- dependency-name: lint-staged
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 11:53:10 +08:00
dependabot[bot]
83a4724e15
chore(deps): bump sitemap from 7.1.0 to 7.1.1 ( #6534 )
...
Bumps [sitemap](https://github.com/ekalinin/sitemap.js ) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/ekalinin/sitemap.js/releases )
- [Changelog](https://github.com/ekalinin/sitemap.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ekalinin/sitemap.js/compare/7.1.0...7.1.1 )
---
updated-dependencies:
- dependency-name: sitemap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 11:52:10 +08:00
dependabot[bot]
1c8005d99f
chore(deps): bump terser-webpack-plugin from 5.3.0 to 5.3.1 ( #6577 )
...
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin ) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases )
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.0...v5.3.1 )
---
updated-dependencies:
- dependency-name: terser-webpack-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 11:48:56 +08:00
Alexey Pyltsyn
72bad11e97
fix(theme-classic): highlight active collapsible doc category properly ( #6531 )
2022-02-01 21:18:21 +08:00
Joshua Chen
1cefb643dd
refactor: enforce named capture groups; clean up regexes ( #6524 )
...
* refactor: enforce named capture groups; clean up regexes
* fixes
* fix
2022-02-01 17:43:15 +08:00
Joshua Chen
c56e6194b4
refactor: mark all functions that import external modules as async ( #6521 )
2022-01-31 13:04:45 +08:00
Joshua Chen
aa446b7a9c
chore: clean up ESLint config, enable a few rules ( #6514 )
...
* chore: clean up ESLint config, enable a few rules
* enable max-len for comments
* fix build
2022-01-31 10:31:24 +08:00
Kishan Gajera
b8ccb869f1
fix(theme-classic): add key prop for SimpleLinks map ( #6515 )
2022-01-31 10:07:16 +08:00
Joshua Chen
196c8ea434
docs: clean up CONTRIBUTING ( #6513 )
...
* docs: clean up CONTRIBUTING
* Update PR template
2022-01-30 20:29:47 +08:00
Joshua Chen
8f69f633e6
refactor(core): convert theme-fallback to TS ( #6511 )
...
* refactor(core): convert theme-fallback to TS
* add missing type
* fix snapshot
2022-01-30 18:41:13 +08:00
Joshua Chen
e77dda07c0
misc: configure linguist behavior to show better language stats ( #6512 )
2022-01-30 18:26:35 +08:00
Kishan Gajera
dda92eb2b6
fix(theme-classic): apply width/height for footer logos without href ( #6508 )
2022-01-29 23:16:40 +08:00
Joshua Chen
2553f1fb5a
refactor: improve internal typing ( #6507 )
...
* refactor: improve internal typing
* fix
* fix test
2022-01-29 22:58:40 +08:00
Joshua Chen
58e07a6796
test: add test for readOutputHTMLFile ( #6506 )
2022-01-29 18:10:46 +08:00
Gaurish
8bdecf107c
docs: add Cloudflare pages deployment guide ( #6501 )
...
* Docs: Add Cloudflare pages deployment guide
* minor tweaks
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-29 13:27:34 +08:00
Joshua Chen
4f2b09fe32
refactor: fix all eslint warnings ( #6502 )
2022-01-29 13:21:40 +08:00
Joshua Chen
c1e3801ee7
fix(cli): allow passing a list of file names to write-heading-ids ( #6500 )
2022-01-29 12:21:15 +08:00
dependabot[bot]
9af7aae9e2
chore(deps): bump simple-get from 4.0.0 to 4.0.1 ( #6497 )
...
Bumps [simple-get](https://github.com/feross/simple-get ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/feross/simple-get/releases )
- [Commits](https://github.com/feross/simple-get/compare/v4.0.0...v4.0.1 )
---
updated-dependencies:
- dependency-name: simple-get
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-29 11:35:10 +08:00
Joshua Chen
f2b1c8e80e
docs: mention how env vars can be read ( #6499 )
2022-01-29 11:34:30 +08:00
Matthew Ailes
d45f96fc83
fix: updating peerDependency fields for yarn berry ( #6498 )
2022-01-29 10:29:03 +08:00
Sébastien Lorber
f5f598a921
fix(core): configValidation should allow inline theme functions ( #6496 )
2022-01-28 17:49:25 +01:00
Joshua Chen
c99026c524
fix(theme-classic): do not switch color modes when printing ( #6490 )
...
* fix(theme-classic): coerce to light theme when printing
* revert this...
* fix
2022-01-28 20:19:23 +08:00
Tamal Web
ade486d079
docs: mention where to find the sitemap ( #6492 )
...
* Added the sitemap url
So that users know where to locate their sitemaps
* Update plugin-sitemap.md
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-28 17:11:09 +08:00
nick-verida
45c3a5fe05
docs: add developers.verida to showcase ( #6491 )
...
* Update users.tsx
* Add verida-developers.png
* optimize image
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-28 16:38:11 +08:00
Nick Schonning
bcb15336bf
chore: fix Stylelint globs for editor support ( #6476 )
...
* chore: expand Stylelint globs
* uninstall plugins
* revert stylelint bump
* fix lock
* better ignore
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-28 12:02:16 +08:00
Joshua Chen
556f59b193
fix(utils): do not resolve Markdown paths with @site prefix ( #6489 )
2022-01-28 10:10:39 +08:00
Sébastien Lorber
8a912c708e
chore: fix codesandbox example link + mention npm publish recovery ( #6487 )
2022-01-27 23:18:04 +08:00
Joshua Chen
f6ff6474bc
feat(website): new plugin to load CHANGELOG and render as blog ( #6414 )
...
* feat(website): new plugin to load CHANGELOG and render as blog
* use CJS
* move footer links
* better design
* fixes
* correctly order posts
* add authors
* Add axios
* Update styles
* oops
* oops
* add expand button
* back to index page link
* fix styles
* add feed options
* fix
* fix
* Add fallback
* fix
* fixes
2022-01-27 23:17:31 +08:00