Commit Graph

23 Commits

Author SHA1 Message Date
Alexey Pyltsyn 7dc9fe839b
chore(v2): update infima to alpha 26 (#5001) 2021-06-18 15:03:51 +02:00
Alexey Pyltsyn dfe32dac9e
fix(v2): improve accessibility of code blocks (#4943) 2021-06-15 16:28:41 +02: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
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
Alexey Pyltsyn 487a9f98e4
feat(v2): introduce new minification of CSS bundle (#3716)
* feat(v2): optimize CSS bundle

* Move to separate preset

* Move custom scrollbar styles to separate class

* Cleanup styles

* Remove unactual styles

* Various CSS optimizations, cleanup styles for NProgress

* Add ability to back to old way of minifying CSS

* chore(v2): downgrade babel-plugin-dynamic-import-node to 2.3.0

* Use env var for back to simple CSS minifier

* remove unnecessary typing [skip-ci]

* Remove missing dep

* Update website/docs/cli.md

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-11-13 14:06:24 +01:00
Hai 85971fd1be
fix(v2): wrap code blocks on print (#3637) 2020-10-25 20:59:08 +03:00
Alexey Pyltsyn fe7267ae93
refactor(v2): make accessible copy code button from keyboard (#3588) 2020-10-15 17:03:48 +02:00
Alexey Pyltsyn ea8c916528
fix(v2): sync changes between code block components
aa0d85646f

@yangshun arrgh, please pay attention on this PR! https://github.com/facebook/docusaurus/pull/2464
2020-04-05 13:39:18 +03:00
Alexey Pyltsyn 349eee042b
refactor(v2): make better code blocks (#2534)
* refactor(v2): make better code blocks

* Update styles.module.css

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 18:01:07 +08:00
Alexey Pyltsyn 7bc7241ee4
fix(v2): add rounded corners in code blocks properly (#2533) 2020-04-05 15:57:11 +08:00
Yangshun Tay 692ab14e4f
fix(v2): make code block nicer again (#2526) 2020-04-04 13:06:11 +08:00
Alexey Pyltsyn 44f9c76851
fix(v2): synchronize code block components changes (#2509) 2020-04-02 23:05:48 +08:00
Yangshun Tay 63997a4fbe
fix(v2): make code block nicer (#2502) 2020-04-02 14:12:47 +08:00
Kohhee Peace 5e0d11dbaf
feat(v2): add filename in CodeBlock (#2346)
* feat: add filename in CodeBlock

* Fix code to use Regex to find title from markdown and Update style

* Fix reviewed point
- Delete unnecessary template literals
- Delete unnecessary "important!" from css

* Add title in live codeblock

* Just edit code order

* Add demo for code title

* Add docs about code title in markdown-features.mdx

* Make code title height scalable

* Rename codeBlockWrapper to codeBlockContent

* Make copyButton appear when hovering codeTitle

* Fix docs description about code title
2020-03-26 01:05:18 +08:00
Yangshun Tay 32c1a92b17
chore: yearless copyright headers for source code (#2320)
* chore: yearless copyright headers for source code

* update snapshots
2020-02-25 23:12:28 +08:00
Alexey Pyltsyn bb82d0e073
fix(v2): make code blocks scrollable (#2241)
* wip

* fix(v2): make code blocks scrollable

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-02-08 19:44:45 +08:00
Alexey Pyltsyn 1f0eb37e19 fix(v2): add syntax highlight to generated colors (#2114) 2019-12-10 12:50:35 -08:00
Endi 39e9e755c3 Revert "fix(v2): remove auto wrap for code blocks (#2048)" (#2071)
This reverts commit 10cd99b3e4.
2019-11-30 12:57:56 -08:00
endiliey bd5bdb91f7 chore: add missing facebook copyright header 2019-11-27 16:50:20 +07:00
Alexey Pyltsyn 10cd99b3e4 fix(v2): remove auto wrap for code blocks (#2048) 2019-11-25 10:24:52 -08:00
Yangshun Tay 1c5a6ee244
misc(v2): make playground nicer (#1819)
* misc(v2): make code block nicer

* misc(v2): update changelog for code + playground

* misc(v2): update playground docs
2019-10-10 15:12:17 -07:00
Bruno Vego 7b7d1e6161 feat(v2): CodeBlock copy button (#1643)
* feat(v2): CodeBlock copy button

* fix: live theme editor breaking bug
2019-07-12 12:55:56 +07:00
Wei Gao c66ae5a507 feat(v2): refactor live code to css modules (#1558)
* feat(v2): Refactor live code to css modules

* Add a piece in doc about live coding

* Resolve PR discussions
2019-06-04 21:04:52 -07:00