Commit graph

653 commits

Author SHA1 Message Date
Yangshun Tay
c46bf90f60
feat(v2): allow navbar links to show active style by specifiying a base path (#2299) 2020-02-20 10:10:22 +08:00
Yangshun Tay
d974aa9c2a
feat(v2): add ExecutionEnvironment API (#2296)
* feat(v2): add ExecutionEnvironment API

* remove redundant code
2020-02-19 09:22:14 +08:00
Yangshun Tay
996b115199
misc(v2): clean up comments in code (#2294) 2020-02-18 21:29:23 +08:00
Yangshun Tay
3056479ed2 v2.0.0-alpha.43 2020-02-18 18:54:39 +08:00
Yangshun Tay
8a96e0bff6 v2.0.0-alpha.42 2020-02-18 18:51:41 +08:00
Yangshun Tay
3ba753922e Revert "v2.0.0-alpha.42"
This reverts commit d48200be7d.
2020-02-18 18:47:36 +08:00
Alexey Pyltsyn
d48200be7d v2.0.0-alpha.42 2020-02-18 13:29:02 +03:00
Yangshun Tay
80f45e0dd2
chore(v2): update Infima to 0.2.0-alpha.4 (#2292) 2020-02-18 17:51:15 +08:00
Alexey Pyltsyn
89d2d80fb7
fix(v2): fix build and deps install (#2291)
* docs(v1): drop support for node <10.9 (#2264)

* fix(v2): fix build and deps install

Co-authored-by: Hanseung Yoo <trustyoo86@gmail.com>
2020-02-18 17:30:04 +08:00
Yangshun Tay
d39c301db8 v2.0.0-alpha.41 2020-02-16 23:03:18 +08:00
KohheePeace
7086c279e2
fix(v2): fix codeblock copy button not including blank lines (#2285) 2020-02-16 22:21:46 +08:00
Alexey Pyltsyn
b1e079f4fe
fix(v2): use site title if enabled blog-only mode (#2259) 2020-02-08 19:46:15 +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
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
de4a25c297
fix(v2): remove focus on search input when hovering over it (#2262)
* fix(v2): remove focus on search input when hovering over it

* Fix deps

* Improve naming
2020-02-01 20:21:45 +08: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
Alexey Pyltsyn
06044cffa7 fix(v2): include base url in 404 route (#2237)
* fix(v2): include base url in 404 route

* Update tests
2020-01-22 09:00:38 +08:00
Alexey Pyltsyn
2d08787ed5 fix(v2): escape link text in TOC (#2236) 2020-01-22 08:56:54 +08:00
Alexey Pyltsyn
40185a649b
Revert "chore(v2): handle pages which contain special chars (#2214)" (#2232)
This reverts commit c0bacfd9f9.
2020-01-20 18:35:35 +03:00
Alexey Pyltsyn
95caf833d8 fix(v2): render correct theme for live code blocks on SSR (#2227) 2020-01-20 11:00:04 +08:00
Elie Dutheil
c0bacfd9f9 chore(v2): handle pages which contain special chars (#2214) 2020-01-20 10:59:22 +08:00
Jonathan Delgado
5cb3309790 feat(v2): allow for TypeScript pages and components (#2221) 2020-01-20 10:55:50 +08:00
Yangshun Tay
b945e76814
chore: prepare for v1.14.4 release (#2211) 2020-01-13 00:11:23 +08:00
Yangshun Tay
a2642e8acf fix(v2): don't even print anonymizeIP if false in Google Analytics plugin 2020-01-12 22:19:22 +08:00
Reece Dunham
ad031a15a4 feat(v2): support IP anonymization for Google Analytics plugin (#2148)
* Support IP anonymization for google analytics

* Fixes

* Add docs

* typo fix

* Fix syntax

* document in suggested place

* attempted to add functionality to gtag plugin

* Remove from api-site-config

* document in appropriate places

* fix anonymize IP

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-01-12 21:27:08 +08:00
Yangshun Tay
5e821fd4e0
feat(v2): preload first page load script asap (#2208)
Co-authored-by: Endi <endiliey@gmail.com>
2020-01-12 21:26:14 +08: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
James McShane
e4eb9194fa fix(v1): update blog href value to match navbar href (#2204) 2020-01-11 13:19:01 +08:00
Reece Dunham
8c146f294e fix(v2): (docusaurus-init) remove deprecated Python statement (#2202) 2020-01-11 00:51:12 +08:00
Alexey Pyltsyn
5252111fa0 fix(v2): fix input losing focus on init (#2188)
* fix(v2): fix input losing focus on init

* fix(v2): add onMouseOver handler
2020-01-08 23:08:03 +08:00
Alexey Pyltsyn
7e750de6fa refactor(v2): disable scroll when sidebar menu is open (#2189) 2020-01-08 23:06:07 +08:00
Dan Abramov
632e2dc437 fix(v1): fix JSX highlighting by passing language to Prism (#2196)
* Fix JSX highlighting by passing language to Prism

* Make Prettier happy

* Keep guessing what Prettier wants because CI doesn't tell me
2020-01-08 00:42:47 +08:00
Alexey Pyltsyn
c2aeda273c fix(v2): make correct internal link check 2020-01-07 13:25:15 +03:00
Thiago de Souza
d099bd2ee8 fix(v2): isInternal targetLink validation (#2195)
* docs(v2): showcase user neutronjs

* fix(v2): isInternal url validation
2020-01-07 14:29:10 +08:00
yaojie
188b150503 fix(v2): change 'Simple' to 'Simply' on template blog entries (#2191) 2020-01-06 10:24:19 +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
Yangshun Tay
8065e5f9dd
fix(v2): make search bar not lose focus after clicking on it after initial load (#2178) 2020-01-04 20:38:45 +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