Commit graph

2343 commits

Author SHA1 Message Date
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
7074754252 refactor(v2): simplify markup of Showcase page (#2180) 2020-01-03 10:40:43 +08:00
Alexey Pyltsyn
24206de744 fix(v2): make sidebar logo positioning relative navbar (#2179) 2020-01-03 10:39:26 +08:00
Thibaud Colas
5bafa1d106 docs(v1): showcase user Draftail (#2181) 2020-01-03 10:38:53 +08:00
Alexey Pyltsyn
b36316eab2 fix(v2): load Algolia styles for mobiles immediately (#2174)
* fix(v2): load Algolia styles for mobiles immediately

* Add copyright
2020-01-02 21:37:15 +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
1c032a0bd9 refactor(v2): change title of last footer column (#2170) 2020-01-02 00:43:08 +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
Alexey Pyltsyn
5c06f5884e fix(v2): improve accessibility for Netlify badge (#2168) 2020-01-01 23:23:57 +08:00
Yangshun Tay
6e537f0654 blog: add Immer to recap post 2020-01-01 23:04:25 +08:00
Endi
6f6f756d70 fix(v2): filter out invalid prefetch script without contenthash (#2167) 2020-01-01 18:49:12 +08:00
Yangshun Tay
75f5bb4d23
feat(v2): allow per-doc hiding of edit url (#2166) 2020-01-01 18:45:55 +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
Alexey Pyltsyn
8c693fbac9
fix(v2): use correct link in blog post 2019-12-30 11:29:48 +03:00
Yangshun Tay
002955cc48
blog: 2019 recap (#2163)
* blog: 2019 recap

* Endi is a maintainer not a contractor

* Prefetch not preload
2019-12-30 14:48:29 +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
bf1ae60031
feat(v2): add Prettier to Facebook template (#2156) 2019-12-29 20:36:41 +08:00
Yangshun Tay
08ca95af01
docs(v2): dark mode syntax highlighting (#2153) 2019-12-29 16:40:17 +08:00
Yangshun Tay
da6966d208
feat(v2): add ESLint to Facebook template (#2155) 2019-12-29 16:39:28 +08:00
Mattia Astorino
7087425485 docs(v2): update custom webpack configuration snippet (#2139)
* Update custom webpack configuration snippet

Fix #2097

* Update lifecycle-apis.md
2019-12-29 16:38:50 +08:00
Thiago de Souza
d82615b94b docs(v2): showcase user neutronjs (#2154) 2019-12-29 12:11:25 +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
Endi
850c3a1deb
chore(v2): add netlify logo for open source plan (#2147)
* chore(v2): add netlify logo for open source plan

* change logo

* Update website/docusaurus.config.js

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2019-12-25 16:36:42 +07:00
Endi
578815c620
chore(v2): prepare alpha.40 release (#2146) 2019-12-25 16:30:29 +07:00
Endi
b791572617 fix(v2): remove style-loader, use minicssextract in both dev & prod for consistency (#2145) 2019-12-25 13:06:00 +08:00
Yangshun Tay
8b26d92a39
chore(v2): upgrade dependencies (#2142) 2019-12-22 11:59:36 +08: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
t11s
1ea8c3b11e docs(v1): add space between "out" and "Docusaurus" (#2135)
* Add space between "out" and "Docusaurus"

* Add space between "out" and "Docusaurus" 

Didn't do this properly, used " " instead of {' '}
2019-12-18 08:36:44 +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
Janko Marohnić
ee00ecf569 docs(v1): showcase user Shrine (#2128) 2019-12-16 08:53:38 +08:00
Yangshun Tay
19acc44d81
docs: promote Docusaurus 2 usage (#2126) 2019-12-15 17:49:25 +08:00
Endi
dcf1fef001
feat(v2): lazy load algolia css so its not render blocking (#2125)
* perf(v2): algolia css should not be render blocking

* tweak

* lazy load css

* tweak

* tweak

* review
2019-12-15 16:43:46 +07:00
Yangshun Tay
b6315f4136
feat(v2): add Facebook Docusaurus 2 template (#2124)
* feat(v2): add Facebook Docusaurus 2 template

* -
2019-12-15 17:16:27 +08:00
endiliey
ab8fb2b370 fix(v2): disable minify html unsafe option for inline style 2019-12-15 14:42:43 +07:00
Endi
c036740790 fix(v2): tweak minify html to be safer (#2122) 2019-12-13 17:36:54 +08:00
Endi
daa71b2eff
perf(v2): reduce HTML payload by eliminating chunk-map (#2118)
* perf(v2): eliminate chunk-map bloat while preserving prefetch functionality

* review

* refactor
2019-12-13 15:55:45 +07:00
Alexey Pyltsyn
4f0ae6d117 fix(v2): align GH button in vertical center (#2119) 2019-12-12 13:49:37 -08:00
Alexey Pyltsyn
26a3d72c84 feat(v2): auto switch theme depending on the system theme (#2117) 2019-12-12 05:06:54 -08:00
Endi
aa87bc5b7b feat(v2): minify html (#2116)
* wip: minify html with terser

* tweak

* remove empty attr
2019-12-12 04:47:49 -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
Endi
ace93c5a14
fix(v2): move metadata export after compiling MDX to avoid weird MDX parsing error. (#2105)
* fix(v2): move metadata export to mdx-loader to prevent any weird mdx parsing

* refactor

* nits

* nits

* nits
2019-12-11 16:33:47 +07:00