Commit graph

2682 commits

Author SHA1 Message Date
Alexey Pyltsyn
393adc5324
fix(v2): move anchor link to right of heading (#2760) 2020-05-17 17:38:41 +08:00
Alexey Pyltsyn
2d0b36df1b
fix(v2): remove extra top margin of tab item (#2758) 2020-05-17 17:37:05 +08:00
Alexey Pyltsyn
3ad4550854
feat(v2): add search page (#2756) 2020-05-17 15:55:40 +08:00
Alexey Pyltsyn
1fe2dc192e
fix(v2): restore hiding of docs toc (#2759) 2020-05-17 15:45:14 +08:00
Julien Deniau
29506be389
fix(v2): fix index page features.length when 0 (#2751) 2020-05-15 21:29:48 +08:00
Yangshun Tay
be7367b2f8
feat(v2): allow prepending of baseUrl to href in navbar and footer (#2746) 2020-05-14 11:47:28 +08:00
Fanny
dd1ad5d943
Merge pull request #2739 from facebook/fanny/copyright-headers
chore(v2): Add missing copyright headers
2020-05-13 14:26:04 -03:00
fanny
f8a22d1394 çhore(v2): revert changes 2020-05-13 14:07:35 -03:00
fanny
06f8a90b81 chore(v2): remove unnecessary comments 2020-05-13 13:34:58 -03:00
fanny
a6cc1f88e3 çhore(v2): revert changes 2020-05-13 13:32:04 -03:00
Jimmy
aac4e27a90
feat(v2): add canonical URL to <head> (#2694) 2020-05-13 11:29:38 +08:00
Fanny
7d8aeacf52
feat(v2): bootstrap layout navbar (#2668)
* feat(v2): add minor adjustements and footer component

* fix(v2): margin and spacing of footer

* feat(v2): add navbar component

* ádd collapse classname

* feat(v2): add dependencies

* feat(v2): remove unused code

* feat(v2): remove unused links

* feat(v2): add reactstrap components :|

* feat(v2): add brand and other nav componnets
2020-05-13 11:24:53 +08:00
fanny
c23f065175 chore(v2): Add copyright headers 2020-05-12 14:01:12 -03:00
Yangshun Tay
03070a2b8d chore: add copyright headers to missing files 2020-05-11 00:11:11 +08:00
Alexey Pyltsyn
93b39e674f
chore(v2): upgrade Infima to 0.2.0-alpha.10 (#2729)
* chore(v2): upgrade Infima to 0.2.0-alpha.10

* Changelog
2020-05-10 21:03:45 +08:00
Taylor Reece
dc08f3b416
chore(v2): bump webpack-dev-server to 3.11.0 to address yargs vulnerability (#2728) 2020-05-09 01:05:46 +08:00
Ben Gubler
368eb4279f
refactor(v2): replace EJS with Eta for SSR generation (#2684)
* Replace EJS with Eta for SSR generation

* Format with Prettier

* Remove ejs alias

* Don't autotrim, Terser will minify already

* Don't autoTrim, files are HTML-minified later

* Equivalent of rmWhitespace option for Eta

* Update Eta version and add rmWhitespace

* Format with Prettier
2020-05-05 14:25:26 +08:00
Fanny
3017723057 feat(v2): bootstrap pagination (#2695)
* feat(v2): Add pagination

* çhore(v2): remove console.log

* feat(v2): remove changes in template
2020-04-30 11:04:02 +03:00
Alexey Pyltsyn
16dd08a690
refactor(v2): make semicolon optional in imports for excerpt (#2696) 2020-04-30 01:05:29 +08:00
Yamagishi Kazutoshi
57c7550a87
fix(v2): add routeBasePath to feed link (#2691) 2020-04-29 23:22:42 +08:00
Alexey Pyltsyn
753d117025 v2.0.0-alpha.54 2020-04-28 09:49:27 +03:00
Alexey Pyltsyn
ab5590bafa
fix(v2): add default value for options in theme classic [ci skip] (#2688) 2020-04-28 09:30:18 +03:00
Sam Zhou
94b712d4fd
fix(v2): Add all webpack module aliases to type declaration file (#2687) 2020-04-28 09:28:02 +03:00
Alexey Pyltsyn
d90fdb04d5 v2.0.0-alpha.53 2020-04-27 16:38:33 +03:00
Alexey Pyltsyn
7359945f52 v2.0.0-alpha.52 2020-04-27 16:30:15 +03:00
Alexey Pyltsyn
46118b3fe4
fix(v2): allow build website without custom css (#2676) 2020-04-27 21:09:57 +08:00
Alexey Pyltsyn
c9c5aedcb5 v2.0.0-alpha.51 2020-04-27 14:44:56 +03:00
Alexey Pyltsyn
7389a60514
fix(v2): add a11y support for dropdown (#2672)
* fix(v2): add a11y support for dropdown

* fix(v2): add aria-label for navbar GH link
2020-04-27 14:17:55 +03:00
Yangshun Tay
1d8cc4b10f
chore(v2): upgrade Infima (#2669)
* chore(v2): upgrade Infima

* Make proper classes for active items

* upgrade Infima to v0.2.0-alpha.9

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-04-27 10:50:28 +08:00
Alexey Pyltsyn
c0e531e5d9
feat(v2): add ability to specify CSS class for navbar item (#2660)
* feat(v2): add ability to specify CSS class for navbar item

* Fix linting issues
2020-04-27 02:21:36 +08:00
Alexey Pyltsyn
379d3e0d23
chore(v2): upgrade prism-react-renderer to latest version (#2666) 2020-04-27 00:50:06 +08:00
Alexey Pyltsyn
af89a92628
feat(v2): add fallback to BrowserOnly component (#2665)
* feat(v2): add fallback to BrowserOnly component

* Update BrowserOnly.tsx

* Update docusaurus-core.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-26 20:39:34 +08:00
Alexey Pyltsyn
8730df7044
chore: upgrade shelljs to 0.8.4 (#2661) 2020-04-26 03:34:48 +08:00
Alexey Pyltsyn
fed12e49a4 fix(v2): disable focus on clicked sidebar category 2020-04-25 09:05:09 +03:00
Alexey Pyltsyn
71b66f1a42
refactor(v2): lose focus of active sidebar item after click on it (#2656) 2020-04-25 11:59:14 +08:00
Alexey Pyltsyn
9e1f816fcd
fix(v2): use remark-admonitions separately in each plugin instead of in preset only (#2642)
* fix(v2): use remark-admonitions separately in each plugin instead of in preset only

* Update types.d.ts

* Update types.d.ts

* Address fixes from review

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-24 12:18:54 +08:00
Alexey Pyltsyn
0a2a037dbb fix(v2): adjust proper padding top of doc page on mobiles 2020-04-23 10:42:16 +03:00
Alexey Pyltsyn
796bd0ce8a
fix(v2): hide sidebar after click on child item (#2649) 2020-04-23 15:14:06 +08:00
Alexey Pyltsyn
510bec6532
Revert "feat(v2): add option to toggle sidebar category open by default (#2613)" (#2644)
This reverts commit 1863a3c805.
2020-04-22 18:50:18 +03:00
Yangshun Tay
7d792840ba misc: prettier 2020-04-22 20:39:11 +08:00
Sam Zhou
61c917fd8f
refactor(v2): Expose docusaurus module type aliases to end-users (#2608) 2020-04-22 20:33:03 +08:00
Joe Previte
1863a3c805
feat(v2): add option to toggle sidebar category open by default (#2613)
* feat: update sidebar categ to  take collapsed prop

* feat: add extra sidebars collapsed test

* fix: only mutate item.collapsed if necessary

* feat: update docs for SidebarItemCategory

* fix: update snapshots

* fix: update json to match new sidebar schema

* fix: update last snapshot
2020-04-22 20:31:10 +08:00
Alexey Pyltsyn
84fa4be865
fix(v2): ignore import declarations in excerpt (#2380)
* fix(v2): ignore import declarations in excerpt

* Update index.ts

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-22 20:28:14 +08:00
Alexey Pyltsyn
4367197c77
refactor(v2): extract scroll position detection into separate hook (#2627) 2020-04-22 13:56:04 +08:00
Yangshun Tay
e1258baa77
chore(v2): add Privacy Policy and Terms of Use links to footer (#2638)
* chore(v2): add Privacy Policy and Terms of Services links to footer

* rename

* Shift to links
2020-04-22 12:30:03 +08:00
Fanny
2bc54a80fc
feat(v2): bootstrap layout footer (#2635)
* feat(v2): add minor adjustements and footer component

* fix(v2): margin and spacing of footer

* fix(v2): spacings

* fix(v2): remove unrelated links of the bootstrap template

* fix(v2): remove unrelated links of the bootstrap template
2020-04-21 19:54:12 +08:00
Tom Brien
852b5e8f13
feat(v2): add CLI option for polling (#2630)
* Add CLI option to polling

Some environments (specifically docker containers) can have issues with file watching for live reloads. [Webpack Dev Server provides a polling alternative](https://webpack.js.org/configuration/watch/#watchoptionspoll) option for this

* Update docusaurus.js

* Update cli.md

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-20 10:49:43 +08:00
Alexey Pyltsyn
2823d73e19
fix(v2): hide doc sidebar on mobiles (#2631) 2020-04-20 10:48:10 +08:00
Alexey Pyltsyn
52d15e0f7e
fix(v2): make border right of doc sidebar equals doc page (#2626) 2020-04-19 21:28:35 +08:00
Alexey Pyltsyn
2c4490a1ff
fix(v2): disable tab focus on collapsed doc sidebar items (#2625) 2020-04-19 21:28:08 +08:00