Jack Howard
fef6c4c8cb
fix(theme): improve color contrast of live code block header ( #11120 )
...
fix: Ensure accessibility of live code block contrast with background update
2025-05-02 13:52:38 -04:00
Sébastien Lorber
29d19a6884
refactor(live-codeblock): refactor live code block theme components ( #11077 )
2025-04-10 15:55:02 +02:00
Sébastien Lorber
f9825af43e
refactor: prepare types for React 19 ( #10746 )
2024-12-06 18:03:04 +01:00
Sébastien Lorber
644bc49862
fix(theme-live-codeblock): fix live editor border-radius ( #10689 )
2024-11-18 11:10:06 +01:00
Sébastien Lorber
28f6a4907a
chore: upgrade minor dependencies ( #10610 )
2024-10-24 18:44:59 +02:00
Sébastien Lorber
16500436f7
fix(theme): allow empty code blocks and live playgrounds ( #9704 )
2024-01-05 13:37:48 +01:00
Sébastien Lorber
991429ff8a
fix(live-codeblock): stabilize react-live transformCode callback, fix editor/preview desync ( #9631 )
2023-12-14 12:56:28 +01:00
Chongyi Zheng
dceaae41d7
chore: upgrade syntax highlighting dependencies, prism-react-renderer
to v2, react-live
to v4 ( #9316 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-06 19:15:14 +02:00
Sébastien Lorber
58be496da2
feat(theme-mermaid): upgrade Mermaid to v10.4 - handle async rendering ( #9305 )
2023-09-14 17:23:07 +02:00
Rashid
79b3f65a17
fix(live-codeblock): add error boundary to live code preview ( #8015 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-10-13 17:49:27 +02:00
Markshawn
f6835898bc
chore: fix CSS import order ESLint rule ( #7852 )
...
* enhance: added ESLint ruler for CSS import
* chore: added ruler for default import of css, and fixed all exsting files
* chore: reverted changes on css header rulers
2022-08-01 00:05:00 +08:00
JP
f25ee0cbf5
feat(live-codeblock): add support for noInline to interactive code blocks ( #7514 )
...
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-06-02 10:34:20 +02:00
Joshua Chen
624735bd92
refactor: fix more type-aware linting errors ( #7479 )
2022-05-24 19:19:24 +08:00
Joshua Chen
bf1513a3e3
refactor: fix a lot of errors in type-aware linting ( #7477 )
2022-05-24 15:40:26 +08:00
Joshua Chen
3666a2ede5
refactor: remove a lot of implicit anys ( #7468 )
2022-05-23 15:40:53 +08:00
Joshua Chen
0838884f67
chore: enable import/order rule ( #7418 )
2022-05-14 23:39:50 +08:00
Elias Papavasileiou
3b1170eb44
feat: Docusaurus ESLint plugin to enforce best Docusaurus practices ( #7206 )
...
* feat: add eslint plugin
* refactor
* add tests
* fixups!
* fix(no-dynamic-i18n-messages): make translate() recognize template literals
* refactor: rename rule no-dynamic-i18n-messages --> string-literal-i18n-messages
* feat: add ignoreStrings option and refactor
* docs: migrate docs to /docs/api/plugins
* docs: fix anchor links in README.md
* fix: add some ignored strings
* docs: update eslint-plugin docs
* fix: update README link
* docs: various updates
- Reorder sidebar entries
- Fix title size
- Use Markdown file paths
- Simplify relative links
* address reviews
* wording polish
* add npmignore
* fix all internal warnings
* doc improvements
* fix test
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-30 00:04:25 +08:00
Joshua Chen
7f06857e46
fix: fix a lot of declaration semantic errors ( #7194 )
2022-04-17 23:44:20 +08:00
Joshua Chen
9145ae88cc
chore: disable string escaping in snapshots ( #7131 )
2022-04-08 11:23:19 +08:00
Joshua Chen
24c205a835
refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type ( #7080 )
...
* refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type
* fix
2022-03-31 19:16:07 +08:00
Joshua Chen
2bcac29cd4
refactor(content-docs): deduplicate types, JSDoc for some APIs ( #7027 )
...
* refactor(content-docs): deduplicate types, JSDoc for some APIs
* little refactor
2022-03-27 12:57:15 +08:00
Joshua Chen
6e2eb44964
refactor: unify how validateOptions is handled ( #6961 )
...
* refactor: unify how validateOptions is handled
* fix types
* fix again
2022-03-22 19:40:56 +08:00
Joshua Chen
68aaf9201f
feat(core): allow plugin lifecycles to return relative paths ( #6921 )
...
* feat(core): resolve plugin lifecycles returning relative paths
* fix typo
* fix tests
* revert
* rename path -> entryPath
2022-03-16 20:47:15 +08:00
Joshua Chen
76cb012209
chore: spell-check test files ( #6903 )
2022-03-12 15:24:56 +08:00
Joshua Chen
aa5a2d4c04
test: enable a few jest eslint rules ( #6900 )
...
* test: enable a few jest eslint rules
* more
2022-03-12 08:43:09 +08:00
Joshua Chen
0d14470d54
refactor: unify export directive style ( #6751 )
2022-02-24 17:25:17 +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
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
e40cafccd5
chore: enable stylelint standard config ( #6442 )
...
* chore: enable stylelint standard config
* remove empty line
* fix
2022-01-22 21:26:35 +08:00
Sébastien Lorber
f87a3ead46
refactor: move @theme/hooks to @docusaurus/theme-common ( #6289 )
2022-01-07 19:19:35 +01:00
Joshua Chen
cb1aa30286
refactor: enforce type import specifiers ( #6230 )
...
* refactor: enforce type import specifiers
* fix
* Upgrade esbuild
* Fix (haha)
2021-12-31 21:17:09 +08:00
Joshua Chen
e07ebadf6c
fix: make Docusaurus PnP strict mode compatible ( #6047 )
...
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2021-12-08 14:26:24 +01:00
Alexey Pyltsyn
63bd6b9025
refactor: define own translations in other themes ( #5849 )
...
Co-authored-by: Armano <armano2@users.noreply.github.com>
2021-11-20 16:35:27 +01:00
Joshua Chen
0374426ce3
chore: upgrade TypeScript & other ESLint related deps ( #5963 )
...
* chore: upgrade ESLint related deps
* Upgrade TS
* Fix lock
* Bump Babel
* Update config
2021-11-18 21:15:37 +08:00
Joshua Chen
d1308a8736
refactor: improve setup of type declaration files ( #5914 )
2021-11-12 17:47:27 +01:00
Joshua Chen
0e5057bdb3
refactor(live-codeblock): migrate package to TS ( #5851 )
...
* refactor(live-codeblock): migrate package to TS
* Migrate test
2021-11-02 12:28:41 +08:00
Joshua Chen
1c8b8362f7
fix(live-codeblock): render static codeblock server-side ( #5754 )
...
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-10-21 17:17:03 +02:00
Nathaniel Tucker
4a4f8497b3
fix: Don't ignore options.transforms for buble ( #5677 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-10-12 20:01:27 +02:00
Sébastien Lorber
295e77cc09
refactor(core): replace useDocusaurusContext().isClient by useIsBrowser() ( #5349 )
...
* extract separate useIsClient() hook
* for consistency, rename to `useIsBrowser`
* useless return
* improve doc for BrowserOnly
* update snapshot
* polish
2021-08-12 19:02:29 +02:00
Sébastien Lorber
a7a5ea3466
refactor: make code block shadows consistent with new admonitions ( #5215 )
2021-07-23 18:11:40 +02:00
Sébastien Lorber
9e881b46c8
fix(v2): i18n fixes ( #4466 )
2021-03-19 14:23:31 +01:00
Sébastien Lorber
60d189a91c
fix(v2): Export Joi from validation-utils package ( #4459 )
2021-03-18 19:27:51 +01:00
tokarchyn
98a4b3a65c
feat(v2): Add playgroundPosition config for live codeblock ( #4328 )
...
* docs(v2): Add configuration parameter to allow putting Result before Editor in @docusaurus/theme-live-codeblock
* update doc
* refactor as playgroundPosition
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-05 14:49:17 +01:00
Alexey Pyltsyn
a4b409c93b
fix(v2): make code blocks more standalone ( #4315 )
...
* refactor(v2): make code blocks styles standalone
* Rework
* Revert font size in playground headers
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 18:22:34 +01:00
Alexey Pyltsyn
0383dd1496
fix(v2): evaluate code in live editor on client only ( #4318 )
2021-03-04 17:52:53 +01:00
Sébastien Lorber
3d00613e5d
fix(v2): Code blocks should be LTR by default ( #4277 )
...
* use LTR code code blocks
* code blocks should be LTR
2021-02-23 18:47:07 +01:00
Sébastien Lorber
ab7951571e
feat(v2): Extract/translate hardcoded labels from classic theme ( #4168 )
...
* Translate theme hardcoded strings
* improve test
2021-02-03 20:06:26 +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
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
81d855355e
feat(v2): option and config validation life cycle method for official plugins ( #2943 )
...
* add validation for blog plugin
* fix wrong default component
* fix test and add yup to package.json
* remove console.log
* add validation for classic theme and code block theme
* add yup to packages
* remove console.log
* fix build
* fix logo required
* replaced yup with joi
* fix test
* remove hapi from docusuars core
* replace joi with @hapi/joi
* fix eslint
* fix remark plugin type
* change remark plugin validation to match documentation
* move schema to it's own file
* allow unknown only on outer theme object
* fix type for schema type
* fix yarn.lock
* support both commonjs and ES modules
* add docs for new lifecycle method
2020-06-24 20:08:16 +02:00