Commit graph

2682 commits

Author SHA1 Message Date
Yangshun Tay
409f8788dc
fix(v2): hide mobile navbar hamburger when there are no links (#2624) 2020-04-18 12:09:28 +08:00
Reece Dunham
614adca45f
fix(v2): don't include 404 page in sitemaps (#2616)
* fix(v2): don't include 404 page in sitemaps

Signed-off-by: Reece Dunham <me@rdil.rocks>

* fix: improve implementation as requested

Signed-off-by: Reece Dunham <me@rdil.rocks>

* Fix issue with baseUrls
2020-04-18 11:27:11 +08:00
Alexey Pyltsyn
14f4ef875a
feat(v2): add ability set dark mode by default (#2597)
* feat(v2): add ability set dark mode by default

* s/forceDarkMode/defaultDarkMode

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-17 19:19:55 +08:00
Fanny
ea5a50c4de
feat(v2): bootstrap theme blog post page (#2591)
* feat(v2): init the blog post card

* feat(v2): Update card design

* chore(v2): remove unused dependency

* feat(v2): add post list

* feat(v2): improve html tags

* chore(v2): run prettier

* feat(v2): remove old tag

* feat(v2): apply suggestions

* feat(v2): add tags for blog post

* feat(v2): add post content

* feat(v2): add tags

* feat(v2): add specific tag page

* feat(v2): fix tablet layout

* feat(v2): fix tablet layout

* feat(v2): add blog post page

* feat(v2): apply suggestions

* Update 2020-04-14-blog-plugin.md

* Update 2020-04-14-large-blog-post.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-15 10:03:23 +08:00
Alexey Pyltsyn
6a2fdbe3ca
fix(v2): inherit color for announcement bar close icon (#2602) 2020-04-14 23:04:54 +08:00
Alexey Pyltsyn
b50179071f
refactor(v2): make margin top on blog pages as on docs pages (#2595) 2020-04-13 15:57:40 +08:00
Fanny
1c2e8f92cc
feat(v2): bootstrap theme tags and specific tag page (#2590)
* feat(v2): init the blog post card

* feat(v2): Update card design

* chore(v2): remove unused dependency

* feat(v2): add post list

* feat(v2): improve html tags

* chore(v2): run prettier

* feat(v2): remove old tag

* feat(v2): apply suggestions

* feat(v2): add tags for blog post

* feat(v2): add post content

* feat(v2): add tags

* feat(v2): add specific tag page

* feat(v2): fix tablet layout

* feat(v2): fix tablet layout
2020-04-13 13:58:30 +08:00
Sam Zhou
5f487f3b02
refactor(v2): Convert docusaurus-core to TypeScript (#2578)
* refactor(v2): Convert docusaurus-core to TypeScript

* Update types.d.ts

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-13 02:05:46 +08:00
Fanny
f6267dc52c
feat(v2): add tags for bootstrap theme blog post (#2587)
* feat(v2): init the blog post card

* feat(v2): Update card design

* chore(v2): remove unused dependency

* feat(v2): add post list

* feat(v2): improve html tags

* chore(v2): run prettier

* feat(v2): remove old tag

* feat(v2): apply suggestions

* feat(v2): add tags for blog post

* feat(v2): add post content
2020-04-13 02:01:40 +08:00
Reece Dunham
354c1d3338
fix(v2): properly link top-level github pages sites in deploy command (#2558)
* fix(v2): properly link top-level github pages sites in deploy command

* Apply style

* prettier format
2020-04-13 00:02:36 +08:00
Alexey Pyltsyn
c663d7c1f7
refactor(v2): remove redundant container on docs page (#2588) 2020-04-12 23:42:30 +08:00
Fanny
f61b92d86a
feat(v2): bootstrap blog post page and card (#2584)
* feat(v2): init the blog post card

* feat(v2): Update card design

* chore(v2): remove unused dependency

* feat(v2): add post list

* feat(v2): improve html tags

* chore(v2): run prettier

* feat(v2): remove old tag

* feat(v2): apply suggestions
2020-04-12 22:41:34 +08:00
Alexey Pyltsyn
9c1abcddab
refactor(v2): use nav link component only where needed (#2585) 2020-04-12 13:34:50 +08:00
Alexey Pyltsyn
476de09ef5
fix(v2): do not process anchor links by router (#2580) 2020-04-11 23:00:32 +08:00
Alexey Pyltsyn
399fcbd7eb
fix(v2): treat mailto and tel links properly (#2579) 2020-04-11 22:59:32 +08:00
Alexey Pyltsyn
d531735b3a
fix(v2): remove horizontal scroll on docs page (#2582) 2020-04-11 22:58:59 +08:00
Fanny
434da1d7ea
feat(v2): bootstrap bootstrap (heh) theme, preset, template (#2557)
* feat(v2): Add bootstrap theme structure

* chore(v2): run prettier

* chore(v2): remove unused dependencies

* feat(v2): add bootstrap preset

* feat(v2): add bootstrap template

* remove unnecessary stuff

* --

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-09 12:58:01 +08:00
Bartosz Kaszubowski
92729af0ab
chore(v2): fix lint, tweak lqip-loader utils comment (#2563) 2020-04-09 01:08:58 +08:00
Bartosz Kaszubowski
97125ada32
chore(v2): add lqip-loader tests, clarify loader code, improve README (#2561)
* chore(v2): add lqip-loader tests, clarify loader code, improve README

* Rename index.test.js.ts to index.test.ts

* smarter and cleaner approach to the loader export

* Update index.test.ts

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-09 00:05:43 +08:00
Yangshun Tay
1766ed0483 misc(v2): revert some stuff in #2556 2020-04-08 13:01:53 +08:00
Reece Dunham
04a420d68f
refactor(v2): enhance CLI experience (#2556)
Signed-off-by: Reece Dunham <me@rdil.rocks>
2020-04-08 12:57:10 +08:00
Bartosz Kaszubowski
0f723c34e7
chore(v2): fix lqip-loader README code highlight (#2550) 2020-04-06 03:09:56 +08:00
Bartosz Kaszubowski
980f1041dc
refactor(v2): import lqip-loader, fix build on Node 13 (#2544) 2020-04-06 02:55:36 +08:00
Alexey Pyltsyn
8f0206b2fe
chore(v2): update Prettier config (#2542)
* chore(v2): update prettier config

* Update .prettierrc

* --

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 23:51:47 +08:00
Fanny
c09835a762
feat(v2): add showReadingTime and editUrl to the templates (#2541)
* Add mdx plugins

* Apply suggestions from code review

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

* Update website/docs/markdown-features.mdx

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

* Update markdown-features.mdx

* Update templates with new fields

* Rebase

* fix(v2): tests

* Update docusaurus.config.js

* Update docusaurus.config.js

* Update docusaurus.config.js

* Update docusaurus.config.js

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-04-05 23:16:40 +08:00
Alexey Pyltsyn
5eba5f24a2
fix(v2): use synchronous write for generate blog feeds (#2540)
* fix(v2): use synchronous write for generate blog feeds

* FIx code style
2020-04-05 23:09:28 +08:00
Alexey Pyltsyn
1f00d15c74 chore(v2): fix code style (revert previous changes) 2020-04-05 17:38:12 +03:00
Alexey Pyltsyn
6965a668cd chore(v2): fix code style 2020-04-05 17:30:59 +03:00
Yangshun Tay
b07507c9cc
chore(v2): upgrade devDependencies (#2538)
* chore(v2): upgrade devDependencies

* chore(v2): upgrade devDependencies

* chore: prettier
2020-04-05 19:07:44 +08: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
Bartosz Kaszubowski
5d65facc81
refactor(v2): replace Lodash with single methods packages in utils (#2536) 2020-04-05 18:32:28 +08: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
Bartosz Kaszubowski
3dfc41bd36
refactor(v2): replace Lodash with single methods packages in core (#2535) 2020-04-05 17:50:30 +08:00
Fanny
5e664a1f26
feat(v2): add edit url in post page (#2524)
* Add edit page url in docs

* feat(v2): Create EditPage component

* feat(v2): Improve component

* Add test

* çhore(v2): update description

* çhore(v2): update url

* fix(v2): test

* fix(v2): test

* feat(v2): change the prop of EditPage component

* chore(v2): Remove packages

* feat(v2): Update old tests

* chore(v2): fix package

* fix(v2): fix editUrl

* docs(v2): document editUrl

* --

* --

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 17:34:48 +08:00
Alexey Pyltsyn
7bc7241ee4
fix(v2): add rounded corners in code blocks properly (#2533) 2020-04-05 15:57:11 +08:00
Alexey Pyltsyn
61ea9989eb fix(v2): make the start command work again 2020-04-05 10:11:53 +03:00
José Renan
95fdfe7e15
feat(v2): add blog post estimated reading time (#2531)
* feat: add estimated reading time to blog posts

* docs: add showReadingTime on plugin docs

* test: update plugin-content-blog tests to cover readingTime

* Update index.js

* Update using-plugins.md

* Update index.js

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 15:08:42 +08:00
Sam Zhou
46452350df
fix(v2): Use writeFileSync to write generated sitemap.xml to avoid early termination (#2530) 2020-04-05 12:18:49 +08:00
Bartosz Kaszubowski
84baab33b4
chore(v2): replace few Lodash methods with native counterparts (#2529) 2020-04-05 12:18:01 +08:00
Yangshun Tay
692ab14e4f
fix(v2): make code block nicer again (#2526) 2020-04-04 13:06:11 +08:00
Bartosz Kaszubowski
b4acb89888
chore(v2): use single method Lodash packages in docs plugin (#2519)
* chore(v2): use single method Lodash packages in docs plugin

* reorder packages

* TS types nightmare
2020-04-04 01:24:30 +08:00
Alexey Pyltsyn
c207c3ba31 v2.0.0-alpha.50 2020-04-02 21:00:47 +03:00
Alexey Pyltsyn
44f9c76851
fix(v2): synchronize code block components changes (#2509) 2020-04-02 23:05:48 +08:00
Alexey Pyltsyn
9cff1bb9e4
chore(v2): upgrade deps (#2508) 2020-04-02 19:05:03 +08:00
Yangshun Tay
f51b56460e
fix(v2): tweak colors for announcement bar (#2505)
* fix(v2): tweak colors for announcement bar

* black
2020-04-02 14:41:49 +08:00
Alexey Pyltsyn
0c1d593e00
refactor(v2): improve announcement bar (#2504) 2020-04-02 14:31:53 +08:00
Yangshun Tay
63997a4fbe
fix(v2): make code block nicer (#2502) 2020-04-02 14:12:47 +08:00
Yangshun Tay
eeebc31ff1
docs(v2): reorganize markdown features page (#2503)
* docs(v2): reorganize markdown features page

* docs(v2): reorganize markdown features page
2020-04-02 14:12:17 +08:00
Yangshun Tay
8018a835e5
docs(v2): misc docs updates (#2500) 2020-04-02 12:29:39 +08:00
Yangshun Tay
e240d1b5aa
fix(v2): blog item styling (#2498) 2020-04-02 11:14:49 +08:00