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
Endi
9862a6821a
feat(v2): allow non sidebar category to be first item of sidebar ( #2032 )
...
* feat(v2): allow non sidebar category to be first item of sidebar
* better error messages
* edit the react component
* Update website/docs/sidebar.md
* nits
* add @babel/plugin-transform-runtime
2019-11-23 20:08:19 -08:00
Alexey Pyltsyn
3265dda895
refactor(v2): make better a11y for tabs ( #1990 )
...
* refactor(v2): make better a11y for tabs
* Update styles.module.css
2019-11-23 18:31:04 -08:00
Endi
670fd4e182
feat(v2): style sidebar on overflow ( #2034 )
2019-11-23 17:47:51 -08:00
Endi
9829f56b1e
feat(v2): docs versioning ❄️ 🔥 ( #1983 )
...
* wip: versioning
* wip again
* nits lint
* refactor metadata code so that we can have inobject properties optimization, fix typing
* remove buggy permalink code
* modify versioned docs fixture such that foo/baz only exists in v1.0.0
* refactor metadata.ts so that there is less transformon object
* more refactoring
* reduce test fixtures, refactoring
* refactoring readability
* finish metadata part
* refactor with readdir
* first pass of implementation
* fix mdx laoder
* split generated routes by version for performance & smaller bundle
* test data for demo
* refactor with set
* more tests
* typo
* fix typo
* better temporary ui
* stronger typing & docsVersion command
* add 100% test coverage for docsVersion command
* more test and delete manual docs cut
* cut 2.0.0-alpha.35 docs
* cut alpha.36 instead
* copyright
* delete versioned docs
* stronger test on metadata
* update typo
2019-11-22 16:17:40 +07:00
endiliey
c413cff212
v2.0.0-alpha.36
2019-11-22 12:41:22 +07:00
Endi
4fab29fb21
refactor(v2): split out dark mode toggle so it is easily swizzle-able ( #2013 )
2019-11-22 12:31:28 +07:00
Endi
91902ed709
feat(v2): style right sidebar scrollbar when overflow ( #2017 )
2019-11-20 20:46:33 -08:00
Yangshun Tay
65965e060a
misc(v2): change blog front matter to snake_case ( #1989 )
...
* misc(v2): change blog front matter to snake_case
* Fix blog image url
* Add docs for change
* More migration docs
2019-11-19 15:08:53 +07:00
Yangshun Tay
edf4c16c93
feat(v2): allow hiding docs table of contents ( #2012 )
...
* feat(v2): allow hiding docs table of contents
* move to frontmatter
2019-11-19 15:08:45 +07:00
Alexey Pyltsyn
dec9c1279c
refactor(v2): improve semantic markup of blog ( #2003 )
...
* refactor(v2): improve semantic markup of blog
* Refactor/simplify
2019-11-17 04:00:11 -08:00
Alexey Pyltsyn
dda10beea6
fix(v2): adjust first-level heading offset ( #2005 )
2019-11-17 03:10:09 -08:00
endiliey
6204d9a9ec
v2.0.0-alpha.35
2019-11-17 16:51:57 +07:00
Alexey Pyltsyn
11e84eb3ed
fix(v2): remove accessible anchors via keyboard ( #1991 )
2019-11-16 17:41:23 +07:00
Endi
a4585ec49b
fix(v2): static phrasing content should be rendered correctly in TOC ( #1992 )
...
* fix(v2): static phrasing content should be rendered correctly in right TOC
* innerhtml in a
2019-11-16 17:41:12 +07:00
Alexey Pyltsyn
5d3b889169
fix(v2): remove hashbang when click on category ( #1999 )
...
* fix(v2): remove hashbang when click on collapsed item
* Refactor: rename handler
2019-11-15 10:14:12 -08:00
Alexey Pyltsyn
0f0352d5b7
fix(v2): replace h1 tag with h2 in blog list pages ( #1987 )
2019-11-13 15:41:54 -08:00
Alexey Pyltsyn
ae1dec543e
fix(v2): make not clickable post title on post item page ( #1962 )
...
* fix(v2): make not clickable post title on post item page
* Refactor: move to props
* refactor: use explicit boolean value
* Revert last commit
2019-11-14 01:15:41 +03:00
Alexey Pyltsyn
37ec85be97
fix(v2): use tag time for showing last update of doc item ( #1981 )
2019-11-13 11:03:30 -08:00
Alexey Pyltsyn
9cbb7030fa
fix(v2): remove invalid label attribute of footer links ( #1980 )
...
* fix(v2): remove invalid attributes of footer links
* Add rest props
* Fix override props
2019-11-13 17:42:46 +07:00
Alexey Pyltsyn
137e548aef
fix(v2): use regular div instead of main tag for wrapper layout ( #1978 )
2019-11-13 00:14:37 -08:00
Alexey Pyltsyn
2493583fe2
fix(v2): move header inside article tag in doc page ( #1975 )
2019-11-13 00:05:32 -08:00
Alexey Pyltsyn
64d2ec2c77
fix(v2): add aria-label to read more links for a11y ( #1977 )
2019-11-13 13:08:01 +07:00
Alexey Pyltsyn
95e9963303
fix(v2): remove invalid attributes of nav links ( #1974 )
...
* fix(v2): remove nav links invalid attributes
* Refactor: add remaining props
2019-11-13 13:06:26 +07:00
Alexey Pyltsyn
3823feb276
fix(v2): use tag time for showing post item date ( #1964 )
...
* fix(v2): use tag time for showing post item date
* refactor: use rem for font-size
2019-11-12 16:25:25 +07:00
Alexey Pyltsyn
6546c194fb
feat(v2): add ability specify link in footer logo ( #1965 )
...
* feat(v2): add ability specify link in footer logo
* Refactor according review
2019-11-12 16:25:06 +07:00
Alexey Pyltsyn
3df601c2fa
fix(v2): remove empty containers when no data in blog pages ( #1963 )
2019-11-11 20:48:39 -08:00
Alexey Pyltsyn
ed099da3ba
fix(v2): remove duplicate meta tags ( #1966 )
2019-11-11 20:46:38 -08:00
endiliey
f1180d0eb6
v2.0.0-alpha.34
2019-11-11 21:35:03 +07:00
Endi
5e445a0011
fix(v2): useTOC hooks should not be called in each nested children ( #1959 )
...
* fix(v2): useTOC hooks should not be called in each nested children
* fragment
* rename -> DocTOC
2019-11-11 04:56:21 -08:00
Alexey Pyltsyn
9e290c9b43
feat(v2): add ability disable dark mode toggle ( #1956 )
2019-11-11 04:41:54 -08:00
Endi
3be2e86546
chore: bump dev dependencies ( #1955 )
...
* chore: bump devdeps
* upd infima url
2019-11-11 17:44:26 +07:00
endiliey
e6b077410c
v2.0.0-alpha.33
2019-11-08 13:27:03 +07:00
Endi
3048942aef
fix(v2): hash-link should not be cut-off in doc container ( #1942 )
...
* fix(v2): hash-link should not be cut-off in doc container
* nits
2019-11-06 23:54:09 +08:00