Elvis Wolcott
0fa080c39c
feat(v2): add remark-admonitions to @docusaurus/preset-classic ( #2224 )
...
* feat(v2): add remark-admonitions
* feat(v2): add admonitions to style guide
* style: cleanup changes
* docs(v2): document how to use admonitions
* docs(v2): use proper package name
* docs(v2): add link to remark-admonitions docs
* style(v2): clean up addAdmonitions
2020-02-08 19:28:47 +08:00
Alexey Pyltsyn
b7a2ad2904
feat(v2): pluralize posts on tag's page ( #2263 )
...
* feat(v2): pluralize posts on tag's page
* FIx ESlint error for import/no-extraneous-dependencies rule
* Move pluralize method to theme scope
* Fix import
2020-02-07 00:55:28 +08:00
Alexey Pyltsyn
980755214b
feat(v2): allow to specify different logo for dark mode ( #2261 )
...
* feat(v2): allow to specify different logo for dark mode
* Rename darkSrc with srcDark
2020-02-01 21:02:03 +03:00
Alexey Pyltsyn
daa9a6a044
feat(v2): allow specify custom link for logo ( #2253 )
...
* feat(v2): allow specify custom link for logo
* Improve naming
* Improve naming: link -> href
2020-02-01 00:18:03 +03:00
Alexey Pyltsyn
ab25ee3e0f
refactor(v2): avoid to use raw theme values ( #2254 )
2020-01-31 23:42:21 +08:00
Alexey Pyltsyn
d1219b1233
feat(v2): add site title to meta title ( #2255 )
...
* feat(v2): add site title to meta title
* Change page separator
* Exlucde tagline from empty title
* Use tagline for title on home page
2020-01-31 22:55:23 +08:00
Alexey Pyltsyn
4b5ef84d0f
fix(v2): adjust correct behavior of navbar when active anchor ( #2248 )
2020-01-28 10:50:18 +08:00
Alexey Pyltsyn
5121ac013c
fix(v2): hide read more button on non-truncated posts ( #2240 )
...
* fix(v2): hide read more button on non-truncated posts
* Update tests
2020-01-24 13:31:07 +08:00
Alexey Pyltsyn
894dbcff49
chore(eslint): require curly brackets on all blocks ( #2239 )
2020-01-24 13:28:56 +08:00
Alexey Pyltsyn
42061c6d83
fix(v2): show doc sidebar on pages with case-sensitive paths ( #2235 )
2020-01-23 19:07:31 +03:00
Alexey Pyltsyn
155539421b
fix(v2): unify anchor behavior ( #2162 )
...
* fix(v2): unify anchor behavior
* fix(v2): use activeElement
* fix(v2): add support for sticky header
* Fix highlighted anchor if non-hidable navbar enabled
2020-01-23 19:06:51 +03:00
Yangshun Tay
a38125a718
chore: drop support for node <10.9 ( #2207 )
...
* drop node <10.9 on 2020
* misc: add nvmrc
Co-authored-by: Endi <endiliey@gmail.com>
2020-01-12 13:24:11 +08:00
Alexey Pyltsyn
7e750de6fa
refactor(v2): disable scroll when sidebar menu is open ( #2189 )
2020-01-08 23:06:07 +08:00
Alexey Pyltsyn
705b496397
fix(v2): allow external links in doc sidebar ( #2186 )
...
* fix(v2): allow external links in doc sidebar
* Fix for ESLint
2020-01-05 03:09:44 +08:00
Alexey Pyltsyn
d8b170ee51
refactor(v2): make proper import of react-router-dom ( #2187 )
2020-01-04 13:52:35 +08:00
Alexey Pyltsyn
de57ab1b7d
fix(v2): reinit hideable header position when page switched ( #2160 )
...
* fix(v2): reinit hideable header position when page switched
* fix(v2): fix CI
* refactor(v2): use react-router-dom hook instead plugin API
2020-01-03 11:04:15 +08:00
Yangshun Tay
c494e93564
fix(v2): don't read theme from localStorage if disableDarkMode is on ( #2177 )
2020-01-03 10:57:16 +08:00
Alexey Pyltsyn
24206de744
fix(v2): make sidebar logo positioning relative navbar ( #2179 )
2020-01-03 10:39:26 +08:00
Alexey Pyltsyn
d407abde7e
fix(v2): adjust sidebar menu close icon to center ( #2173 )
2020-01-02 21:11:41 +08:00
Alexey Pyltsyn
3aca44ce67
fix(v2): make doc sidebar height equal viewport ( #2171 )
2020-01-02 20:00:17 +08:00
Alexey Pyltsyn
5f6033d591
fix(v2): add class name to custom footer item
2020-01-01 18:42:44 +03:00
Alexey Pyltsyn
b7d60c2b7a
fix(v2): use proper tag for custom HTML in footer ( #2169 )
2020-01-01 23:39:40 +08:00
Yangshun Tay
428e087eb7
fix(v2): fix reading front matter keywords and image fields ( #2165 )
2019-12-31 21:42:47 +08:00
Alexey Pyltsyn
ca30adc19d
feat(v2): add logo and title in doc sidebar ( #2161 )
...
* feat(v2): add logo and title in doc sidebar
* fix: hide sidebar logo on small screens
2019-12-30 21:06:12 +08:00
Yangshun Tay
26cc4168fa
Revert "refactor(v2): move no-flash script to head tag ( #2158 )"
...
This reverts commit f944550353
.
2019-12-30 10:42:20 +08:00
Alexey Pyltsyn
f944550353
refactor(v2): move no-flash script to head tag ( #2158 )
2019-12-30 09:54:27 +08:00
Yangshun Tay
08ca95af01
docs(v2): dark mode syntax highlighting ( #2153 )
2019-12-29 16:40:17 +08:00
Yangshun Tay
167f71a654
fix(v2): render correct syntax theme for current website theme ( #2150 )
2019-12-27 13:37:39 +08:00
Alexey Pyltsyn
92c68ed742
feat(v2): add support another Prism theme for dark mode ( #1984 )
...
* feat(v2): add support another Prism theme for dark mode
* add dynamically change Prism theme
* Prepare for review
* PR review changes
* feat(v2): useThemeContext
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2019-12-25 22:52:34 +08:00
endiliey
dad50823b6
v2.0.0-alpha.40
2019-12-25 16:41:52 +07:00
Yangshun Tay
e39d76c40c
chore(v2): turn off import/extensions ESLint rule
2019-12-22 11:34:44 +08:00
Alexey Pyltsyn
22b1f66d11
fix(v2): add HTML lang attribute ( #2130 )
2019-12-18 13:17:29 +08:00
Alexey Pyltsyn
5716953ff1
fix(v2): disable scroll while mobile menu open ( #2129 )
2019-12-18 08:38:36 +08:00
Endi
33622c5347
refactor(v2): toggle data-theme with vanilla js instead of react helmet ( #2127 )
...
* refactor(v2): toggle data-theme with vanilla js instead of react helmet
* use document documentElement
2019-12-16 08:57:24 +08:00
Alexey Pyltsyn
26a3d72c84
feat(v2): auto switch theme depending on the system theme ( #2117 )
2019-12-12 05:06:54 -08:00
Alexey Pyltsyn
5bfa5d6579
feat(v2): hide navbar on scroll ( #2055 )
...
* feat(v2): hide navbar on scroll
* Turn on hide option
* Refactor after review
2019-12-12 04:19:37 -08:00
Alexey Pyltsyn
1f0eb37e19
fix(v2): add syntax highlight to generated colors ( #2114 )
2019-12-10 12:50:35 -08:00
Alexey Pyltsyn
bbc1d2cd51
fix(v2): set stored theme only if it exists ( #2113 )
2019-12-10 12:46:29 -08:00
endiliey
cfc313d7c7
v2.0.0-alpha.39
2019-12-07 13:18:13 +07:00
endiliey
3bb251904b
v2.0.0-alpha.38
2019-12-06 14:15:48 +07:00
Endi
7f8aca2ddc
perf(v2): smaller bundlesize by embedding metadata to content ( #2088 )
...
* wip embed metadata to content
* embed metadata in blog as well
* refactor
* update test
* yarn lock
* avoid overwriting file everytime we run new nodejs process
* nits
2019-12-06 12:34:21 +07:00
endiliey
464d8e529a
v2.0.0-alpha.37
2019-12-01 20:29:59 +07:00
Endi
4d5b62ae47
feat(v2): support prefers-color-scheme & fix dark mode FOUC on refresh ( #2069 )
...
* fix(v2): dark mode should not have flash on refresh
* refactoring
* address review
2019-12-01 20:01:35 +07: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
Alexey Pyltsyn
dffa984b05
refactor(v2): add title attribute to anchor link ( #2066 )
...
* fix(v2): add title attribute to anchor link
* Lint
* Wording
2019-11-28 22:19:58 -08:00
Endi
3430fbf5f4
fix(v2): markdown reference to file should not be page not found ( #2064 )
2019-11-28 20:04:46 -08:00
Endi
6ff66567e5
fix(v2): fix docs sidebar highlighting if link is partially matched ( #2061 )
2019-11-27 09:18:33 -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
Endi
421f862701
breaking(v2): required nodejs version >=8.9 -> >=8.10 so we can use es2017 ( #2045 )
2019-11-24 21:40:57 -08:00